[vtkusers] Still a Bug in vtkWin32OpenGLRenderWindow ??

John Platt jcplatt at lineone.net
Tue Mar 2 04:08:03 EST 2004


Hi,

I had this problem with version 4.2. Have you tried moving the cleanup
from the view destructor to OnDestroy()?

John.

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of de Boer Ingo
Sent: 02 March 2004 08:00
To: Mathieu Malaterre
Cc: vtkusers
Subject: RE: [vtkusers] Still a Bug in vtkWin32OpenGLRenderWindow ??

Hi,

> > There is a need for change to correct the Window and Parent ID.
> Why did you change window/parent Id ?
Well, it should be the correct way...shouldn't it ?

this->renWin->SetParentId(::GetParent(m_hWnd));
this->renWin->SetWindowId(m_hWnd);

What else should be the parent and window ID?
I mean... When you set the Window ID to ::GetParent(m_hWnd),
who is the parent ?
Anyways one has to set the SetWindowId.. this is a must...
Only setting the SetParentId doesn't work... But I don't know why...
I have taken a look at the source they have both the comment:

// Set the window id to a pre-existing window.
void vtkWin32OpenGLRenderWindow::SetWindowId(HWND arg)
// Set the window id to a pre-existing window.
void vtkWin32OpenGLRenderWindow::SetParentId(HWND arg)

Or maybe I don't understand the deeper sense in that ;)

> Did it worked before ?
Yes, of course... It worked with 4.2.5 release.
And it even doesn't matter if I change the parent or window
ID. In both cases, the application crashes...

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
 
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list