Problem with ProcessManager Sample!?

  • Thread starter Thread starter Guest
  • Start date Start date
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).
 
Back
Top