[vtkusers] vtkWin32OpenGLRenderWindow (0x0BE1A388): wglMakeCurrent failed

Kevin Tiow Wee Tan twtan at cheerful.com
Tue Feb 25 13:01:00 EST 2003


Hello,
I used the Java wrapped vtk code since last year and I am using the
genuine vtkRenderWindow (NOT vtkPanel type of renderWindow).

After my initial loaded vtkRenderWindow screen (black & blank) using
Render method, I used a some OpenFileDialogBox under Java to load some
vtkActor into a vtkRenderer and then rendered into the initial loaded
(rendered) vtkRenderWindow.  Then I asked for vtkRenderer to
ResetCamera, so that all vtkActors will be repositioned and display on
the window.

I have no problem for the above process since beginning of version 4
UNTIL about a week ago...I downloaded a copy of vtkNightly version and I
have the following problem...  I tried the latest yesterday or version
4.2, the same problem occurs.

When I asked for resetCamera method, a vtkOutputWindow appear displayed
message such as:
ERROR: In D:\vtkNightly\Rendering\vtkWin32OpenGLRender...
vtkWin32OpenGLRenderWindow (0x0BE1A388): wglMakeCurrent failed in M...

As I can't resize the output window, so I can't what's is the end of
each line...

My vtkActors are still loaded properly in the vtkRenderWindow, but this
vtkOutputWindow ERROR keep poping up...

There is NO error if I commented out the resetCamera method, but I won't
get all my vtkActors appear within the Window

Is this error vtkOutputWindow important?  or any idea to disable it? Any
advice would be much appreciated...


--
Thanks
Kevin
**********************************
Manchester Material Science Centre
University of Manchester
----------------------------------
Centre for Virtual Environments
University of Salford
**********************************



More information about the vtkusers mailing list