← Back to team overview

yade-users team mailing list archive

Re: drawing loop

 

On Wed, 2006-06-28 at 01:30 +0200, Janek Kozicki wrote:
> very good :)
> 
> I have written a small test program, please check if it works. If yes,
> then I will put this solution inside yade.
> 
> svn checkout svn://svn.berlios.de/yade/snippets/trunk/Thread-multi
> cd Thread-multi
> qmake
> make
> cd bin
> ./thread
> 
> 
> 
> The old drawing loop is here, and should _not_ work on your computer (but
> you can try, so we will be sure):
> 
> 
> svn checkout svn://svn.berlios.de/yade/snippets/trunk/Thread-queue
> cd Thread-queue
> qmake
> make CXXFLAGS='-pthread -lpthread'
> cd bin
> ./thread
> 
> 
> It should compile without problems, but crash just like "new simulation"
> in yade when executed.
> 
> 

When I launch new thread:

:~/Thread-multi/bin$ ./thread
freeglut  ERROR:  Function <glutSolidCube> called without first calling
'glutInit'.


:~/Thread-queue/bin$ ./thread
beginning Of thread number : 0
beginning Of thread number : 1
Segmentation fault

I think you are right, but you forgot to initiate glut like you
mentioned before.

Yonggeng

_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
http://lists.berlios.de/mailman/listinfo/yade-users



Follow ups

References