Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

xgecko

Problems with deleting self

This topic is 5999 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I need help with my GUI classes. Here is very simplified code: class CButton { public: void (*Proc)(); void Push() { Proc(); }; }; CButton *btn; void doit() { delete btn; // When this function finishes it returns to procedure // of class that was already deleted and crashes! } int main() { btn = new CButton(); btn->Proc = &doit; btn->Push(); return 0; } Thanks for help. Cu Gecko!

Share this post


Link to post
Share on other sites
Advertisement
You''re getting the object to delete itself, which you should never do. The object should be deleted within the scope in which it was created.

---
Make it work.
Make it fast.

"Commmmpuuuuterrrr.." --Scotty Star Trek IV:The Voyage Home

Share this post


Link to post
Share on other sites
You're right, but I have for example a dialog with one button and when I press the button I want to close and delete the dialog :-( How to do that with callbacks as shown in my simplified example?

Ciao

Gecko

Edited by - xgecko on January 15, 2002 10:30:41 AM

Share this post


Link to post
Share on other sites
CaptainJester -

although its usually true that ''delete this'' is bad - there are cases when you want to do just that - such as a ref counted object

xgecko

There''s a number of ways to address this problem - depending upon exactly what you want to do

basically, from your example you should delete it in main.
delete btn before the return

also the CButton *btn declaration should be inside main

or you could use a std::auto_ptr

Share this post


Link to post
Share on other sites
Hi!

What is std::auto_ptr?

P.S. I now that, but that was only very simplified example, I have GUI full of objects, parents, virtual methods, ...

Gecko

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI
15.08.01;08:16:22;Execute;WINCMD32;C:\DOKUMENTY\DESKTOP.INI

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML
01.10.01;09:38:02;Execute;EXPLORER;C:\WINDOWS\PROFILES\BOLINA\TEMPORARY INTERNET FILES\CONTENT.IE5\S58FK1AX\BOLDRICK.FANTASYPLANET[1].HTML

Share this post


Link to post
Share on other sites
Anonymous Poster, your IP address has been logged. Do not continue this behavior.

xgecko: The button could send a message to the dialog box (via a simple method call)

class DialogBox
{
public:
DialogBox(...);
void Close();
.
private:
DialogButton *closeButton;
};
//
class DialogButton
{
public:
void SetClickCallback(Callback pCallbackFn);
void SetParentDialog(DialogBox *pParent)
{
parentDialog = pParent;
}
.
private:
Callback callbackFn;
DialogBox *parentDialog;
}
//
DialogBox::DialogBox(...)
{
closeButton = new DialogButton();
closeButton->SetParentDialog(this);
closeButton->SetClickCallback(this->Close);
}
//
void DialogButton::SetClickCallback(Callback pCallbackFn)
{
callbackFn = pCallbackFn;
}

Now, whenever the DialogButton::Click() method is called, the callbackFn() is called, which could have been set to any function - including DialogBox::Close() (Callback would have to be a method function pointer though).

[ GDNet Start Here | GDNet FAQ | MS RTFM | STL | Google ]
Thanks to Kylotan for the idea!

Share this post


Link to post
Share on other sites
Hi Oluseyi!

Your code is nice, but it doesn''t resolve the problem. When I insert delete closeButton; in Close(), it crashes :-(

Share this post


Link to post
Share on other sites
The standard method that GUIs use is to "post messages". That is, instead of having the button''s function delete the button, it posts a message to a message queue saying that it would like the button to be deleted. Later in the main loop you look at the message queue and process whatever''s on there.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!