TRotateImage question

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

TRotateImage question

Postby gczobel » November 4th, 2006, 9:29 pm

Hi!
I have a simple question. How I can clear the picture in the component?

Code: Select all
RotateImage1.Picture := nil;


This work but I'm afraid to create a memory leak.

Thanks!
gczobel
Member
Member
 
Posts: 2
Joined: November 4th, 2006, 9:19 pm
Location: Ashkelon, Israel

Postby Kambiz » November 6th, 2006, 1:41 pm

The right way is:

Code: Select all
RotateImage1.Picture.Graphic := nil;
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby gczobel » November 13th, 2006, 5:28 pm

You're right! change the picture to nil destroy the current.
Thanks!
gczobel
Member
Member
 
Posts: 2
Joined: November 4th, 2006, 9:19 pm
Location: Ashkelon, Israel


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron