in reply to Re: Perl threads test on Windows: how to close thread handles?
in thread Perl threads test on Windows: how to close thread handles?

Of course, if you could track down what type of handle is leaking first (not easy!)

Actually, it is easy. ;-) The sysinternals nthandle utility will tell you.

perl.exe pid: 3980 4: Thread perl.exe(3980): 5816 8: Thread perl.exe(3980): 3388 c: Thread perl.exe(3980): 3604 10: Thread perl.exe(3980): 4528 14: Thread perl.exe(3980): 1340 18: Thread perl.exe(3980): 3316 ...

Replies are listed 'Best First'.
Re^3: Perl threads test on Windows: how to close thread handles?
by BrowserUk (Patriarch) on Jun 04, 2004 at 04:22 UTC

    Yeah! Once I found the right place to look, http://www.smidgeonsoft.coms PEBrowse showed me the same thing.

    Process Information: Kernel Objects: 0004 - Key \KernelObjects\CritSecOutOfMemoryEvent (0xE10085F0) 0008 - Directory \KnownDlls (0xE14BC318) 000C - File C:\Perl\test (0x81CC1568) 0010 - Key HKLM (0xE1138618) 0014 - Directory \Windows (0xE13B7D10) 0018 - Port (0xE1B25838) 001C - Section (0xE14DAAF0) 0020 - Event (0x81EC2FF0) 0024 - WindowStation \Windows\WindowStations\WinSta0 (0x82124AD8) 0028 - Event (0x821446D0) 002C - WindowStation \Windows\WindowStations\WinSta0 (0x82124AD8) 0030 - Desktop (0x82203278) 0034 - Key HKLM\SYSTEM\ControlSet001\Control\Nls\Locale (0xE1C85688) 0038 - Key HKLM\SYSTEM\ControlSet001\Control\Nls\Locale\Alternate Sort +s (0xE1B0FBB0) 003C - Key HKLM\SYSTEM\ControlSet001\Control\Nls\Language Groups (0xE1 +A886C8) 0040 - Key HKCU (0xE214BCE8) 0044 - Thread (0x818FD208) 0048 - Thread (0x81CC3CA8) 004C - Thread (0x81851DA8) 0050 - Thread (0x81D1CAF8) ...

    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail