trichview.com

trichview.support




Re: Simple App with TRichView crashes Delphi with memory error


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/06/2004 12:11:59


You cannot pass image.picture.graphic as a parameter of AddPictureEx.

After this, both timage and trichview will own this graphic, and both of

them will attempt to destroy it.

After double freeing the same memory the application crashes.


You need to create TBitmap, load/draw picture into it, than pass it to

AddPictureEx.

Do not free this bitmap yourself.


> I am evaluating TRichView for general use in my applications (using Delphi

> 7).  I am using default properties.  When I use only text, everything

works





Powered by ABC Amber Outlook Express Converter