Autor Beitrag
Matthias
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 121



BeitragVerfasst: Mo 20.02.06 16:38 
Hallo leute,

für Debugzwecke möchte ich den vom Programm genutzten Speicher und die Handles auslesen. Der Speicher ist kein Problem. Bei den Handles komme ich jedoch nicht weiter. Ich möchte die Anzahl der Handles, GDI Handles und USER Handles ermitteln. Ich denke, dass einem dabei irgendend eine API mit irgendwelchen Aufrufen weiterhilft. Nur welche.

Vielen Dank für Eure Antworten.

Matthias
worm
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 135


D6 Prof
BeitragVerfasst: Mo 27.02.06 16:34 
Falls ein externes Programm reicht, schau dir mal SysInternals ProcessExplorer an.

Zum Debuggen innerhalb der Applikation könnte MemProof weiterhelfen - ursprünglich sucht es nur nach Memory Leaks, achtet aber genauso auf angeforderte und wieder freigegebene Handles und gibt jeweils beim Beenden Deines Programms einen Report aus.

_________________
In the beginning, the universe was created. This has made a lot of people very angry, and is generally considered to have been a bad move.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 27.02.06 17:31 

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Matthias Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 121



BeitragVerfasst: Di 28.02.06 15:04 
Hallo,

vielen Dank für Eure Antworten.
Den ProcessExplorer benutze ich schon seit längerem. Ich möchte jedoch in meinem Programm an einigen Stellen
eine eventuelle Veränderung dokumentieren.
GetGUIRecources ist genau das was ich gesucht habe.
Die zweite Function, die ich noch benötige, heißt übrigens GetProcessHandleCount.

Matthias