Page 1 of 1

Standalone app crashes

Posted: Thu Oct 23, 2014 10:30 pm
by Tribblehunter
Hi all.

Having built a few rough apps I have just built my first 'proper app' for windows. It works in the LC environment but when built as standalone it crashes.

Is there any way of seeing why? I have roughly worked out which area of code fails, but would like to be able to pinpoint it.

Any shove in the right direction appreciated.

Re: Standalone app crashes

Posted: Thu Oct 23, 2014 11:06 pm
by Ledigimate
Hi Tribblehunter

You may want to temporarily implement an "errorDialog" handler in the main stack script if you haven't done so already. That handler would catch execution errors not caught by a try-catch block anywhere else. You can then either display the error or write it to a log file.
Please have a look at the "errorDialog" entry in the LiveCode dictionary.

Re: Standalone app crashes

Posted: Fri Oct 24, 2014 12:04 am
by dunbarx
Hi.

You will better be able to use Ledigimate's excellent advice if you examine this thread:

http://forums.livecode.com/viewtopic.ph ... ch#p112344

Craig Newman

Re: Standalone app crashes

Posted: Fri Oct 24, 2014 8:37 pm
by Tribblehunter
Thanks guys. That will be helpful for the future.

Turns out it was a compatibility issue with windows 8!

runs in compatibility mode.

Re: Standalone app crashes

Posted: Fri Oct 24, 2014 10:08 pm
by [-hh]
@Ledigimate.
Nice exercise, your signature (and it's true, somehow).

Code: Select all

on mouseUp
  put "0101000001100101011000010110001101100"& \
        "10100111101010011000110111101110110"& \
        "01100101001010110101010001110010011"& \
        "10101011101000110100000101011010010"& \
        "10011101010111001101110100011010010"& \
        "110001101100101" into m
  repeat with j=1 to length(m) div 8
    put byte 8*j-7 to 8*j of m into b
    put numToByte(baseconvert(b,2,10)) after signature
  end repeat
  answer signature
end mouseUp

Re: Standalone app crashes

Posted: Sat Oct 25, 2014 9:03 pm
by Ledigimate
@hh

I'm glad my signature had you so curious that you actually wrote some code to find what it says 8)
It took some deep thought to come up with.