GetProcessMemoryInfo crashes on 64bit system

Discussion in 'Windows 64bit' started by Peter, Jan 24, 2007.

  1. Peter

    Peter Guest

    I'm calling GetProcessMemoryInfo() like I used to and it crashes on
    64bit WIndows XP.
    When this function returns the stack is corrupted.
    I'm doing the following:

    HANDLE process_id;
    PROCESS_MEMORY_COUNTERS process_memory_counter;

    process_id = GetCurrentProcess();
    GetProcessMemoryInfo(process_id, &process_memory_counter,

    I don't see anything wrong with this?
    Anybody any clue?
    The same code works fine on win32 systems.
    Peter, Jan 24, 2007
    1. Advertisements

  2. Peter

    Peter Guest

    somebody had a private copy of psapi.h in the source tree -- sorry
    about this noise
    Peter, Jan 25, 2007
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.