NI Home > Community > NI Discussion Forums

NI TestStand

Showing results for 
Search instead for 
Do you mean 
Reply
Member
rzabala_ues
Posts: 1
0 Kudos

mApplicationMgr pointer is NULL (MFC)

Hello,

 

After being looking for a solution around the web I could't find any solution for my problem, which I will try to explain:

 

After the TestStand User Interface is started, I call a function member of CTestExecDlg which opens a sequence file and checks if the file has been openned ok. The problem cames always after mApplicationMgr executes the OpenSequenceFile method, actually any method or property called fails.

 

After debugging the code, I can see that the mApplicationMgr pointer value is 0x00000000, and during the InitDialog execution the pointer has a valid value.

 

The code of the function is the next one:

 

BOOL CTestExecDlg::SeqFileExecution(CString seqFile)
{
    TS::SequenceFilePtr seqFilePtr;
    //BSTR seqfilename = seqFile.AllocSysString();
    
    TS_MFC_TRY
    {
    seqFilePtr = mApplicationMgr->OpenSequenceFile("DummyDll.seq");
    }
	TS_MFC_CATCH_AND_DISPLAY
    
    if(!seqFilePtr)
    {
        return FALSE; //Error while openning the file
    } else
    {
        return TRUE;
    }
}

 

 

Any help please?

 

Thanks in advance,

Roberto