I’m trying to get OpenGL working in a mutli-threaded environment, but have a problem with SwapBuffers crashing in my rendering thread.

Everything works fine if I call SwapBuffers it crashes with an exception violation.

This is under WindowsXP and hDC is correct.

Anyone got any suggestions?

Could you be more specific about what and how you are using OpenGL + Threads ?

More information would be useful.
Since I have to shoot in the dark I would check that the DC (and HWND) are created (and destroyed) in the rendering thread.
If this is already the case, it might be problem in the driver.