locked
MFC application throwing unhandled exception on slideshowsettings->run() RRS feed

  • Question

  • Hi Everyone,

    I am getting exception when i call the method m_pNISettings->Run() in the below code. i have search on the internet for this issue but didn't get any luck. Please let me know what could be the solution to this issues.

    Here is my code:

    m_pNIPresentations = new Presentations(m_pIApp->GetPresentations());
           lpDispatch = m_pNIPresentations->Open(lpFilename, FALSE, FALSE, bWithWindow)) ;

    m_pNIPresentation = new _Presentation(lpDispatch);

    m_pNISlides = new Slides(m_pNIPresentation->GetSlides());
    m_pNISettings = new SlideShowSettings(m_pNIPresentation->GetSlideShowSettings());
    m_pNISettings->SetShowType(ppShowTypeWindow);
    m_pNISettings->SetAdvanceMode(ppSlideShowUseSlideTimings);
    m_pNISettings->InvokeHelper(0x7df, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, 
    byParams, PP_FALSE);

    lpDispatch = m_pNISettings->Run()
    m_pNIWindow = new SlideShowWindow(lpDispatch);
    ASSERT(m_pNIWindow->m_lpDispatch);

    I am getting following exception:

    Unhandled exception at 0x755ad36f (KernelBase.dll) in TmaxPresentation.exe: Microsoft C++ exception: COleDispatchException at memory location 0x0012f664..

    Following is the stack trace:

    KernelBase.dll!_RaiseException@16()

    msvcr90d.dll!_CxxThrowException(void * pExceptionObject=0x0012f664, const _s__ThrowInfo * pThrowInfo=0x54c0e970)  Line 161 C++
    mfc90d.dll!COleDispatchDriver::InvokeHelperV(long dwDispID=0x00000029, unsigned short wFlags=0x0001, unsigned short vtRet=0x0002, void * pvRet=0x0012f7f8, const unsigned char * pbParamInfo=0x00506dc8, char * argList=0x0012f7ac)  Line 465 C++
    mfc90d.dll!COleControlSite::InvokeHelperV(long dwDispID=0x00000029, unsigned short wFlags=0x0001, unsigned short vtRet=0x0002, void * pvRet=0x0012f7f8, const unsigned char * pbParamInfo=0x00506dc8, char * argList=0x0012f79c)  Line 1093 C++
    > mfc90d.dll!CWnd::InvokeHelper(long dwDispID=0x00000029, unsigned short wFlags=0x0001, unsigned short vtRet=0x0002, void * pvRet=0x0012f7f8, const unsigned char * pbParamInfo=0x00506dc8, ...)  Line 382 C++
    Presentation.exe!CTMPower::LoadFile(const char * lpszFilename=0x0039df90, long lSlide=0x00000100, short bUseId=0x0001, short sView=0xffff)  Line 528 C++
    Presentation.exe!CMainView::ProcessEvent(short sEvent=0x0007, unsigned long dwParam1=0x0012fa90, unsigned long dwParam2=0x00000000)  Line 9341 C++

    Regards

    Jasim Munshi




    Friday, May 25, 2012 11:25 AM

Answers

  • Sorry, it is a wrong forum for your question.

    Lev Nachmanson

    Friday, May 25, 2012 10:11 PM