CMemoryState funzt net...



  • Hallo,

    was mache ich hier falsch, da ich Fehlermeldungen zu dem CMemorySate bekomme?
    Fehlermeldung:
    -----------------------------------------------------
    Kompilierung läuft...

    error C2079: 'msOld' verwendet undefiniertes struct 'CMemoryState'
    error C2228: Der linke Teil von '.Checkpoint' muss eine Klasse/Struktur/Union sein
    error C2228: Der linke Teil von '.DumpAllObjectsSince' muss eine Klasse/Struktur/Union sein
    Fehler beim Ausführen von cl.exe.

    socksell.cpp - 3 Fehler, 0 Warnung(en)

    Danke für Tips.............

    CMemoryState msOld;
    msOld.Checkpoint();

    File *mCFile;
    mCFile = new File();

    MApp *CApp;
    CApp = new MApp();

    mSocket *pSocket;
    pSocket = new mSocket();

    CISess *CISession;
    CISession = new CISess();

    ASocket *AsySocket;
    AsySocket = new ASocket();

    msOld.DumpAllObjectsSince();



  • As with other diagnostics, the CMemoryState diagnostics are only available in debug versions of your program. A debug version must have the _DEBUG constant defined.

    und

    Note Declarations of objects of type CMemoryState and calls to member functions should be bracketed by #if defined(_DEBUG)/#endif directives. This causes memory diagnostics to be included only in debugging builds of your program.



  • Thank you for your swiftly reply.........;)

    Regards

    Ken


Anmelden zum Antworten