and inside functions... um, i want to know why the program crash and the reason for this...,

here..,

PART 1

SOMESTRUCT* object; // this is declared outside a function,

function()
{
object.ManipulateMemberVariables(); // this will crash the program
}

PART 2

function()
{
SOMESTRUCT* object;
object.ManipulateMemberVariable(); // this will not crash..,
}

thanks!!