Date: Sun, 18 Jun 2000 08:44:34 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Martell cc: djgpp AT delorie DOT com Subject: Re: free crashes In-Reply-To: <394BC51F.B6B956C1@ne.infi.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 17 Jun 2000, Martell wrote: > my program works fine, except when the line at the very end of my code > comes along: > > free(bmp.data); > > then it crashes. what in the world could cause this?! Most probably, your bugs: your code overwrites the end of allocated buffer(s), somewhere. For the details, see section 9.2 of the DJGPP FAQ list (available as v2/faq230b.zip from the same place you get DJGPP).