Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!rochester!cornell!uw-beaver!mit-eddie!wuarchive!usc!srhqla!demott!kdq From: kdq@demott.COM (Kevin D. Quitt) Newsgroups: comp.lang.c Subject: Re: Null Pointer Assignment Message-ID: <762@demott.COM> Date: 12 Oct 90 16:29:11 GMT References: <15004@mentor.cc.purdue.edu> Reply-To: kdq@demott.COM (Kevin D. Quitt) Distribution: usa Organization: DeMott Electronics Co., Van Nuys CA Lines: 30 In article <15004@mentor.cc.purdue.edu> schikore@mentor.cc.purdue.edu (Dan Schikore) writes: >What exactly does the run-time error "Null Pointer Assignment" mean? > >printf("done\n"); >exit(0); > >at the end of my main, and when executed, it says > >done >Null Pointer Assignment I would guess that you're using Microsoft C, which reserves a small portion at the beginning of the data as to try to detect the use of null pointers, and to help you avoid other side effects. This area has a known value (the Microsoft copyright info), and it is checked upon exit. If the data are not correct, you've written thru a null pointer, and you get the above error message. I assume further that if you're not using Mirosoft C, your C compiler does something similar. -- _ Kevin D. Quitt demott!kdq kdq@demott.com DeMott Electronics Co. 14707 Keswick St. Van Nuys, CA 91405-1266 VOICE (818) 988-4975 FAX (818) 997-1190 MODEM (818) 997-4496 PEP last 96.37% of all statistics are made up.