U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
[SOLVED] Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48256&th=10029#msg_48256
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 ?]]>jibe2017-06-12T10:17:06-00:00Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48263&th=10029#msg_48263
Yes you are right. Application remains zombie after closing the main window.
I am working to solve it.]]>koldo2017-06-13T08:37:26-00:00Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48264&th=10029#msg_48264
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.
]]>jibe2017-06-13T09:28:18-00:00Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48268&th=10029#msg_48268
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 .
Now every clock is removed from that variable when its destructor is called.]]>koldo2017-06-13T10:33:25-00:00Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48296&th=10029#msg_48296
Thank you
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.]]>jibe2017-06-16T09:12:04-00:00Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48301&th=10029#msg_48301
koldo2017-06-18T15:10:43-00:00Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48312&th=10029#msg_48312
Thanks for your help
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...]]>jibe2017-06-19T20:19:06-00:00[SOLVED]Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48314&th=10029#msg_48314
]]>koldo2017-06-20T06:37:40-00:00Re: Control4U_demo cannot close ?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48359&th=10029#msg_48359
Thank you for your help ! It's working well now... Problem solved ! ]]>jibe2017-06-26T07:00:31-00:00