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

Home » U++ Library support » U++ Core » Problems with UPP_HEAP in multi-threaded
Re: Problems with UPP_HEAP in multi-threaded [message #17337 is a reply to message #17336] Fri, 08 August 2008 08:41 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Anyway, only a minor bug:

void Ctrl::PopUp(Ctrl *owner, bool savebits, bool activate, bool, bool)
{
	LLOG("POPUP: " << UPP::Name(this));
	Ctrl *q = owner ? owner->GetTopCtrl() : GetActiveCtrl();
	ignoretakefocus = true;
	Create(q, true, savebits);
	if(activate && q) {
		q->StartPopupGrab();
		popupgrab = true;
	}
	if(top) popup = true;
	WndShow(visible);
	if(activate && IsEnabled())
		SetFocus();
	if(top) top->owner = owner;
	StateH(OPEN);
}


-> the problem was than the menu is "alone" without real application. Fixed by "&& q".

Mirek
 
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: DEFAULT_MAX_CONTENT_SIZE or max_content_size
Next Topic: Smart pointer: Garbage collected by reference counting
Goto Forum:
  


Current Time: Fri Sep 18 09:17:13 GMT+2 2026

Total time taken to generate the page: 0.00769 seconds