www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/09/18:30:06

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
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: <Xns91CCBC042C014asu1cornelledu@132.236.56.8>
References: <u8kjo3p5q5kb41 AT corp DOT supernews DOT com>
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" <skaleyta AT home DOT com> 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 = &num;
> delete pnt;

this is absurd ... pnt does not point to memory that was obtained from new.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019