locked
calling CreateToolhelp32Snapshot in WM6.1 gave an error RRS feed

  • Question

  • I wrote a program in C# that calls CreateToolhelp32Snapshot().  It works fine in WM5 and WM6.  Today someone tried it on WM6.1 and got an error saying it could not create a snapshot. 

    Any ideas?  Is there something in WM6.1 that would prevent CreateToolhelp32Snapshot() from working in WM6.1 ?

    Thanks,
    Paul

    Wednesday, February 11, 2009 1:07 AM

Answers

  • See this.


    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by warrentang Monday, February 16, 2009 10:16 AM
    • Unmarked as answer by plevintampabay Monday, February 16, 2009 1:09 PM
    • Marked as answer by plevintampabay Monday, February 16, 2009 1:09 PM
    Wednesday, February 11, 2009 2:25 AM

All replies

  • See this.


    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by warrentang Monday, February 16, 2009 10:16 AM
    • Unmarked as answer by plevintampabay Monday, February 16, 2009 1:09 PM
    • Marked as answer by plevintampabay Monday, February 16, 2009 1:09 PM
    Wednesday, February 11, 2009 2:25 AM
  • Thank you.  I added the option.  It builds and runs fine on my PDA.  But it also ran fine without that option on my PDA.  I'll send the build to the guy having the problem.  I'll post back when I know how it works for him. 

    Thanks again,
    Paul
    Wednesday, February 11, 2009 8:39 PM
  • That just means you have enough memory on your PDA to create snapshot. Launch few applications (which would increase heaps and decrease available RAM) and it would fail on your PDA.


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Wednesday, February 11, 2009 9:03 PM
  • I heard back from the guy having trouble with my program, and this fix did indeed solve the problem.  Thank you very much !
    Monday, February 16, 2009 1:08 PM