🎉 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!
Strings
I just tried AngelScript and I must admit that I like it, but there is one small problem :)
Angelscript
string str = "Some String";
void Update()
{
Print(str);
}
C++
engine->RegisterGlobalFunction("void Print(string &str)",asFUNCTION(PrintRef), asCALL_CDECL);
Now everytime I execute it, i get an error which points me here:
void asCScriptString::Release()
{
if( --refCount == 0 )
delete this;
}
if I change like this:
string str = "Some String";
void Update()
{
Print(str+""); // Print(str plus "")
}
It works perfectly. Any ideas?
I've fixed this bug now. If you're interested, you can get the bug fix from the SVN (rev 268).
Thanks for letting me know about the problem.
Regards,
Andreas
Thanks for letting me know about the problem.
Regards,
Andreas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement