Possible bug in MSC malloc (Large Memory Model)

John Birchfield jb at CSUStan.EDU
Sat May 13 00:49:22 AEST 1989


I have a program which does directory scanning in a big way and I am
finding that the program corrupts memory and behaves in a more or less
irrational manner when the Large Memory Model is used.

The errors reported relate to the inability to allocate memory and the
program failing or that DOS reports memory as being corrupted and
can't load COMMAND.COM when the program terminates.

The problems dissappear when I use the Small Memory Model - I know that this
sounds like the old pointer size problem but I have looked over the places
the program does mallocs and frees and they seem to be correct.

The question then is IS THERE A KNOWN BUG IN MALLOC USING THE LARGE MEMORY
MODEL???

thanks
-                                                                      -
===                                                                  ===
John Birchfield                                       1575 Quail Ct.
jb at koko.csustan.edu                                   Turlock, CA  95380
                                                      (209) 634-6243



More information about the Comp.lang.c mailing list