EOutOfResources with GIF images
Posted: Thu Mar 10, 2011 4:54 pm
Hi.
I have a problem with displaying a large number of GIF images in TRichView.
I have a limit for number of items and I remove them with DeleteParas so the text will not grow too much.
However, there is still a problem that randomly occurs. I checked twice my code to see if there was any memory leak but all the images are correctly being removed from the memory when the program runs.
The problem results in one of possible errors (randomly):
it usually has to do with EOutOfResurces or "Incorrect Parameter" or "Cannot draw on canvas".
It seems that I am not the only one that have this problem. I found the article here: http://blagin.ru/articles/gif.html
For displaying images, I am using TGifimage build in C++Builder XE.
Is there any solution known for this problem? Any better GIF classes to use with TRichView (except vampyre imaging library that is also problematic to use in XE)? Or maybe some other solution?
Cheers,
Jacek
I have a problem with displaying a large number of GIF images in TRichView.
I have a limit for number of items and I remove them with DeleteParas so the text will not grow too much.
However, there is still a problem that randomly occurs. I checked twice my code to see if there was any memory leak but all the images are correctly being removed from the memory when the program runs.
The problem results in one of possible errors (randomly):
it usually has to do with EOutOfResurces or "Incorrect Parameter" or "Cannot draw on canvas".
It seems that I am not the only one that have this problem. I found the article here: http://blagin.ru/articles/gif.html
For displaying images, I am using TGifimage build in C++Builder XE.
Is there any solution known for this problem? Any better GIF classes to use with TRichView (except vampyre imaging library that is also problematic to use in XE)? Or maybe some other solution?
Cheers,
Jacek