Еще 1 ошибка при удаление PageControl1.ActivePage.Free и переходе на другой Page возможно ошибка не связана с вашим модулем но как правильно уничтожить?
hlt.UnSelectEditor; //release editor (only necessary if we are to call to SelectEditor(), again)
hlt.Free; //destroy the highlighter
1 more error when deleting PageControl1.ActivePage.Free and move to another Page perhaps the error is not with your module but how to destroy?
hlt.UnSelectEditor; //release editor (only necessary if we are to call to SelectEditor(), again)
hlt.Free; //destroy the highlighter