public inbox for
 help / color / mirror / Atom feed
From: "Patrick DUPUTZ" <>
To: <>
Subject: [pthread] Memory leak using pthread (pthreadVC)
Date: Mon, 05 Jan 2004 17:09:00 -0000	[thread overview]

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,

             reply	other threads:[~2004-01-05 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-05 17:09 Patrick DUPUTZ [this message]
2004-01-05 21:29 ` Will Bryant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).