Re: EuGrid - was Runs w/Interpreter but not as .exe

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Jonas,

I know one case where you will not succeed with trace, i.e., if you open
a file in a subroutine and without closing. If you call this routine in
a loop often enough, every time a new file handle will be 'consumed',
and then your program will end without any error message, even with
trace!

Have a nice day, Rolf


Jonas Temple wrote:
> 
> 
> Rob,
> 
> I followed your instructions, made sure every include had "with trace"
> and used trace(3) at the top of my main program file.  I then bound the
> program and ran.  I got the Windows crash message again but no
> ctrace.out.  Is ctrace.out produced in bound mode?
> 
> Jonas
> Robert Craig wrote:
> > You can also use Euphoria's trace(3):
> > with trace
> > trace(3)
> >
> > It creates a "ctrace.out" file containing the last
> > 500 lines leading up to the machine-level crash.
> > The line just before "=THE END=" is the one that
> > was being executed when the crash occurred.
> >
> > Be aware that trace(3) will slow your program down,
> > maybe by a factor of 100.
> >
> > If you do figure out the line where it is dying,
> > you could insert a trace(1) or a ? 1/0 to dump
> > out the variable values being used just prior to that line.
> >
> > Before using Euphoria's trace with Win32Lib,
> > you might want to strip out the trace-related
> > statements that are in Win32Lib.ew and related files.
> > For instance:
> >     without trace
> > appears in a few places.
> >
> > Regards,
> >    Rob Craig
> >    Rapid Deployment Software
> >    http://www.RapidEuphoria.com
> >
> >
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu