As my program starts (in the first constructor that executes) I can malloc()

up to 26 Mb of space from the heap. While my program is initializing I can

watch this number drop dramatically, and by the time it finishes

initializing (loading all instances, bitmaps, etc.), I only can only

malloc() 5 Mb of space from the heap, and that's not enough to run a movie

using DirectShow.

I found the /HEAP:reserve[,commit] link option in MSDN, and I've tried

setting that to various numbers, but it seems to have no effect on the

amount of memory available to malloc(). For example, I've tried setting it

to "/HEAP:41820160,41820160" or "/HEAP:41820160" or "/HEAP:33554432" or

"/HEAP:50331648" (all numbers greater than 26 Mb), to no avail.

The /HEAP help also says the default heap is 1 Mb, and that's clearly not

true in my case, where it starts out at something over 26 Mb with no /HEAP

option.

If I set it to "/HEEP:..." the linker gives an "unrecognized option" error

message, so I know my link switches are actually making it to the linker, at

any rate! :-)

How am I supposed to increase my heap space?

Michael Schwab