From: Lloyd D. <ll...@ga...> - 2003-06-25 11:54:31
|
Christian I spot here 2 problems: 1st: GL.gluTessCallback(tess, GL.GLU_TESS_BEGIN, new GLUtessBeginProc(OnTessBegin)); the delegate might be disposed, and you could have a NullSomethingException at a quite unexcpected time. use either a GCHandle or, uh ... or something else.... 2nd I think there is a runtime mess with calling convention and an impossibility in C# to make things work as expected, in fact I get it up a while ago, sorry.... (I think OpenGL is expecting _cdecl function, whereas delegate are exported as _stdcall, no way to change that except by hacking the IL, ask Ridge, he might help .....) |