NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


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 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page