Hi All
I've got a problem with the Latest version of angelscript and borlands BCB 6.00 - I got it to compile (there were a few compile issues - but very easily fixed). It all worked fine - Building angelscript code exectuing e.t.c. - The problem happens when using the STDSTRING extension,
using strings in script works fine and it compiles and runs - the problem is that my EXE hangs when exiting back to windows - I've tried to track down the issue - but no joy yet - anybody got any similar issues?
I've tried the following scenarios:
RegisterScriptArray(Angel,true);
RegisterStdString(Angel);
Exe hangs when exiting back to window - even if my script code has no string usage
RegisterScriptArray(Angel,true);
//RegisterStdString(Angel);
Exe is fine and exits back to windows properly
//RegisterScriptArray(Angel,true);
RegisterStdString(Angel);
Exe hangs when exiting back to window - even if my script code has no string usage
I'm thinking it's some kind of STL Issue - but who knows?
here's the call stack from the hang
********************************
005599F2 _STL::__node_alloc<1, 0>::_M_deallocate
00532B94 _STL::__node_alloc<1, 0>::_M_deallocate
004ABC13 TForm2::~TForm2
004AD53B TForm2::~TForm2
00534D54 _STL::__node_alloc<1, 0>::_M_deallocate
0053409C _STL::__node_alloc<1, 0>::_M_deallocate
00533FFF _STL::__node_alloc<1, 0>::_M_deallocate
005196C3 __init_exit_proc
00519712 __cleanup
005189D4 _exit
005198E8 __startup
*******************************
many thanks
Shabby
p.s. anybody else trying to uses BCB 6.00 you have to change any of the macros that have a ; after them, bcb wont compile class with ; and no definitions.
from:
protected:
DECLARECRITICALSECTION(cs);
to:
protected:
DECLARECRITICALSECTION(cs)
and some of the object pointers have to be explicitly cast before the compile will swallow them (forget which ones - easy fix tho).