I have a leak handle in a big old program. Using sysinternals handle.exe, I realized that the type of descriptor that flows is the "Event" descriptor. But I'm not sure what parts of my code I should look at. Is there a list of functions that return event descriptors?
EDIT: There are no instances of CreateEvent, CreateEventEx, or OpenEvent in the program.
How many of these missing pens do you see?
(. InitializeCriticalSection et.al.) , , Win32, " . , ( ), MFC , .
, . CreateEvent ( ) . , "When Hit..." , , (, . $CALLER). ... . , , .
, CreateEvent/CreateEventEx "Event". , , () .
Event, , CreateEvent (Ex) CloseHandle(). , , , , / (, -, - HANDLE, , ..).
, , , Close() , . , , .
CreateEvent Function @MSDNCreateEventEx Function @MSDN
CloseHandle @MSDN
, DLL CreateEvent CreateEventEx, Dependency Walker, , DLL:
http://www.dependencywalker.com/ ( )
, , - , .
, , , . , , , , . , - , .
CreateEvent ( ), , , , , .
, , , CreateEvent CreateEventEx. (, WaitForMultipleObjects), , .
. , -, , , CreateEvent (Ex), , , , , .
: http://msdn.microsoft.com/en-us/library/ms682655(VS.85).aspx
CreateEvent CreateEventEx .