Format On Error

General TRichView support forum. Please post your questions here
Post Reply
mphilbrick
Posts: 27
Joined: Mon Aug 29, 2005 7:08 pm

Format On Error

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17604
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply