Destroy object during event called by said object

Posted by Pmmlr on Stack Overflow See other posts from Stack Overflow or by Pmmlr
Published on 2010-04-20T16:59:12Z Indexed on 2010/04/20 17:03 UTC
Read the original article Hit count: 127

Filed under:

Hello,

I have a button. Its OnClick event calls a procedure which destroys the button, but then the "thread" wants to return to the OnClick event and I get an access violation.

I'm completely stumped!

© Stack Overflow or respective owner

Related posts about delphi