Subj : Re: Heap contention/BC5.02 crt To : borland.public.cpp.borlandcpp From : Björn Lantz Date : Wed Nov 24 2004 02:10 pm I found a fantastic memory/heap manager called hoard, it seems to be doing the job pretty well on multiprocessor systems. Just linked with an implib:ed lib and ran like a charm. "Bob Gonder" wrote in message news:19qpp0hg3nrf2br8t6i17ek4bo6j4tffq2@4ax.com... > Do you really need to malloc the space? > Could you instead use local variables? > For instance, if you need a variable sized array, but know that the > size will never be larger than N, then you could just have a local > array of the maximum size , and use a sub-portion of it. > > Each thread gets it's own stack. You can set the stack size to > whatever you need (within reason, say 1-2 MB) (At least, in Win32, not > sure about Win16) .