(AS 2.10.0 rev 199) asCScriptEngine::RegisterGlobalProperty:
...
asCBuilder bld(this, 0);
if( (r = bld.VerifyProperty(0, declaration, name, type)) < 0 )
later in a nested call to asCBuilder::GetGlobalProperty:
...
for( n = 0; n < props->GetLength(); ++n )
if( (*props)[n] && (*props)[n]->name == prop )
{
// Find the config group for the global property
asCConfigGroup *group = engine->FindConfigGroupForGlobalVar((*props)[n]->index);
if( !group || group->HasModuleAccess(module->name.AddressOf()) )
return (*props)[n];
}
and we have access violation since module == 0 due to "asCBuilder bld(this, 0)" therefore module->name is undefined. Is this a bug?