http://bugs.winehq.org/show_bug.cgi?id=3063
------- Additional Comments From damjan.jov@gmail.com 2006-30-10 08:23 ------- Created an attachment (id=3977) --> (http://bugs.winehq.org/attachment.cgi?id=3977&action=view) source code for handle counting tool
Yuri, here's the source code (it's too fancy, I later learned there is an easier way - that is, without using NTDLL.DLL).
Please do post some numbers, as people on bug 6506 were complaining it could be emule's fault.
I've been thinking about how to track down the handle leak. Unfortunately it won't be easy, emule uses around 40 imports from WS2_32.DLL. My efforts at building smatch have failed (it seems impossible to build GCC 3.1.1 on newer versions of GCC, and I don't know where to find a 3.1.1 binary to build itself with), any ideas?