the allocation fails here. At that time, process' virtual memory size is 380MB (information obtained using task manager), and there is over 2GB of free RAM.
WinXP SP3 32-bit, same thing happens with VS2005 and VS2008.
I have tried setting "Support Addresses Larger Than 2 Gigabytes (/LARGEADDRESSAWA RE)"....