From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9181 invoked by alias); 5 Jan 2004 17:09:08 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 9161 invoked from network); 5 Jan 2004 17:09:06 -0000 Received: from unknown (HELO mwinf0803.wanadoo.fr) (193.252.22.23) by sources.redhat.com with SMTP; 5 Jan 2004 17:09:06 -0000 Received: from xterminhate (ANantes-106-1-31-55.w81-51.abo.wanadoo.fr [81.51.90.55]) by mwinf0803.wanadoo.fr (SMTP Server) with ESMTP id 0255D180022A for ; Mon, 5 Jan 2004 18:09:05 +0100 (CET) From: "Patrick DUPUTZ" To: Subject: [pthread] Memory leak using pthread (pthreadVC) Date: Mon, 05 Jan 2004 17:09:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg00000.txt.bz2 Hi, I'm a new user of Posix Thread for Win32 (using pthreadVC.dll) and I have encountered a problem of memory leak in my program since I replaced the Win32 thread calls by Posix ones. Here is my program in the main lines, did I miss something? // My thread void * ClientThread ( void * ) { // pthread_exit( NULL ); // Commented because that does not compile under MS Visual C+ 6.0 (don't know why!) return( NULL ); // no other solution to compile.. } // My Main void Main(.) { pthread_t tid; while ( true ) { pthread_create( &tid, NULL, ClientThread, &arg ); } exit( 0 ); } Kind Regards, Xterminhate.