compiler not catching bad exit within routine

Ralph DiMola rdimola at
Wed Dec 7 13:31:27 EST 2016

I just had a problem like this minutes ago. I had fat fingers and must have
hit some bizarre ctrl key combo and LC(8.1.1) instantly quit with no
messages. I restarted LC When I opened the script LC was OK but when I
clicked the left bar to select the handler I was working on... BOOM LC quit
again. I restarted LC again, opened the script and selected the entire
script (15,000 lines) and copied it to the clipboard, then deleted the
entire script, I clicked Apply and then pasted the 15,00 lines back in,
clicked Apply again. I was now able to click on the handler I was working on
and go on my merry way(but not before I did a "ctrl S").

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at] On Behalf
Of Dr. Hawkins
Sent: Wednesday, December 07, 2016 11:13 AM
To: How to use LiveCode
Subject: Re: compiler not catching bad exit within routine

On Wed, Dec 7, 2016 at 3:21 AM, Dave Kilroy <dave at>

> Have you tried checking your script for invisible characters? Try 
> copying the entire script to something like BBedit, selecting and 
> copying it afresh there, deleting everything in the LiveCode script, 
> saving it to ensure it's clean, pasting in the (hopefully cleaned) 
> script from Bbedit and finally saving...

I didn't even have to go that far.

Pasting it into another script whole was enough for that; it gets found
there, and actually compiles & runs.

And to get it going, I added a new handler above it, and pasted a third of
it at a time, including spacing.

But that's the small stuff.

The real problem here is that the compiler is quietly failing.  the rest of
the script gets compiled, no error is thrown, and the problem can't be found
until another routine attempts to call this routine and it can't be found.

There *should* be an error whenever the compile fails to compile . . .

FWIW, this was the las hanger in that script, so I don't know what would
have happened to subsequent handlers.

Dr. Richard E. Hawkins, Esq.
(702) 508-8462
use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription

More information about the Use-livecode mailing list