views:

105

answers:

2

I have a problem with loading a DLL under Windows Mobile 5.0. I'm pretty confident that this is caused by running out of the application virtual memory (the 32 MB slot of the process, as explained in Windows CE .NET Advanced Memory Management).

I'm looking for a way to actually make sure that this is the issue and investigate whether my efforts bring expected results. Do you know of a way to check the contents of the virtual memory application slot? Any applications that can help me with this task?

A: 

So far I've found an entry on Windows CE team blog about WinCE memory management/reporting tools. I'm having a look at DevHealth.

Michał Drozdowicz
A: 

Another way to do this is to use the toolhelp32 api to read all the virtual memory allocations, modules etc of a process. I ended up writing a tool a long time ago using those apis to read the loaded modules of all the processes on the device, plus their virtual memory usage so I could get an idea if the device was experiencing what we knew as 'dllcrunch' where the load point for the next dll in our process happens to be in our heap space, so we were getting OOM errors when loading the dll, even though there was heaps of room spare

Matt