Page 1 of 1

Format On Error

Posted: Sun Oct 29, 2006 6:16 pm
by mphilbrick
Sergey,

I store my RVF documents in database BLOB fields. They are loaded into TRichViewEdit components using RVFLoadFromStream followed by Format.

I have had a couple of instances where apparently corrupted RVF's are loaded and when Format is called I get endless "Index Out of Bounds" errors.

Is there any way only one error can be generated and I can abort the loading process? Currently, the application continues to return these errors and it has to be shut down. The try...except clause does not seem to help.

Posted: Sun Oct 29, 2006 8:16 pm
by Sergey Tkachenko
I am afraid not.
Errors on painting do not show messages, they are written directly on the component canvas. But I cannot do the same for all parts of code.