home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
- From: sakkinen@jyu.fi (Markku Sakkinen)
- Subject: Re: Explanation for "Null pointer assignment"
- Message-ID: <1992Nov10.065639.5452@jyu.fi>
- Organization: University of Jyvaskyla, Finland
- References: <Bww82p.HIw@peora.sdc.ccur.com> <541@ulogic.UUCP>
- Date: Tue, 10 Nov 1992 06:56:39 GMT
- Lines: 31
-
- In article <541@ulogic.UUCP> hartman@ulogic.UUCP (Richard M. Hartman) writes:
- >In article <Bww82p.HIw@peora.sdc.ccur.com> tran@peora.sdc.ccur.com (Nhan Tran) writes:
- >>
- >>I am using Borland C++ 2.0. When my program finish, it has a run-time error
- >>message "Null pointer assignment". According to the manual,
- >>
- >> "Null pointer assignment" is displayed to inform you that
- >> (most likely) a value was stored to an uninitialized pointer.
- ^^^^^^^^^^^^^^^^^^
- >> The program may appear to work properly in all other respects;
- >> however, this is a serious bug ...
- >>
- >>I am puzzled by this. If I declare a pointer without initialzing it, then
- >>the program will assign some value to that pointer (by using it) at run-time.
- >
- >I read the other answers you got, and noone actually seemed to directly
- >address your question about "the program will assign...", so here goes.
- > [good explanation deleted]
-
- The original explanation in the manual (above) was extremely incorrect
- and misleading. No wonder the person got puzzled.
-
- ----------------------------------------------------------------------
- Markku Sakkinen (sakkinen@jytko.jyu.fi)
- SAKKINEN@FINJYU.bitnet (alternative network address)
- Department of Computer Science and Information Systems
- University of Jyvaskyla (a's with umlauts)
- PL 35
- SF-40351 Jyvaskyla (umlauts again)
- Finland
- ----------------------------------------------------------------------
-