Moved code that registers memos with TMemoCaretPosDisplayMgr object from FormCreate event handler to InitControls, which is itself called from FormShow. This is because memo window is recreated after FormCreate causing TMemoCaretPosDisplayMgr to lose track of selection change events by hooking into a window that is then destroyed. Registering from FormShow ensures correct memo window handle is used for hook.