mystery exception

Alex Rice alrice at ARCplanning.com
Mon Mar 10 19:52:01 EST 2003


On Friday, March 7, 2003, at 12:30  PM, Alex Rice wrote:

> I am getting an exception that only happens in my standalone, not in 
> the IDE. Does anyone recognize this exception & have a clue for me? 
> The exception message is
>
> 91,425,31
> 77,425,31
> 443,425,5,false
> 529,425,1,false

I finally tracked down this exception- and of course in retrospect it 
was moronic: I was setting properties of a stack that did not exist 
yet. It's weird that in the standalone the handler quit on OS X, but 
continued on Windows.

BTW here is my meager attempt at rolling my own errordialog. Are there 
any public domain ones? I'm not really clear on the intended use of the 
error display stacks that are included with Rev.

on errorDialog pErrContents
   put pErrContents after message -- in IDE for debugging
   put item 4 of the last line of pErrContents into tObject
   put empty into tErrorString
   try
     repeat for each line l in (line 1 to -2 of pErrContents)
       put "Error description: " && line (item 1 of l) \
           of the cErrorsList of cd 1 of stack "REVErrorDisplay" & cr 
after tErrorString
       put word 1 to -1 of line (item 2 of l) of the script of tObject & 
cr after tErrorString
       put "Line:" && item 2 of l && "Character:" && item 3 of l & cr 
after tErrorString
       put "Value:" && item 4 of l & cr & cr after tErrorString
     end repeat
   catch pErrContents2
     -- failed to parse the error codes
     -- display what we could parse, if any
     answer warning "Application error:" & linefeed & linefeed & 
pErrContents & \
         linefeed & linefeed & \
         tErrorString
     exit errorDialog
   end try
   answer warning "Application error:" & linefeed & linefeed & 
tErrorString
end errorDialog

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
alrice at ARCplanning.com
alrice at swcp.com






More information about the use-livecode mailing list