Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!aplcen!uakari.primate.wisc.edu!nic.MR.NET!ns!ddb From: ddb@ns.network.com (David Dyer-Bennet) Newsgroups: comp.sys.ibm.pc Subject: Microsoft C 5.1 memory fragmentation problem Message-ID: <1990Jan1.211844.10550@ns.network.com> Date: 1 Jan 90 21:18:44 GMT Sender: news@ns.network.com (David Dyer-Bennet) Reply-To: ddb@network.com (David Dyer-Bennet) Organization: Terrabit Software Lines: 18 I'm sure I remember seeing references to this problem in various places: when I do a LOT of malloc and free using the library routines from Microsoft, I get my heap mongo fragmented, because they don't merge adjacent free space. (This is obviously a bug, but never mind that now....) I vaguely remember that Microsoft has published some code to do this merging, that one can put into a program and call when needed. Can anybody give me a pointer to code to merge adjacent free space in the Microsoft heap, or code for a whole new malloc that will work in the Microsoft C environment? Anon ftp location would be fine, or mail it to me maybe if it's small. Thanks! -- David Dyer-Bennet, ddb@terrabit.fidonet.org or ddb@network.com or Fidonet 1:282/341.0, (612) 721-8967 9600hst/2400/1200/300 or terrabit!ddb@Lynx.MN.Org, ...{amdahl,hpda}!bungia!viper!terrabit!ddb