Re: Strange access violations
From: Bjørge Sæther (bjorge_at_hahaha_itte.no)
Date: 09/30/04
- Next message: Stark: "A question about the TwwDBGrid component"
- Previous message: Bjørge Sæther: "Re: TListView initialization during FormCreate"
- In reply to: Jud McCranie: "Strange access violations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Stark: "A question about the TwwDBGrid component"
- Previous message: Bjørge Sæther: "Re: TListView initialization during FormCreate"
- In reply to: Jud McCranie: "Strange access violations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|