This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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); 
>     //pthread_exit(NULL); 
>     return(NULL); 
> } 
> 
> int main (int argc, char *argv[]) 
> { 
>     pthread_t t; 
> 
>     while(1) 
>     { 
>         
>         pthread_create(&t,NULL,testThread,NULL); 
>         pthread_join(t,NULL); 
>         
>         
>     } 
>         return 1; 
> } 
> 
> 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. [...]

Thanks for the report.  This problem has been fixed now in CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]