I think I may have mislead the problem, here is variable and a call to a function:
nNewStatus = 0;
m_pDoc->SetChargeStatus(nNewStatus);
---------------------------------------------------------
here is the function:
void CACMSDoc::SetChargeStatus(int nNewStatus)
{
m_nNewStatus = nNewStatus;
}
in the function, m_nNewStatus throws an exception.
thanks for the help,
m