Page 1 of 1
standalone freezing
Posted: Sun May 26, 2013 2:14 pm
by adventuresofgreg
Hi: I'm having an intermitent issue with my Windows standalones screen freezing (or locking up ). It usually happens after running the app for a few hours. The screen is locked and frozen, but the stack continues to function. The only way to unlock the screen is to resize the window. I am not using lockscreen in any script, and this happens with all of my LC Windows standalones that include timed event loops (ie: send dothisagain to me in .5 seconds).
Thanks,
Greg
Re: standalone freezing
Posted: Sun May 26, 2013 2:46 pm
by sturgis
The most likely answer is that you are ending up with multiple built up pending messages for the same thing over time. Though why resizing the window would fix the issue is beyond me.
You might start one of your apps and add a temporary field that shows "the pendingmessages"
Code: Select all
put the pendingmessages into field "whateverfield"
Let it run a while and see if you have more than one of your sent messages waiting in the pending messages. If so, it sounds as if you may be "sending" in a way that allows the messages to multiply.
To avoid this you can check the pendingmessages before using send
Something like:
if "doThisAgain" is not among the lines of the pendingmessages then send "doThisAgain" to me in 500 milliseconds
If this turns out to not be the problem, we'd need to see more code to figure it out.
Re: standalone freezing
Posted: Sun May 26, 2013 7:43 pm
by adventuresofgreg
Hi Sturgis: ya - I've been playing with that because it seems like it would be the logical cause, but as you said, why would resizing the window 'release' the freeze, and resolve any nested pending message problems?