[Solved]Create rigidbody in background thread failed.Crashed at the first operater new xxShape with allocChunk read error.

[Solved]Create rigidbody in background thread failed.Crashed at the first operater new xxShape with allocChunk read error.

Hi,first thx the havok team with this wonderful engine.
Icreate single thread hkWorld,and now want to load rigidbodies at background thread, but just when I new first xxShape,it crashed at the allocChunk with read 0x0000001c.So strange,isn't havok thread safe? Or it's beacause something I forget to do?
Thanks very much,waiting all of u. :)

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Is it because of the diffrent CRT using?

Make sure to call hkBaseSystem::initThread at the start of your worker thread.

Hi,havokchris! Thanks very much for your help. It's very useful,I try it and successed.
Thanks again~!

Leave a Comment

Please sign in to add a comment. Not a member? Join today