From: David F. <dav...@ho...> - 2003-07-18 11:13:15
|
Hi Sorry for not replying for some time...well here's some code that crashes on my box... Sincerely David At 20:13 2003-07-14 -0400, you wrote: >Please provide examples. It will help us to know what it is that isn't >working. Obviously, malloc is being used by others or we would have had >to have done something about it years ago. > >Thanks, >Earnie. > >Duncan Murdoch wrote: > > On Mon, 14 Jul 2003 14:32:00 +0200, David Fredin > > <dav...@ho...> wrote : > > > > > >>Hi! > >> > >>My program keeps on crashing on mallocs. It's very strange. I have checked > >>every single malloc if it's returning NULL, and ive checked the values I > >>use when mallocing. I shouldn't run out of memory 'cause Im only doing > >>stuff with quite small strings, which I've checked for \0's of course... > >> > >>Anyone have any clues or anything that might help??? > > > > > > By default, MinGW uses the msvcrt malloc. You can probably cause it > > to crash if you mix in calls to your own version of malloc, or if > > something in your code is writing outside the blocks it allocates. > > > > I don't know the details of the msvcrt code, but most mallocs maintain > > some sort of structure in unallocated memory to tell them where the > > free blocks are. If your malloc or your code is writing there, you'll > > likely crash. > > > > Duncan Murdoch > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Parasoft > > Error proof Web apps, automate testing & more. > > Download & eval WebKing and get a free book. > > www.parasoft.com/bulletproofapps1 > > _______________________________________________ > > MinGW-users mailing list > > Min...@li... > > > > You may change your MinGW Account Options or unsubscribe at: > > https://lists.sourceforge.net/lists/listinfo/mingw-users > > > > > >------------------------------------------------------- >This SF.Net email sponsored by: Parasoft >Error proof Web apps, automate testing & more. >Download & eval WebKing and get a free book. >www.parasoft.com/bulletproofapps1 >_______________________________________________ >MinGW-users mailing list >Min...@li... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users |