TRichEditOle works until I for a while and then the OLE features stop working. What gives?
The VCL is free to destroy and create controls whenever it needs to. Certain events, like changing the Scrollbars property for a TRichEdit control, cause this to happen. When this does happen, the connection between the TRichEdit control and TRichEditOleCallback class is lost the “new” Rich Edit no longer calls the TRichEditOleCallback functions that provide the OLE support. See the paper titled Window handles vs. TRichEdit (and other VCL) controls available on this site for more information.