SDL + OpenGL + Win32 is NOT thread-safe :-(

Hello,

I actually develop a framework using SDL and OpenGL.
I had a crash in the NVidia (I have a GeForce DDR) driver, which was an
access violation (trying to acces 0x80 address :-(( )
I was using
SDL_AddTimer(30,updateScreen,NULL);
and updateScreen is the function where the GL instructions stands.
In the main thread was the message loop.
After hours I tried to directly call updateScreen after each message and
then it works.
So this is obviously a bug with SDL and threadon win2k with GeForce.
As anyone any idea howto fix it ?

Thanks

Stephane

Stephane Magnenat wrote:

Hello,

I actually develop a framework using SDL and OpenGL.

(unfortunately this won’t help your problem but…)
Is your framework open source? I would be interested in seeing it…

    -- David Snopek

Hello,

We plan to release the framework as soon as it begin useable; but now it’s
is very alpha and there isn’t too much to see.
We have basic 2D over OpenGL operation but it’s all for now.
It will be GPL or LPGL when it will be finished.
I will create a sourceforge project (which will be named OSEA) when we’ll
have enough to show.

Mail me if you wanna know more

Stephane> Stephane Magnenat wrote:

Hello,

I actually develop a framework using SDL and OpenGL.

(unfortunately this won’t help your problem but…)
Is your framework open source? I would be interested in seeing it…

    -- David Snopek