X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: general protection fault error Date: 9 Mar 2002 23:28:58 GMT Organization: Cornell University Lines: 12 Sender: asu1 AT cornell DOT invalid (on pool-141-149-206-246.syr.east.verizon.net) Message-ID: References: NNTP-Posting-Host: pool-141-149-206-246.syr.east.verizon.net X-Trace: news01.cit.cornell.edu 1015716538 1758 141.149.206.246 (9 Mar 2002 23:28:58 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 9 Mar 2002 23:28:58 GMT User-Agent: Xnews/L5 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "S. Kaleyta" wrote in news:u8kjo3p5q5kb41 @corp.supernews.com: > Is it possible to delete a pointer? I get a "general protection fault" > error when compiled and run on my pc but not on my unix box. > > Code segment: > int *pnt; > pnt = # > delete pnt; this is absurd ... pnt does not point to memory that was obtained from new.