Re: AV when calling setlength on a dynamic array of boolean



On 24 Nov 2006 01:21:33 -0800, nic@xxxxxx wrote:

<snip>

Make a copy of your App and start cutting out code.

Also turn on the bounds checking in the compiler

Thanks J - when I initialise it twice the needed size it doesn't crash.
Guess I'm going out of bounds :-)

Good stuff

Go into the compiler options and turn Range Checking On
- you'll probably find the problem in seconds

If I were you I would keep it on, always, even in release code.
The App might run fractionally slower, but I doubt if you would notice
it.



.



Relevant Pages

  • Re: intent(out) arguments
    ... > depends on the compiler options used. ... I think it is safer for a ... > programmer to assume that an intentargument not defined in a ...
    (comp.lang.fortran)
  • Re: any error in the code
    ... Harald van D?k said: ... to the compiler options. ... Google users: ...
    (comp.lang.c)
  • Re: Seg fault even though address space is accessible
    ... Ajay wrote: ... snip ... ... I haven't figured out what are best compiler options yet. ... Try the download section. ...
    (comp.lang.c)
  • Re: fpc beats gcc? delphi?
    ... I couldn't find stripping. ... There's no compiler options menu ... ... odd or even? ...
    (borland.public.delphi.non-technical)