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 

workaround for self destroying component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL
View previous topic :: View next topic  
Author Message
attila
Guest





PostPosted: Fri Jan 02, 2004 8:47 pm    Post subject: workaround for self destroying component Reply with quote



Hi!

A component shouldnt be freed from one of it's
or it's children's event handler.

Like this code makes acces violation >
TForm1.Button1Click (sender:Tobject) begin
self.free;
end;

what's the workaround if i still would like to
free the component WHEN the event occurs ?


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL 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.