are destructors called?

Martin Köbele martin at mkoebele.de
Thu Jun 5 19:20:37 BST 2003


Hello,

I have this in my main.cpp:


....
	KApplication a;

	KProgram *P = new KProgram();

	a.setMainWidget( P);
	
	P->show();

	return a.exec();


...

Is the ~P() called, when I quit the program (alt+f4, or File->quit, etc)?

It seems, that it's not _always_ called , which confuses me.

How is that with the destructors?

Thanks,

please cc to my address!

Martin 

___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list