 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
PC Hua Guest
|
Posted: Tue Jul 26, 2005 1:52 am Post subject: Use TJPEGImage in TBitmap ? |
|
|
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
|
Posted: Tue Jul 26, 2005 6:11 am Post subject: Re: Use TJPEGImage in TBitmap ? |
|
|
"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 |
|
 |
|
|
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
|
|