Unix vs. Windows Posix threads !

Jef Gearhart jef@tpssys.com
Wed Jul 7 19:31:00 GMT 2004


Your memory leak is probably due to the handle leak.  This could be 
pthread related or not. Handle leaks can be difficult to detect.  I 
recommend simply reviewing your code thoroughly.   Without seeing your 
code I cannot suggest anything more.

Good luck.


Lavanya Swetharanyan wrote:

> Thanks. I ran the application and opened the task manager as 
> suggested. The thread count is constant at 6. The handle  though are 
> increasing continuously.  Even when the delta memory is 0 the handle 
> count is increasing. The delta mem varies from 0-4-8 K every time the 
> screen refreshes on its own.  What does this increasing number of 
> handles mean ?. Is it causing the memory leak ?. I am also using 
> windows sockets apart from pthreads.
>



More information about the Pthreads-win32 mailing list