standalone freezing

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

standalone freezing

Post by adventuresofgreg » Sun May 26, 2013 2:14 pm

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

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: standalone freezing

Post by sturgis » Sun May 26, 2013 2:46 pm

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.

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: standalone freezing

Post by adventuresofgreg » Sun May 26, 2013 7:43 pm

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?

Post Reply