[vtkusers] Solution: Bug in SetRenderWindow(NULL)
de Boer Ingo
I.deBoer at polytec.de
Wed Oct 22 03:48:12 EDT 2003
Hi,
I guess I found the solution for the
bug/problem in SetRenderWindow(NULL).
The lines in vtkWin32OpenGLRenderWindow should be:
vtkWin32OpenGLRenderWindow::~vtkWin32OpenGLRenderWindow()
{
...
if (this->WindowId)
{
this->Clean();
ReleaseDC(this->WindowId, this->DeviceContext);
// can't set WindowId=NULL, needed for DestroyWindow
this->DeviceContext = NULL;
// clear the extra data before calling destroy
vtkSetWindowLong(this->WindowId,4,(LONG)0);
if (this->OwnWindow)
DestroyWindow(this->WindowId);
}
...
}
Could anybody of the developers check on that ?
> the memory is free, but you get the error
> "wglMakeCurrent failed in MakeCurrent()"
> in vtkWin32OpenGLRenderWindow::MakeCurrent()
That was my own bug.. ;)
greets
Ingo
---
Dr.-Ing. Ingo H. de Boer
Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax : ++49 7243 604 255
More information about the vtkusers
mailing list