How to solve "can't find stack" error

tbodine bodine at bodinetraininggames.com
Wed Jan 14 20:01:20 EST 2015


Hi all.

Looking for some insight here... I have a desktop program built in LC 6.5.1
that uses LC stacks as user files for storing user data in fields and
cprops. Mostly this works well. However, I get occasional Error Reports when
a few users have tried to reopen a file they created. Error type is "Chunk:
can't find stack". I know the file exists because the user just picked it
with the answer file command. 

The error occurs at a line where I first read a cprop from the stack. And
the line just prior to that loads the stack with "go invisible to card 1 of
stack tFullFilePath"

My theory is on some (slower?) machines the stack file is not entirely
loaded before the next line of my handler tries to read from it. 

The error only happens to a few users, but tends to hit them repeatedly, and
I know one of them has an old machine. The typical stack file size is well
under 300k.

Does that theory sound feasible? I thought about inserting a "wait for X ms"
between the two lines of code, but I'd just be guessing at the duration.
Frankly, I've never understood the use of "wait" in LC... as it often seems
arbitrary. Feel free to school me on that or anything else!

Thanks for your thoughts.

Tom Bodine




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-solve-can-t-find-stack-error-tp4687828.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list