Sign in to follow this  
kunitoki

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 this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this