Original Post
I've been running into some memory allocation problems in a DLL that I'm writing. The problem is that calls to malloc or realloc eventually return NULL. According to the docs, this happens when I run out of memory on my DLL's heap. It makes sense as memory usage in the task manager jumps to about 1.5gb for the process that's using my DLL before crashing. Is it possible to tell how large each dll's heap is for a given process? or does it dynamically grow/shrink? Also, how are each dll's heaps organized in the process's address space? I haven't had much luck finding any of this info on the MSDN site..