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 #49526 is a reply to message #49453] Sat, 24 February 2018 10:28 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
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.


This is fatal error.

a) it will crash if you close scatter ctrl and create another one (because dlg will keep pointer to nonexisting ScatterCtrl)
b) it will behave incorrectly with 2 ScatterCtrls
c) it must work without such trick
 
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: Wed Apr 29 13:46:59 GMT+2 2026

Total time taken to generate the page: 0.01428 seconds