delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/02/11:41:08

From: deisenzi AT d DOT umn DOT edu
Newsgroups: comp.os.msdos.djgpp
Subject: page fault and prob. w/ free()
Date: 2 Feb 2000 16:13:38 GMT
Organization: University of Minnesota-Duluth
Lines: 15
Message-ID: <879l3i$m61$1@news.d.umn.edu>
NNTP-Posting-Host: bulldog5.d.umn.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am causing a  run-time error in the form of a page fault.  I thought
a page fault was a miss on the cache so I am not sure how I'm causing
it but the offending line of code is...
free(data_buffer);

where data_buffer has been declared as follows...
unsigned char *data_buffer;

and allocated memory using malloc() before free is called.

any suggestions of why free() wouldn't be working?

thanks,
Darren

- Raw text -


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