>>I have a global error handler for my application.
>>
>>on error do error_handler
>>
>>...
>>
>>procedure error_handler
>>linedesc = message(1)
>>
>>Being in IDE message(1) returns a correct description of the line executed ; but when we run .exe from Explorer it is either empty or something strange ( couldn't figure out such a line existsthe .
>>.Exe is built with debug checked.
>>
>>Is this expected behaviour ?
>>
>>Thank you.
>>Michael
>
>Forgot to mention, it is VFP5
MESSSAGE(1) only returns the complete line that caused the error if the source code is available. Normally, this isn't the case at runtime. See the help file for what's returned when it (source code) isn't. Largely, it's dependent on the nature of the line that caused the error.
George
Ubi caritas et amor, deus ibi est