Jump to content
  • Advertisement
Sign in to follow this  
xivVerge

Multithreading issue

This topic is 3620 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've encountered a problem in asCMemoryMgr while using AngleScript in different threads. In one thread I run asCScriptEngine::ExecuteString() while an other thread calls asCScriptEngine::GetTypeIDByDecl(). The latter thread sometimes causes a segmentation fault in asCMemoryMgr::FreeScriptNode(), because asCScriptEngine::ExecuteString() calls asCMemoryMgr::FreeUnusedMemory(). This leads to simultanous access to the scriptNodePool member. I added a critical section in every asCMemoryMgr method that accesses scriptNodePool. That seems to fix the problem. If you'd like to have the changes i can mail them to you. Regards, Tim

Share this post


Link to post
Share on other sites
Advertisement
Yes, please send the changes to me.

Multithreading is always difficult to test, so any help in this area is always welcome.

Regards,
Andreas

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!