Re: pthread problem w/ GtkGLext

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ray,

> I'm porting a pthreaded OpenGL application to GTK+ and have run into 
> problems getting the threading to work.
> 
> I've written a simplified example of what I'm trying to do threadwise 
> and it's core dumping on me.  The program is supposed to let you open 
> multiple windows in separate threads where a timer updates a label.  It 
> opens the first window but then core dumps.
> 
> Any and all help appreciated! :)

Try this:

--- main.c      2004-02-13 08:46:35.000000000 +0100
+++ main.c.orig 2004-02-13 08:46:03.000000000 +0100
@@ -56,7 +56,7 @@
 printf("begin counter_callback\n");
   timeoutargs *t1 = (timeoutargs *) data;
 printf("1\n");
-  char s1[1000];
+  char *s1;
    
   t1->counter++;
 printf("2\n");


And BTW: valgrind is your friend. ;-)

Ciao,
Sebastian
-- 
Sebastian Wilhelmi                 |            här ovanför alla molnen
mailto:seppi@xxxxxxxx              |     är himmlen så förunderligt blå
http://seppi.de                    |

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux