Re: Strange access violations

From: Bjørge Sæther (bjorge_at_hahaha_itte.no)
Date: 09/30/04


Date: Thu, 30 Sep 2004 02:52:25 +0200

Jud McCranie wrote:
> A program of mine that was working is now giving strange access
> violations for a user in several different places. the program is
> still working for me with no access violations. When I do "find
> error" on that address, Delphi doesn't find it. The user said that it
> is giving the same error address when the problem occurs at different
> places in the program. The message about the access violation gives
> the module, which is my program.
>
> I've tried it on two computers, both XP and it works. His is using
> W2000.
>
> I've found the point in the source code of one of the problems:
>
> showmessage( 'after send ' + inttostr( MinorVersion)); // error
> finally
> showmessage( 'before free '+ inttostr( MinorVersion));
> Free;
> showmessage( 'after free '+ inttostr( MinorVersion));
> end;
>
> It will display the first message, then give the access error.
>
> What could be wrong?

If this is part of a method (which I believe it is, as you call 'Free'), the
object itself may be invalid (or Nil).

-- 
Regards,
Bjørge Sæther
bjorge@haha_itte.no
-------------------------------------
I'll not spend any money on American Software products
until armed forces are out of Iraq.


Relevant Pages

  • Strange access violations
    ... A program of mine that was working is now giving strange access ... violations for a user in several different places. ... It will display the first message, ...
    (comp.lang.pascal.delphi.misc)
  • Re: Strange access violations
    ... > A program of mine that was working is now giving strange access ... > violations for a user in several different places. ... Another thought are the fpu flag settings - check google ...
    (comp.lang.pascal.delphi.misc)
  • Re: Strange access violations
    ... Jud McCranie wrote: ... > A program of mine that was working is now giving strange access ... > violations for a user in several different places. ... Nicholas Sherlock ...
    (comp.lang.pascal.delphi.misc)