🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

CStdStringFactory::ReleaseStringConstant

Started by
2 comments, last by jbell-bihrle 3 years, 4 months ago

Appears to be missing asReleaseExclusiveLock() in the case (it == stringCache.end()) line 73.

Maybe I'm misinterpreting how the exclusive lock works, though.

Advertisement

I think you misread the code. The function doesn't exit in case (it == stringCache.end()) on line 73. It will just set the variable ret to asERROR, and then proceed on line 82 where it calls asReleaseExclusiveLock() and only after that return from the function.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I sure did misread it. I have a wide string version of the file I made from the previous version, and when I updated it to your latest version I missed the added return value. Sorry to waste your time.

This topic is closed to new replies.

Advertisement