Standalone Hanging/ Parsing Questions for BTC alarm stack

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
treefolk
Posts: 16
Joined: Tue May 21, 2013 10:54 pm

Standalone Hanging/ Parsing Questions for BTC alarm stack

Post by treefolk » Tue Dec 24, 2013 8:06 pm

So, I wrote a simple stack to check the current price of BitCoins from Bitstamp.net and allows the user to set a high and low value at which to sound the alarm.
It seems to be working pretty well. I am having two issues:

1. When saved as a standalone, sometimes the stack stays running in processes after it has been closed.


2. I am not a programmer, and Have been using 3 fields to parse the DATA from bitstamp, I think I am going about this wrong.


I have uploaded a copy of the stack, and commented the script, most of the important bits are in the stack script. I would appreciate any comments or help!
Thanks for looking!

I guess the stack size is too big, so here's a link to my stack "chicken timer"

https://mega.co.nz/#!rwAkwRzI!HWyy9nouP ... 34PpRJsOe8

edit: the above is a new link, the original i shared actually had the close box greyed, fixed now.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Standalone Hanging/ Parsing Questions for BTC alarm stac

Post by Simon » Wed Dec 25, 2013 2:08 am

Hi treefolk,
1. When saved as a standalone, sometimes the stack stays running in processes after it has been closed.
You've got the destroyStack correct but I think you should cancel out any running messages from your send <in time>.

Checkout "pendingMessages()" in the dictionary (specifically the notes).

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Standalone Hanging/ Parsing Questions for BTC alarm stac

Post by bangkok » Thu Dec 26, 2013 4:42 pm

Check Mark's script : how to quit properly.

http://forums.runrev.com/viewtopic.php?t=1026

Post Reply