Re: strange behavior with threads...

2009-07-29 Thread jean-luc malet
On Fri, Jul 24, 2009 at 8:43 PM, benadam777 wrote: > > > > jean-luc malet wrote: >> >> I have a X server connection issue >> >> freeglut (./tests/GENERATED/GlutWindowTest): Unable to create direct >> context rendering for window ' ' >> This may hurt performance. >> XIO:  fatal IO error 11 (Resource

Re: strange behavior with threads...

2009-07-24 Thread benadam777
ultiple video cards or video cards that don't support OpenGL. -- View this message in context: http://www.nabble.com/strange-behavior-with-threads...-tp24626168p24649869.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/

Re: strange behavior with threads...

2009-07-24 Thread jean-luc malet
On Thu, Jul 23, 2009 at 4:11 PM, Corinna Vinschen wrote: > On Jul 23 15:50, jean-luc malet wrote: >> Hi! >> I've the following code : >> void _Window::Start(void* arg) >> { >>         ThreadArgs args; >>         args.TheWindow=this; >>         args.args=arg; >>         int err = pthread_create(&mai

Re: strange behavior with threads...

2009-07-23 Thread Corinna Vinschen
On Jul 23 15:50, jean-luc malet wrote: > Hi! > I've the following code : > void _Window::Start(void* arg) > { > ThreadArgs args; > args.TheWindow=this; > args.args=arg; > int err = pthread_create(&main_thread,NULL,_Start, (void*)&args); > if (err) > {

Re: strange behavior with threads...

2009-07-23 Thread Dave Korn
jean-luc malet wrote: > Hi! > I've the following code : > void _Window::Start(void* arg) > { > ThreadArgs args; This allocates a ThreadArgs struct on the stack. > int err = pthread_create(&main_thread,NULL,_Start, (void*)&args); This passes a pointer to the ThreadArgs struct

strange behavior with threads...

2009-07-23 Thread jean-luc malet
Hi! I've the following code : void _Window::Start(void* arg) { ThreadArgs args; args.TheWindow=this; args.args=arg; int err = pthread_create(&main_thread,NULL,_Start, (void*)&args); if (err) { throw new Exception(err, "window thread c