Sign in to follow this  
FDsagizi

crash after get property of null class in function

Recommended Posts

Hello![img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]

[CODE]
class BugClass
{
int ID;
}

void CallBug( BugClass @bc )
{
int id = bc.ID;

// He can show exection to get <null>
// but he crash programm: ac_context.cpp line 2521
//
// case asBC_RDR4:
// *(asDWORD*)(l_fp - asBC_SWORDARG0(l_bc)) = **(asDWORD**)&regs.valueRegister;
// l_bc++;
// break;
}

void startGame()
{
CallBug( null );
}
[/CODE]

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