Hi Andre,

This doesn't work. Opening a corrupted stack doesn't throw an error. You need to check the result.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info.

On 29 jul 2008, at 06:11, Andre Garzia wrote:

Peter,

as Richard said, stack corruption is rare but if you truly want to
check this kind of stuff, why not use a simple try/catch block?

try
 go stack "I am as corrupt as the brazilian goverment"
catch n
 answer error "the stack is dizzy"
end try

this will make sure the stack is actually a stack but it can't verify
if the stack content is right, you might want to do further checks. If
your stack never changes, you can compute a checksum from the
stackfile and store it somewhere for comparing.

Andre

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to