void LineCallback(asIScriptContext* ctx)
{
unsigned int ssize = ctx->GetCallstackSize();
for(unsigned int i = 0; i < ssize; ++i)
{
ctx->GetLineNumber(i, 0, 0); // crash i = 1, ssize = 4
}
}
ctx->SetLineCallback(asFUNCTION(LineCallback), 0, asCALL_CDECL);
script is
class Child
{
};
class Object
{
Child c;
};
void main()
{
Object f;
}
only occurs if there are nested constructors to step in.
crash stack:
-> AngelScriptTest.exe!asCArray<unsigned long>::AddressOf() Line 96 + 0x3 bytes C++
-> AngelScriptTest.exe!asCContext::GetLineNumber(unsigned int stackLevel=1, int * column=0x00000000, const char * * sectionName=0x00000000) Line 1380 + 0xe bytes C++
Thanks.