Hi Brian,

 I am talking of lingo errors like trying to read from a list while it
is probably void, I have an error in one of my scripts, but it only
randomly appears and not at my office yet, only sometimes at customers.
Of course I could check all variables but I am talking of maybe 800
instances of some 10 scripts, many of them beeing called by "on step
frame". This might very well slow the application. I thought of writing
an general error script, that reports the exact error and the
application status via eMail to me and on the other hand just kills the
script (not a real loss) in order to continue the program. This would
make it very easy to find this and following errors in order to
eliminate them.

I don't know where the error comes from. It might result from a dirty
XtraNet operation, or an error in maybe one of 1000000 data records in
the online database...

So, is there a possibility like the one I was looking for?

best regards, Florian

Brian Romanko wrote:
> 
> Florian,
> 
> When you say "produced an error", what are you referring to?  Ususally,
> I have all of my script instances/behaviors return error codes in all of
> their handlers.  That way, if a problem occurs, I return a -1 or -252 or
> whatever, and a 0 or reference to an object if everything worked out OK.
> Conditionals can then determine what to do if the call failed.  I find
> good coding has mechanisms in place to trap errors, and handle them if
> they occur.  Why quell "Script Error" messages when you can write code
> that doesn't cause them in the first place?
> 
> Brian Romanko
> Lead Developer - Neo/SCI Corporation
> Member - Greater Rochester Macromedia User Group
> 
> > -----Original Message-----
> > Hi!
> >
> > I am looking for a possibility to detect which script
> > (especially script
> > instances) produced an error in projectors in order to
> > automatically remove it from the actorlist.
> >
> > Something like
> >
> > on alertHook me,,,,errorComingFrom
> >   deleteOne (the actorlist, errorComingFrom)
> > end
> >
> > I think you know what i mean.
> >
> > best regards, Florian
> 
> [To remove yourself from this list, or to change to digest mode, go to 
>http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
>[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
>learning and helping with programming Lingo.  Thanks!]
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to