www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/21/17:44:25

Message-ID: <37A0BF41.B7061F9F@go.ro>
Date: Thu, 29 Jul 1999 23:53:21 +0300
From: Radu Georgescu aka skoola <skoola AT go DOT ro>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: free(void *) is driving me nuts!!!
References: <379E3222 DOT CA7C7283 AT go DOT ro> <37BDCEBA DOT 194CF551 AT cartsys DOT com>
Reply-To: djgpp AT delorie DOT com

> > is there any known problem with free()??
> > my programm crashes sometimes and there is no crash if i'm removeing the
> > free calls.
> > i'm using some v2 distribution and pgcc.
>
> Most likely, this is your bug.  Things like writing an array out of
> bounds corrupt some of malloc's internal data, which can make it crash.
>

you meen malloc has some internal data?
i think it just calls some dpmi service and if you pass some good pointer to
free it should work.

- Raw text -


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