Article View: comp.lang.pascal.delphi.misc
Article #161Re: Access violation at 0x8AD853, read of address 0xffffffff
From: Arsène von Wyss [Antispam - emai...
Date: Fri, 17 Oct 1997 00:00
Date: Fri, 17 Oct 1997 00:00
38 lines
2520 bytes
2520 bytes
> Address 0xffffffff is Nil, so there is some pointer pointing to
> nothing, and being used. This may occur even before YOUR
> code is running, for example in initialization of components
> or pre compiled units. Are you using standard component library?
> are you using non-standard components? units? other extras?
Address 0xffffffff is not NIL (at least not in Turbo Pascal, Delphi 1,
Delphi 2, Delphi 3, Assembly...) but -1 (for a 32-Bit value).
NIL is 0. However, you often get the access violation above when trying to
access an object that has a nil pointer. It seems to me like the first four
bytes of memory at Address 0 are 0xFFFFFFFF, which is interpreted as the
VMT (Virtual Methods Table) pointer of the (uninitialized) object (but I
did not try it).
> > Any help/ideas gratefully received................./Nick
* You may use Assigned(Object) to ckeck is a pointer is NIL or not.
* Trace the program step-by-step until you get the error to find the
location if the debugger is unable to resolve the address.
* If your project is a VCL project, you can enable the console window
{$CONSOLE in the Application widow) and use it as debug output; just use
WriteLn('Debug string!');
to write text in this window.
* You can enable the hidden Disassembler/Debugger of Delphi, which will
probably show you the exact address and assembly code that caused the
exception (write me a mail if you don't know how to enable it)
Hope this helps...
Ars�ne von Wyss
avonwyss @ beaulieu-software.ch
******************************************************
* I removed my reply address to avoid spamming. *
* Please use the address above to reply or write me. *
******************************************************
Technical Details
Message-ID:
<01bcda9a$89781ba0$0101a8c0@lemming>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<344320d0.77675351@news.demon.co.uk> <3445396F.5329856A@techunix.technion.ac.il>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f973d,be12a4c3ae7d58a0 X-Google-Attributes: gidf973d,public X-Google-Thread: 10baee,be12a4c3ae7d58a0 X-Google-Attributes: gid10baee,public X-Google-Thread: 10545b,be12a4c3ae7d58a0 X-Google-Attributes: gid10545b,public From: "Arsène von Wyss [Antispam - email address in message]" <avonwyss@beaulieu-software.nospam.ch> Subject: Re: Access violation at 0x8AD853, read of address 0xffffffff Date: 1997/10/17 Message-ID: <01bcda9a$89781ba0$0101a8c0@lemming> X-Deja-AN: 281319104 References: <344320d0.77675351@news.demon.co.uk> <3445396F.5329856A@techunix.technion.ac.il> Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.ide,alt.lang.delphi