Is openSG thread safe with MFC application?

When I started openSG thread function with my MFC application, the button which pop up dialogs

doesnt working properly anymore.

It seems the application goes into a deadlock.

 

After view the source code of Thread::runFunction I found that the opensg thread uses

CreateThread of Win32 API.

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?

Reply via email to