Sdl window with opengl in c#

I have a c++ engine which uses sdl.
Now im wanting to make some sort of c# mesh viewer jst to fiddle around
with.

Now when i open an opengl window from my engine dll (native c++) using SDL,
through c# it opens the window, but immidiately closes. There is no errors
or anything.

so i’ve nailed down the problem to be when i call SDL_SetVideoMode with the
flag SDL_OPENGL.
if i simply set the flag to be SDL_SWSURFACE it works fine, the window stays
open as expected, can i still use this window for opengl? and will it be
hardware accelerated? or is there a known problem or work around?

has any one managed to get a c++ dll which uses sdl and opengl working in
c#?

Thanks,
Fabian_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it’s FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/