Hi Brad, Sorry for misunderstanding. I thought you want simple dialog based application.
I hope someone helps you. Best Regards. 2009/1/14 Brad Huber <br...@procerusuav.com> > Ümit, > > > > The example you send me is actually a Dialog based MFC app. Not an SDI. > > > > Still looking for an SDI example if anyone has one. I do appreciate any > MFC examples (MDI, SDI, or Dialog) as well. > > > > Thanks Again > > -Brad > > > > *From:* osg-users-boun...@lists.openscenegraph.org [mailto: > osg-users-boun...@lists.openscenegraph.org] *On Behalf Of *Ümit Uzun > *Sent:* Tuesday, January 13, 2009 6:59 PM > *To:* OpenSceneGraph Users > *Subject:* Re: [osg-users] MFC SDI Example > > > > Hi Brad, > > I want to show you how to creating MFC SDI example, I developed simple SDI > MFC example. It would be really help you. > > And if you love this example we can push it in to OSG examples by the > Robert's courtesy. > > Best Regards. > > 2009/1/13 Brad Huber <br...@procerusuav.com> > > I have noticed the following strange behaviors with MFC: > > 1. Using the MDI example included in the osg repository it general works > but does report lots of (inaccurate?) memory leaks) > 2. I created a simple SDI app using the MDI example as a reference. If I > load an .osg file on startup the program tends to crash on exit. If I load > the .osg sometime after the app is fully up it tends to exit about the same > as the MDI example above. > 3. I created a dialog based app and it seems to work about as well as the > MDI example above. > > Thoughts? > > I'm not sure where to start to get the SDI app fixed and to get MFC in > general working robustly with OSG. > > I would still love an example SDI app if anyone has one anywhere. > > Thanks > > -Brad > > -----Original Message----- > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brad > Huber > > Sent: Friday, January 09, 2009 1:54 PM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] MFC SDI Example > > FYI, > > Setting > > mViewer->setThreadingModel(osgViewer::Viewer::ThreadingModel::SingleThreaded > ) doesn't help. Not sure if that is telling or not. > > -Brad > > -----Original Message----- > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brad > Huber > Sent: Friday, January 09, 2009 1:47 PM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] MFC SDI Example > > The OSG MFC example does not assert/unhandled exception for me. It does > have the memory leaks that people have talked about. > > I'm not quite sure how to use the setUpViewerAsEmbeddedInWindow because the > mfc example passes an dc to the camera whereas > setUpViewerAsEmbeddedInWindow > passes in a different dc... > > -Brad > > -----Original Message----- > From: osg-users-boun...@lists.openscenegraph.org > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Simon > Hammett > Sent: Friday, January 09, 2009 2:21 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] MFC SDI Example > > The MDI mfc version has the same problems last time I tried it. > > Try calling setUpViewerAsEmbeddedInWindow on your viewer. > If you problems go away you're hitting threading issues. > > 2009/1/8 Brad Huber <br...@procerusuav.com>: > > Umit, > > > > > > > > Thanks. The SDI application that I have created so far is very simple > and > > does nothing more than what the MDI example app does. As far as I can > tell > > there is no difference in the way the example creates/uses/deletes the > cOSG > > object and the way I am doing it, yet I get assertions or exceptions on > > exit. > > > > > > > > Anyone else? > > > > > > > > Thanks > > > > -Brad > > > > > > > > From: osg-users-boun...@lists.openscenegraph.org > > [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ümit > Uzun > > Sent: Thursday, January 08, 2009 2:08 PM > > To: OpenSceneGraph Users > > Subject: Re: [osg-users] MFC SDI Example > > > > > > > > Hi Brad, > > > > I created SDI MFC project in OSG. But this was commercial and complicated > to > > understand you very well. Because it was SDI dll to call from anywhere > you > > need and you then delete it if you don't need to much. > > > > I haven't understood the assertion faults very well but you should only > > understand the cOSG class creation style. You will use it in your SDI > > project and be careful to delete everything while you are destroying your > > dialog. And be careful about the threads sleeping time to be activeted. > > Because sometimes sleeping times can't be enough to be threads get > > activated, so it may create assertion fault as you say. > > > > Hope this helps. Regards. > > > > 2009/1/8 Brad Huber <br...@procerusuav.com> > > > > Hello all, > > > > > > > > Does anyone know where one might find an example project of using > > MFC/OSG/SDI? > > > > > > > > If anyone has one sitting around on their machine I would be interested > if > > you can email it to me as well. > > > > > > > > I've already tried adapting the MFC MDI example to an SDI project but I > seem > > to be hitting some snags where the app won't exit properly. > > > > > > > > It either asserts the window as being still valid when it shouldn't be > > [CWnd::WalkPreTranslateTree's ASSERT(hWndStop == NULL || > > ::IsWindow(hWndStop))] or it get's "The activation context being > deactivated > > is not the most recently activated one" exception within osg53-osgGAd.dll > > after I've deleted all osg items. > > > > > > > > I'm a little bit baffled why I'm getting this. > > > > > > > > Anyway does anyone have any SDI examples? > > > > > > > > Thanks > > > > -Brad > > > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > -- > > Ümit Uzun > > > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > -- > The truth is out there. Usually in header files. > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > -- > Ümit Uzun > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Ümit Uzun
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org