[vtkusers] MakeCurrent Problems with .NET

Drew Skillman drew at oregon3d.com
Thu May 27 15:41:33 EDT 2004


We're having problems with a multi-threaded .NET program using vtk 4.2.  
Initialization of the render windows works okay, but calls from any other thread produce the following error in the VTK output window:

ERROR: In C:\martink\vtk42\VTK\Rendering\vtkWin32OpenGLRenderWinow
vtkWin32OpenGLRenderWindow(0x0FC71B18): wglMakeCurrent failed in MakeCurrent()

Requested Resource is in use

Line 228 

Direct calls to MakeCurrent() fail as well.  Initial single threaded prototype of code worked fine with Windows MFC.

Are there any explicit methods which must be called on render windows other than MakeCurrent() when calling from different threads?

Thanks in advance!
Drew



More information about the vtkusers mailing list