Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-10-11 Thread Corinna Vinschen
On Aug 22 09:03, Martin J?hren wrote: > Hello everyone, > > ich have a problem under Windows XP using CYGWIN 3.1.17(6)-release > (i686-pc-cygwin) with GCC 3.4.4 with the following code: > > > void *testThread(void *data) > { > double kk = 1.232231212; > printf("\r\n%f",kk); > //p

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Christopher Faylor
On Tue, Aug 22, 2006 at 12:46:18PM +0100, Dave Korn wrote: >On 22 August 2006 11:09, Martin J?hren wrote: >>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 no

RE: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Dave Korn
On 22 August 2006 11:09, Martin Jöhren wrote: > 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 lookin

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Martin Jöhren
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... TH

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Samuel Thibault
Martin Jöhren, le Tue 22 Aug 2006 11:13:36 +0200, a écrit : > This indicates that the problem lies in the cygwin shell or in gcc or > it is a windows based problem, which could mean that windows is not > abled to free the threads as fast as the program creates new ones. Any > ideas? I doubt it may

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Martin Jöhren
Hi Samuel, yes, there is no problem when I write: double kk = 1.2323231; while(1) printf("\r\n %f \r\n",kk); in main function. The problem occures only in combination with a thread. I tried now the same code (with some little changes) with the boost thread library under C++. There is als

Re: WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Samuel Thibault
Hi, Martin Jöhren, le Tue 22 Aug 2006 09:03:03 +0200, a écrit : > printf("\r\n%f",kk); > If i compile and start the executing file I can see in the windows > taskmanager, that the memory used by the program increases continuesly every > second. If I change the code in the testThread function

WG: Memory Problem with POSIX Thread under Windows XP

2006-08-22 Thread Martin Jöhren
Hello everyone, ich have a problem under Windows XP using CYGWIN 3.1.17(6)-release (i686-pc-cygwin) with GCC 3.4.4 with the following code: void *testThread(void *data) { double kk = 1.232231212; printf("\r\n%f",kk); //pthread_exit(NULL); return(NULL); } int main (int arg