Fixed racing condition between main program and renderer.
Fixed racing condition between main program and renderer.

BackupTheBerlios/gavrog,BackupTheBerlios/gavrog,BackupTheBerlios/gavrog,BackupTheBerlios/gavrog,BackupTheBerlios/gavrog