BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Use TJPEGImage in TBitmap ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
PC Hua
Guest





PostPosted: Tue Jul 26, 2005 1:52 am    Post subject: Use TJPEGImage in TBitmap ? Reply with quote



I'm using ONE TJPEGImage which loads a JPEG file and use StretchDraw() to
fit the image into a TBitmap. The same object is used to load different
files.
I'm getting the feeling that this is causing memory leak, is that true?
Then I modified the program to generate and delete the object each time
(because I don't need that TJPEGImage after StretchDraw()) Is there a more
efficient way?

thanks
Phuoc Can HUA


--
- - - - - - - - - - - - - - - - - - - -
I'm using BCB5 on XP Home Edition.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Jul 26, 2005 6:11 am    Post subject: Re: Use TJPEGImage in TBitmap ? Reply with quote




"PC Hua" <home-AT-huaonline.DOT.com> wrote


Quote:
I'm getting the feeling that this is causing memory leak, is that true?

Can't answer that without seeing your actual code.

Quote:
Then I modified the program to generate and delete the object
each time (because I don't need that TJPEGImage after StretchDraw())
Is there a more efficient way?

You can reuse the same TJPEGImage for each file instead of using separate
objects.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.