Re: Can't create error message file: ex.err
- Posted by Juergen Luethje <j.lue at gmx.de> Sep 07, 2006
- 598 views
Greg Haberek wrote: >> I have no information about it, since there is no "ex.err" file, and >> Euphoria also doesn't tell me something about it in the console window. > > You could always direct your ex.err files to a common location. > > }}} <eucode> > constant APPDATA = getenv( "APPDATA" ) > > if sequence( APPDATA ) then > crash_file( APPDATA & "\\ex.err" ) > crash_message( "Please see \"" & APPDATA & "\\ex.err\" for more > information." ) > end if > </eucode> {{{ I can't remember that I ever encountered an envirinment variable APPDATA (see also Pete's related post). The envirinment variable TEMP or TMP might be used instead, though. ( TEMP or TMP pointing to a read-only drive wouldn't make much sense, would it? ) However, as I wrote there are other situations where this problem occurs. I first encountered this problem, when I forgot to close files in a loop. Try this:
integer fn for i = 1 to 30 do fn = open("c:\\autoexec.bat", "r") end for ? 1/0
And, as I wrote, there actually is not reason why Euphoria should display the message "Can't create error message file: ex.err" _instead of_ of the original error message. I can't believe that Rob intentionally made Euphoria work this way. Regards, Juergen -- Who is general fault, and why does he read my hard disk?