Re: [wxVTK] wxVTK and wxWidgets 2.8
Brought to you by:
malat
|
From: Mathieu M. <mat...@gm...> - 2008-01-02 15:47:36
|
On Jan 2, 2008 4:44 PM, Marco <tsu...@si...> wrote: > Sander Niemeijer ha scritto: > > > > On 2 jan 2008, at 14:35, Marco wrote: > > > >> The patch solved this two problems with wxGTK 2.8, but now, with wxGTK > >> 2.8 I have the same problem I have using wxGTK 2.6 (as I wrote on > >> another thread). Closing the window the application crashes trying to > >> delete the wxVTKRenderWindowInteractor. It seems the use of wxglcanvas > >> makes the application not to free the resources correctly on my system. > >> > >> Any idea? > > > > In the destructor of our wxVTKRenderWindowInteractor derived classes we > > use the following: > > ----- > > SetRenderWindow(NULL); > > SetInteractorStyle(NULL); > > [snip] > > > ----- > > > > However, the samples already seem to use Delete() instead of 'delete', > > so perhaps setting the renderwindow and interactorstyle to NULL before > > destruction can solve the problem? > > > It doesn't:( > > Do the wxVTK samples work on your system linking against the system > libvtk5 and libwxgtk2.6 or libwxgtk2.8? > > this is my status: > > with wxGTK 2.6 the visualization is ok but the application crashes when > I close the window; > > with wxGTK 2.8 *without* your patches I have visualization problems (the > ones I described in my previous emails) but the application does not > crash; > > with wxGTK 2.8 *with* your patches the visualization is ok but the > application crashes as with wxGTK 2.6; Run your app (in debug -g) through valgrind -v and send the output. Thanks, -- Mathieu |