Standalone app crashes

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

Standalone app crashes

Post by Tribblehunter » Thu Oct 23, 2014 10:30 pm

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.
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

Ledigimate
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 132
Joined: Mon Jan 14, 2013 3:37 pm

Re: Standalone app crashes

Post by Ledigimate » Thu Oct 23, 2014 11:06 pm

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.
010100000110010101100001011000110110010100111101010011000110111101110110011001010010101101010100011100100111010101110100011010000010101101001010011101010111001101110100011010010110001101100101

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Standalone app crashes

Post by dunbarx » Fri Oct 24, 2014 12:04 am

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

Tribblehunter
Posts: 78
Joined: Wed Apr 10, 2013 9:08 pm

Re: Standalone app crashes

Post by Tribblehunter » Fri Oct 24, 2014 8:37 pm

Thanks guys. That will be helpful for the future.

Turns out it was a compatibility issue with windows 8!

runs in compatibility mode.
Returning to try to learn livecode again.

But much greyer at the temples than the last time.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Standalone app crashes

Post by [-hh] » Fri Oct 24, 2014 10:08 pm

@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
shiftLock happens

Ledigimate
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 132
Joined: Mon Jan 14, 2013 3:37 pm

Re: Standalone app crashes

Post by Ledigimate » Sat Oct 25, 2014 9:03 pm

@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.
010100000110010101100001011000110110010100111101010011000110111101110110011001010010101101010100011100100111010101110100011010000010101101001010011101010111001101110100011010010110001101100101

Post Reply