how to close document handle
-
hi friends, i have have a MDI Application. when i close a document using onclosedocument. my document handle remains active though the members used in document are set to null. so i cannot check this condition if(doc) as it returns true. whereas in the if block it cannot access the members so app crashes eg.
if(doc) //handle =FAEX000
{
doc->getprivatevariable_or_functions(); // the application crashes here
}thanking in anticipation REgards Samir
-
hi friends, i have have a MDI Application. when i close a document using onclosedocument. my document handle remains active though the members used in document are set to null. so i cannot check this condition if(doc) as it returns true. whereas in the if block it cannot access the members so app crashes eg.
if(doc) //handle =FAEX000
{
doc->getprivatevariable_or_functions(); // the application crashes here
}thanking in anticipation REgards Samir