Archived

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

xgecko

Problems with deleting self

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
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
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
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
Thanx Kylotan,

till now I did it with posting events to parents and than processing it in the main loop, but now I want to assign to class (CButton) a C++ event (with libsigc) and call it some way :-), but the way I used before is not usable.

Gecko

Share this post


Link to post
Share on other sites
quote:
Original post by xgecko
Hi Oluseyi!

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

That''s because Close() is being called from a method of the closeButton. What you should actually do is pass a code of some sort to the DialogBox, allow the CallbackFn to terminate and then in a polled loop of the DialogBox (like an Update() method) respond to the code. For example, DialogBoxClose() could be defined so:

// assume bClose is a boolean member variable of DialogBox
void DialogBox::Close()
{
bClose = true;
}

This will allow all closeButton methods to properly terminate. We now define a DialogBox::Update() procedure:
void DialogBox::Update()
{
...
if(bClose)
{
...
delete closeButton;
// do everything else necessary to terminate self
}
...
}

When does Update() get called? Every iteration of your GUI loop - or whenever it is you update the interface/process its messages.

[ 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
quote:
Original post by Oluseyi
[quote]Original post by xgecko
Hi Oluseyi!

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

That''s because Close() is being called from a method of the closeButton. What you should actually do is pass a code of some sort to the DialogBox, allow the CallbackFn to terminate and then in a polled loop of the DialogBox (like an Update() method) respond to the code. For example, DialogBoxClose() could be defined so:

// assume bClose is a boolean member variable of DialogBox
void DialogBox::Close()
{
bClose = true;
}

This will allow all closeButton methods to properly terminate. We now define a DialogBox::Update() procedure:
void DialogBox::Update()
{
...
if(bClose)
{
...
delete closeButton;
// do everything else necessary to terminate self
}
...
}

When does Update() get called? Every iteration of your GUI loop - or whenever it is you update the interface/process its messages.

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


This is the way I did first, but I saw in gtk--(gtkmm) that it can be done another way :-)

Gecko

Share this post


Link to post
Share on other sites