Re: pthread problem w/ GtkGLext
- From: Sebastian Wilhelmi <seppi seppi de>
- To: Ray Clouse <ray clouse boeing com>
- Cc: gtk-list gnome org, "Jones, Heiko" <heiko jones boeing com>
- Subject: Re: pthread problem w/ GtkGLext
- Date: Fri, 13 Feb 2004 08:47:51 +0100
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 seppi de | är himmlen så förunderligt blå
http://seppi.de |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]