Re: script works only during debugging

2012-05-10 Thread stephen barncard
This old stack is still the best way to learn about how to use send, cancel, pendingmessages and callbacks. Dar Scott's Primer on Message Mechanics this is a MUST DOWNLOAD. Brilliant. On Thu, May 10, 2012 at 5:49 PM, Nicolas Cueto wrote: > > Okay, the

Re: script works only during debugging

2012-05-10 Thread Nicolas Cueto
> Okay, the analogy is getting out of hand. It's how I've always understood "send". Thanks, Bob. Which analogy also illustrates why I thought that, when there's more than one "send in Z E R O milliseconds" placed within a handler before it exits, LC will execute those "sends" in the order the scr

Re: script works only during debugging

2012-05-10 Thread Bob Sneidar
Think of script execution like a slide at the playground. Only one kid can go down the slide at a time, and each kid has to get off the slide before the next kid can go. However you can queue up kids on the platform at the top. You can even tell one kid to go before another that is already on th

Re: script works only during debugging

2012-05-10 Thread Nicolas Cueto
Solved it! It seems the problem was related to "send in 0 milliseconds". In essence, HANDLER 1 before exiting would call HANDLER 2, and then HANDLER 2 would before exiting do two "send in 0 milliseconds" to HANDLERS 3 & 4. During debugging, when I inserted a "wait 50 milliseconds with messages" a

Re: script works only during debugging

2012-05-10 Thread Peter Haworth
It's on the same card. Pete lcSQL Software On Thu, May 10, 2012 at 2:36 PM, Bob Sneidar wrote: > Hmmm... I seem to recall a similar issue. If you are not on the card that > contains the "abc" button, then LC will not know about it yet. Try changing > your script to refer

Re: script works only during debugging

2012-05-10 Thread Bob Sneidar
Hmmm... I seem to recall a similar issue. If you are not on the card that contains the "abc" button, then LC will not know about it yet. Try changing your script to refer to the button as button "abc" of card "" and see what happens. Bob On May 10, 2012, at 12:37 PM, Mark Wieder wrote: > Pe

Re: script works only during debugging

2012-05-10 Thread Mark Wieder
Peter Haworth writes: > > Well, there is one thing worse that that - somethig that works in the IDE > but not in a standalone. PowerDebug is the only way to debug running standalones interactively. > I have a situationlike that right now where a simple "send mouseUp to > button "abc" where the

Re: script works only during debugging

2012-05-10 Thread Peter Haworth
Well, there is one thing worse that that - somethig that works in the IDE but not in a standalone. I have a situationlike that right now where a simple "send mouseUp to button "abc" where the sender is on the same card as button "abc". Works fine in the IDE but fails in a standalone, with the err

Re: script works only during debugging

2012-05-10 Thread Bob Sneidar
Aren't you supposed to spin around backwards 3 times, then say, "Bug can't backup, but begone!"? Bob On May 9, 2012, at 10:40 PM, Kay C Lan wrote: > In LC, remove the script and Compile, Save, Close and re-Open the script > (cross your fingers, say the secret password) then Paste the scrip

Re: script works only during debugging

2012-05-10 Thread Bob Sneidar
Try wrapping all your handler code in a try/catch construct and putting a breakpoint in the catch section. See what happens. Bob On May 9, 2012, at 7:33 PM, Nicolas Cueto wrote: > Hello All, > > A script that processes some text data and then sets a card's > custom-property to that data has

Re: script works only during debugging

2012-05-09 Thread Mark Wieder
Jacque- Wednesday, May 9, 2012, 10:00:18 PM, you wrote: > It's so odd when it works in the debugger but not otherwise. Yeah. I hate that. The only thing worse is the other way around. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing

Re: script works only during debugging

2012-05-09 Thread Kay C Lan
On Thu, May 10, 2012 at 12:34 PM, Nicolas Cueto wrote: > Fingers crossed for other suggestions, cause I sure want to avoid > Craig's suggestion that I retyp the whole code... > e > Cheers. > > You may not have to do that, you could try simply copying and pasting the entire script into a Text Edi

Re: script works only during debugging

2012-05-09 Thread J. Landman Gay
On 5/9/12 11:34 PM, Nicolas Cueto wrote: Fingers crossed for other suggestions, cause I sure want to avoid Craig's suggestion that I retyp the whole code... It's happened to me too and I can't remember how I fixed it, or even if I did. It's so odd when it works in the debugger but not otherwi

Re: script works only during debugging

2012-05-09 Thread Nicolas Cueto
Kay C Lan suggested: > Is your referencing correct? Replaced all "this" and "me" and field references with explicit names. Still no go. > Does this involve multiples stacks (substacks) > or multiple cards. Nope. > Do you have unrelated stacks (Pluggin/Utility) open at > the same time? Mob

Re: script works only during debugging

2012-05-09 Thread Kay C Lan
Is your referencing correct? Does this involve multiples stacks (substacks) or multiple cards. Do you have unrelated stacks (Pluggin/Utility) open at the same time? Is the reason it works with the debugger is that when the debugger comes up the appropriate card/stack is bought into focus? Have you

Re: script works only during debugging

2012-05-09 Thread dunbarx
- From: Nicolas Cueto To: LiveCode - general LiveCode Sent: Wed, May 9, 2012 10:34 pm Subject: script works only during debugging Hello All, A script that processes some text data and then sets a card's custom-property to that data has inconsistent results. In the debugger window it

script works only during debugging

2012-05-09 Thread Nicolas Cueto
Hello All, A script that processes some text data and then sets a card's custom-property to that data has inconsistent results. In the debugger window it works fine. I put a breakpoint in the script, run it, and when the script pauses, I click "Continue" and, when the script exits, the custom-pro