U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Random problems with destructors in GUI classes
Re: Random problems with destructors in GUI classes [message #49454 is a reply to message #49453] Mon, 12 February 2018 23:06 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
koldo wrote on Mon, 12 February 2018 22:24
Well, this does not solve the problem but solves the exception:

void ScatterCtrl::DoShowData() 
{
	static DataDlg dlg;
	ONCELOCK {
		dlg.Init(*this);
	}
	dlg.Run(true);
}

It has been applied to all problematic dialogs. The problems have not been repeated.


OK, that would mean the cause probably really is some destruction order issue. Now we should find and fix it for real...

BTW, why do you use appmodal mode (Run(true))? That is not standard.
 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FOUR State Option button
Next Topic: Ctrl creation via dll stuff
Goto Forum:
  


Current Time: Sun Sep 13 20:36:28 GMT+2 2026

Total time taken to generate the page: 0.00949 seconds