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 » Developing U++ » UppHub » [SOLVED] Control4U_demo cannot close ? (Under Linux, I cannot close the Control4U Demo window...)
[SOLVED] Control4U_demo cannot close ? [message #48256] Mon, 12 June 2017 12:17 Go to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

I have an app using Control4U, I was a long time not working on it. And now, the app hangs when I open a dialog box using some controls from Control4U.

Trying to understand what happens, I just compile Controls4U_Demo, and I see that it hangs when I try to close the window...

I'm using Linux (Mint Serena) and Upp 11155-xenial-amd64. Is it a problem with this version, or what could happen ?

[Updated on: Mon, 26 June 2017 09:01]

Report message to a moderator

Re: Control4U_demo cannot close ? [message #48263 is a reply to message #48256] Tue, 13 June 2017 10:37 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Jibe

Yes you are right. Application remains zombie after closing the main window.
I am working to solve it.


Best regards
Iñaki
Re: Control4U_demo cannot close ? [message #48264 is a reply to message #48256] Tue, 13 June 2017 11:28 Go to previous messageGo to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi, Koldo,

Thanks for your reply !

Ok, I'll wait for the solution and see later if it solves the problem with my application or not.

BTW, I'll be away for 3 or 4 days, I'll let you know after if the problem is solved for me.

Thanks.

jibe.
Re: Control4U_demo cannot close ? [message #48268 is a reply to message #48264] Tue, 13 June 2017 12:33 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Jibe

Problem is now solved.
Controls4U maintains a global variable with all StaticClock running automatically. However now the destructor is not called (this is a mystery to me), so all clocks remained running even if the program had ended Sad.
Now every clock is removed from that variable when its destructor is called.


Best regards
Iñaki

[Updated on: Tue, 13 June 2017 12:34]

Report message to a moderator

Re: Control4U_demo cannot close ? [message #48296 is a reply to message #48256] Fri, 16 June 2017 11:12 Go to previous messageGo to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi Koldo,

Thank you Smile

It is working well now. This does not solves the problem with my application, but at least I'm sure that it is elsewhere, and almost surely not from Controls4U.
Re: Control4U_demo cannot close ? [message #48301 is a reply to message #48296] Sun, 18 June 2017 17:10 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Does your application use threads?

Best regards
Iñaki
Re: Control4U_demo cannot close ? [message #48312 is a reply to message #48256] Mon, 19 June 2017 22:19 Go to previous messageGo to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi Koldo,

Thanks for your help Smile

No, no threads in my app... In fact, the problem was the use of Refresh() in 2 Ctrls that I wrote, making a loop : One was calling Refresh() making the other to consider that it changed, so it called Refresh(), making the first to consider that it changed and had to call Refresh() ! It was well done before, but I did a (too) quick change recently...
[SOLVED]Re: Control4U_demo cannot close ? [message #48314 is a reply to message #48312] Tue, 20 June 2017 08:37 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
OK. If we may help post the details Smile

Best regards
Iñaki
Re: Control4U_demo cannot close ? [message #48359 is a reply to message #48256] Mon, 26 June 2017 09:00 Go to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi, Koldo,

Thank you for your help ! It's working well now... Problem solved ! Smile
Previous Topic: JobQueue: A simple and programmable job/queue model.
Next Topic: Added SysExec package
Goto Forum:
  


Current Time: Thu Mar 28 18:31:18 CET 2024

Total time taken to generate the page: 0.01031 seconds