Page 1 of 1

Standalone Hanging/ Parsing Questions for BTC alarm stack

Posted: Tue Dec 24, 2013 8:06 pm
by treefolk
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.

Re: Standalone Hanging/ Parsing Questions for BTC alarm stac

Posted: Wed Dec 25, 2013 2:08 am
by Simon
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

Re: Standalone Hanging/ Parsing Questions for BTC alarm stac

Posted: Thu Dec 26, 2013 4:42 pm
by bangkok
Check Mark's script : how to quit properly.

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