Canvas does not allow drawing occassionally
Posted: Mon Jun 09, 2025 6:46 pm
I am creating a TRichView dynamically and assigning its parent to the main form. Then using
RV->LoadHTMLFromStream(s);
RV->Format();
to load in HTML. This generally works but every so often I get a "Canvas does not allow drawing" exception. Note that this is a multi-threaded server app but I do have the process wrapped in a critical section.
My understanding is that there is no way to do this "headless". In other words, it requires a parent form (even if it's set to not be visible). Is that true? Is there any way to run it headless? Not sure if that would solve this issue or if it's unrelated to that.
Using the latest version of the component.
Thanks.
RV->LoadHTMLFromStream(s);
RV->Format();
to load in HTML. This generally works but every so often I get a "Canvas does not allow drawing" exception. Note that this is a multi-threaded server app but I do have the process wrapped in a critical section.
My understanding is that there is no way to do this "headless". In other words, it requires a parent form (even if it's set to not be visible). Is that true? Is there any way to run it headless? Not sure if that would solve this issue or if it's unrelated to that.
Using the latest version of the component.
Thanks.