trichview.com

trichview.support




Re: Simple App with TRichView crashes Delphi with memory error


Return to index


Author

Message

JohnS

Posted: 04/06/2004 18:48:58


Thanks for the quick reply.  That was it.  I dug into the debugger error

message and it was trying to free the same memory twice.  Now I will become

a registered user, since I like everything else about your product.


"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> 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