On WindowMobile 6.1, I am using VirtualAlloc to reserve 2MB chunks, which will return me an address from the large shared memory area so allocations do not count against my per process virtual space.
(doc here: http://msdn.microsoft.com/en-us/library/aa908768.aspx)
However, on some devices i notice that I am not able to reserve memory after a certain point. VirtualAlloc will return NULL (getlasterror() says out of memory). The only explanation for this that I see is that another process has already reserved a bunch of memory and my process is therefore unable to.
Any idea where I can find a tool to show me the shared mem region of a WM device?
Thanks.