Message-ID: <37A0BF41.B7061F9F@go.ro> Date: Thu, 29 Jul 1999 23:53:21 +0300 From: Radu Georgescu aka skoola 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.