Hello,
Not sure if this is the right place to report possible bugs ? Anyways:
I'm using a wxVTKRenderWindowInteractor as a wxAUIManager pane. When trying
to undock the pane I get crash with
...
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 54 error_code 3 request_code 12 minor_code 0)
...
This happens on both GTK2 and MSW versions.
After a bit of debugging I found out that the crash happens on this line in
wxVTKRenderWindowInteractor::UpdateSize(int x, int y):
RenderWindow->SetSize(x, y);
and only when x = y = 20 !?
Seems that when the undock/drag starts the dragged wxWindow/wxAUI pane is
sets to some minimum size that happens to be 20 and is not taken nicely by
RenderWindow->SetSize ?!
I was able solve this problem by following temporary hack:
if (x!=20 && y!=20) RenderWindow->SetSize(x, y);
I'm using wxGTK 2.8.7, wxVTK version is (wxVTKRWI.cxx)
Date: $Date: 2008/04/13 22:06:52 $
Version: $Revision: 1.35 $
on Gentoo Linux 2.6-22/gcc4.1.2 environment.
cheers
-j
|