Hi, On Sat, 2006-05-27 at 15:32 +0200, Marcus Lindblom wrote: > Yongjin Kim skrev: > > Is openSG thread safe with MFC application? > > > > By MFC recommendation it is more desirable to use AfxBeginThread style > > thread, but actually with threads created by normal Win32 CreateThread > > whole program works well. > > > > I really want to use this normal thread if I can. but as you know(?) in > > these threads, no FieldContainer objects can be created, i.e., when call > > NodePtr node = Node::create(), the program crashes. > > > > Any help or suggestion? > > > > > osg::Thread::getCurrentThread()->initialize(0); // or whatever aspect > you want that thread to use
hope this one is not public ;-), the 'official' method is : OSG::ExternalThread *_pExternThread = NULL; _pExternThread = OSG::ExternalThread::get(NULL); // or a different name _pExternThread->initialize(0); // or whatever aspect ;-) regards, gerrit ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
