hard crashes with data from Internet

Richard Gaskin ambassador at fourthworld.com
Sat Dec 18 16:04:10 EST 2004


I have an app that makes a series of HTTP calls to a server to obtain a 
list of directory contents in nested directories.  I find when I make 
single calls with some time between them the results are almost 100% 
reliable, but when I make these calls in rapid succession sometimes I 
see garbage in the returned result, where the data from the server 
should be.

The nature of the garbage suggests it may be the result of an errant 
pointer, and this issue is being tracked in Bugzilla:
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=2226>

But my question for the moment is:  Anyone seen this before and have a 
workaround in place for preventing this errant-pointer garbage?

To be more specific, the engine doesn't crash until I try to set the 
htmlText of a field to it -- can you think of a way to determine if the 
data is valid HTML?

I thought about checking the data for the presence of something like 
"</body>", but I can imagine circumstances where the garbage might also 
contain some of the returned data (though I haven't logged enough yet to 
really know how frequently, if ever, that's really the case).

That may be sufficient in most cases, but I'd sure like to find a 100% 
method if possible.  I don't mind script errors, but things that cause 
hard crashes make my work look really sloppy to the user. :)

--
  Richard Gaskin
  Fourth World Media Corporation
  __________________________________________________
  Rev tools and more: http://www.fourthworld.com/rev


More information about the use-livecode mailing list