Article View: comp.os.msdos.programmer
Article #3730Re: C/C++7.0 .. 'null pointer assignments' .. but program's finished ! HELP!!
From: Jerzy Tarasiuk
Date: Sat, 10 Oct 1992 22:36
Date: Sat, 10 Oct 1992 22:36
9 lines
1118 bytes
1118 bytes
The 'null pointer assignment' is execution error which occured during program execution and is detected on end. To find where it occurs, should use debugger which can display actual value of *(0L) (or *NULL) and check when it changes. Or: try put exit(0) anywhere in code, if error still occurs put it in place executed earlier, if not remove and put in place executed later, until a instruction is located. The message means an assignment was done to address pointed by NULL, e.g. a=NULL; *a=something. (it occurs usually if someone forgets to initialize pointer)
Technical Details
Message-ID:
<JT.92Oct10233634@fizyk1.fuw.edu.pl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jtReferences:
<BvsL61.LEE@resntl.bhp.com.au>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.lang.c Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt From: jt@fuw.edu.pl (Jerzy Tarasiuk) Subject: Re: C/C++7.0 .. 'null pointer assignments' .. but program's finished ! HELP!! In-Reply-To: Bernard Orenstein's message of Thu, 8 Oct 1992 07:37:13 GMT Message-ID: <JT.92Oct10233634@fizyk1.fuw.edu.pl> Sender: news@fuw.edu.pl Nntp-Posting-Host: fizyk1 Organization: Warsaw University Physics Dept. References: <BvsL61.LEE@resntl.bhp.com.au> Date: Sat, 10 Oct 1992 22:36:34 GMT Lines: 9