Problem with ProcessManager Sample!?

I

Ilya Tumanov [MS]

You're most likely running out of memory as by default
CreateToolhelp32Snapshot() would include processes heaps into snapshoot.

Since heaps are huge, there's not enough memory to create snapshoot so
you'll get a failure.



You should be able to fix that by using TH32CS_SNAPNOHEAPS flags as follows:



private const int TH32CS_SNAPNOHEAPS = 0x40000000;

....

IntPtr handle = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS |
TH32CS_SNAPNOHEAPS, 0);


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

RAS Entries 2
SDK for WM5.0: Problem with GPS-Sample 7
DLLimport 5
ANN: Updates to MSDN for 1/29/04 8
Error 0x80040154 with Flash Player in CF 2.0 2
serial comm 2
Multiple forms 2
DateTimePicker Control 3

Top