# assert reached when compiling a wrong script

## Recommended Posts

if you try to compile this with an empty engine in 2.7.0 wip (without registering any functions or classes):
void testFunction ()
{
Assert@ assertReached = tryToAvoidMeLeak();
}


an assert is thrown in as_compiler.cpp line 6127 and a lot of memory leaks follows. i came up on this running a script without remembering to explicitly tell the engine to register some specific plugin's functions and classes; was a mistake after all, but would be nice to tell the user is doing something wrong, not crashing his current session ;/

##### Share on other sites
Indeed. I'll have this fixed as soon as possible. Thanks. :)

##### Share on other sites
I've just committed the fix for this assert hit to the SVN (rev 38).

##### Share on other sites
Probably related,

but then I register a class, and I try to call a member function which does not exists, I also get an assert.

##### Share on other sites
Sounds like it is the same problem. Would you mind giving the new version a try to see if the problem persists?

##### Share on other sites
nice one. that fixed it ;)

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
628383
• Total Posts
2982371

• 10
• 9
• 15
• 24
• 11