<DIV>hi ,all</DIV>
<DIV>&nbsp;&nbsp; In my program, i use the method Render() of vtkRenderWindow in my main() fuction. But I also want to use Render() in a thread which create by HANDLE hMainThread=CreateThread(NULL,0,MainThreadProc,(LPVOID)main,CREATE_SUSPENDED,&amp;ThreadID). when&nbsp; it run, the error will be take place. It is that the request resource is using.(vtkErrorMacro("wglMakeCurrent failed in MakeCurrent(), error: " <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; (LPCTSTR)lpMsgBuf);)</DIV>
<DIV>I mean that in my main fuction, firstly, i create a background thread to read some bmps from disk and create the actor, and than use Render() to render it in my vtkRenderWindow which&nbsp;is used Render()&nbsp;in main at last. At that time, the error will be take place in vtkWin32OpenGLRenderWindow::MakeCurrent() line 244. How to settle this problem? Thanks!</DIV>