Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » RemoveChild(GLCtrl) --> 100% CPU
RemoveChild(GLCtrl) --> 100% CPU [message #16532] Mon, 23 June 2008 14:16 Go to next message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Hi,

if I try to remove a GLCtrl with the RemoveChild method my program hangs and the task manager shows it's using 100% CPU time.

I have attached a test case.
  • Attachment: GLCtrlBug.7z
    (Size: 0.70KB, Downloaded 241 times)
Re: RemoveChild(GLCtrl) --> 100% CPU [message #16535 is a reply to message #16532] Mon, 23 June 2008 20:04 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
kodos wrote on Mon, 23 June 2008 14:16

Hi,

if I try to remove a GLCtrl with the RemoveChild method my program hangs and the task manager shows it's using 100% CPU time.

I have attached a test case.


Uhmmm... windows or linux ? I'm testing it right now on Linux and it works correctly..... I press test and glctrl disappears, no problems.

Max
Re: RemoveChild(GLCtrl) --> 100% CPU [message #16536 is a reply to message #16532] Mon, 23 June 2008 20:53 Go to previous messageGo to next message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Oh, sorry this one is on Windows.
Re: RemoveChild(GLCtrl) --> 100% CPU [message #16537 is a reply to message #16536] Mon, 23 June 2008 21:05 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
kodos wrote on Mon, 23 June 2008 20:53

Oh, sorry this one is on Windows.


So it's not for me Smile
Pfeewwwww ! Smile

Max
Re: RemoveChild(GLCtrl) --> 100% CPU [message #16538 is a reply to message #16536] Mon, 23 June 2008 21:11 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, confirmed a bug, fixed.

Quick fix:

void DHCtrl::State(int reason)
{
	switch(reason) {
	case OPEN:
		OpenHWND();
	default:
		SyncHWND();
		break;
	case CLOSE:
		CloseHWND();
		hwnd = NULL;
	}
}


Mirek
Re: RemoveChild(GLCtrl) --> 100% CPU [message #16540 is a reply to message #16532] Mon, 23 June 2008 22:22 Go to previous message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
Ah, thank you Razz

This one nearly drove me crazy Confused
Previous Topic: Cannot get code to build
Next Topic: Monitor Size
Goto Forum:
  


Current Time: Fri Mar 29 15:23:57 CET 2024

Total time taken to generate the page: 0.01691 seconds