Article View: comp.os.msdos.programmer
Article #3699Re: C/C++7.0 .. 'null pointer assignments'
From: Pradeep K Tapadiya
Date: Thu, 08 Oct 1992 16:03
Date: Thu, 08 Oct 1992 16:03
25 lines
1426 bytes
1426 bytes
What that means is somewhere in "your" part of the program you are writing to a memory location outside your allocated space. In your case, you are writing to memory location 0x0000:0x0000. This would happen most of the time when the programmer uses malloc() family of routines, doesn't care to check if the allocation was successful and just goes ahead and uses the pointer returned. Microsoft compiler adds a piece of code at the "exit" of your program which checks if this memory location is overwritten. This is rather a clever way to partially check the misbehaviour of a program. What all this means is that you need to go back and debug your program more carefully. Look for memcpy(), strcpy() kind of routines in particular. Another way it to put exit() after each phase of your program and see when the messaage appears again. This way you can narrow down your search. Hope this helps. Pradeep tpradeep@cs.tamu.edu
Technical Details
Message-ID:
<1992Oct8.160323.20843@tamsun.tamu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!tamsun.tamu.edu!tpradeepShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!tamsun.tamu.edu!tpradeep From: tpradeep@cs.tamu.edu (Pradeep K Tapadiya) Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Re: C/C++7.0 .. 'null pointer assignments' Message-ID: <1992Oct8.160323.20843@tamsun.tamu.edu> Date: 8 Oct 92 16:03:23 GMT Article-I.D.: tamsun.1992Oct8.160323.20843 Sender: news@tamsun.tamu.edu (Read News) Organization: Computer Science Department, Texas A&M University Lines: 25