Re: [osg-users] Crash in osgViewerWX

2008-06-16 Thread Paul Melis
Paul Melis wrote: Paul Melis wrote: I don't think there's an easy way out for this one, as wxWidgets uses a different memory management strategy than OSG. Even removing the GraphicsWindowWX as child of the main frame just before exit forces destruction. IMHO GraphicsWindowWX shouldn't inherit

Re: [osg-users] Crash in osgViewerWX

2008-06-13 Thread Paul Melis
Hi, Assuming I understand you correctly you added something like this to class GraphicsWindowWX: void setViewer(osgViewer::Viewer *v) { _viewer = v; } void setView() { _viewer-getCamera()-setViewMatrixAsLookAt(

Re: [osg-users] Crash in osgViewerWX

2008-06-13 Thread Paul Melis
Paul Melis wrote: I don't think there's an easy way out for this one, as wxWidgets uses a different memory management strategy than OSG. Even removing the GraphicsWindowWX as child of the main frame just before exit forces destruction. IMHO GraphicsWindowWX shouldn't inherit from both a

[osg-users] Crash in osgViewerWX

2008-06-12 Thread Jose Marti
hi, i've used the osgViewerWX example for my program and I'd like to change the camera view inside the GraphicsWindowsWX class. I've done this: - I pass the viewer to GraphicsWindowsWX in function wxOsgApp::OnInit(). frame-SetViewer(viewer.get()); gw-setViewer(viewer.get()); And I