delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/22/06:12:20

X-Spam-Check-By: sourceware.org
Message-ID: <B92EA0296F30D611A71E000475744AAD6FD4C1@10.10.IANA-CBLK-RESERVED1>
From: =?ISO-8859-1?Q?Martin_J=F6hren?= <m DOT joehren AT hoppe-bmt DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: WG: Memory Problem with POSIX Thread under Windows XP
Date: Tue, 22 Aug 2006 12:08:47 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2657.72)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I tried following code with vs2005, and... there is no memory problem! So
the bug must be located in CYGWIN or in GCC. Form now on it seems to me,
that I really need help. Cause I'm not so familiar with deeper CYGWIN or GCC
problems. I'm looking foward for any ideas how to handle the problem...

THX

#include "stdafx.h"
#include "windows.h"

DWORD WINAPI testThread(LPVOID lpParam)
{
	double k = 1.23223423;
	printf("\r\n %f \r\n",k);
	return 0;
}

int _tmain(int argc, _TCHAR* argv[])
{
	HANDLE tHandle;


	while(1)
	{
		tHandle = CreateThread(
				  NULL,
				  NULL,
				  &testThread,
				  NULL,
				  NULL,
				  NULL
				);
		WaitForSingleObject(tHandle,1000);
		CloseHandle(tHandle);
	}
	return 0;
}

 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019