Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl

Exception in IAccessibleProxyImpl from CMFCPropertyGridCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpvisual-studioquestion
5 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob Pryor
    wrote on last edited by
    #1

    I am working with an MFC Dialog Application built with VS 2010 My application uses CPropertySheet with multiple CPropertyPage's and on one of them I am using a CMFCPropertyGridCtrl. The Dialog associated with that page handles PreTranslateMessage's. When running this code on a Windows 7 Touch Screen computer, I get the following exception in the PreTranslateMessage handling a WM_MOUSEDOWN for the CMFCPropertyGridCtrl which eventually calls IsDialogMessaag(): mfc100ud.dll!ATL::IAccessibleProxyImplATL::CAccessibleProxy::get_accParent(IDispatch * * ppdispParent) Line 69 C++ // Delegate to standard helper? HRESULT CWnd::get_accParent(IDispatch **ppdispParent) { ASSERT(m_pStdObject != NULL); return m_pStdObject->get_accParent(ppdispParent); } The problem is that ppdispParent points to a NULL. I have no idea what should be done to fix this??? Can anyone help explain this?

    S U 2 Replies Last reply
    0
    • B Bob Pryor

      I am working with an MFC Dialog Application built with VS 2010 My application uses CPropertySheet with multiple CPropertyPage's and on one of them I am using a CMFCPropertyGridCtrl. The Dialog associated with that page handles PreTranslateMessage's. When running this code on a Windows 7 Touch Screen computer, I get the following exception in the PreTranslateMessage handling a WM_MOUSEDOWN for the CMFCPropertyGridCtrl which eventually calls IsDialogMessaag(): mfc100ud.dll!ATL::IAccessibleProxyImplATL::CAccessibleProxy::get_accParent(IDispatch * * ppdispParent) Line 69 C++ // Delegate to standard helper? HRESULT CWnd::get_accParent(IDispatch **ppdispParent) { ASSERT(m_pStdObject != NULL); return m_pStdObject->get_accParent(ppdispParent); } The problem is that ppdispParent points to a NULL. I have no idea what should be done to fix this??? Can anyone help explain this?

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Start by posting a stack trace. Always post a stack trace when reporting a crash.

      Steve

      B 1 Reply Last reply
      0
      • S Stephen Hewitt

        Start by posting a stack trace. Always post a stack trace when reporting a crash.

        Steve

        B Offline
        B Offline
        Bob Pryor
        wrote on last edited by
        #3

        I've found the solution to this problem. It appears to be related to the HTML control issue discussed in: http://support.microsoft.com/kb/954251/de I added the following WM_DESTROY handler to my CMFCPropertyGridCtrl. void CPropGridCtrl::OnDestroy() { if ( NULL != m_pStdObject ) { m_pStdObject->Release(); m_pStdObject = NULL; } CMFCPropertyGridCtrl::OnDestroy(); } When I run with this, I don't see any crashes, but without it I get them so looks like this is the magic bullet.

        S 1 Reply Last reply
        0
        • B Bob Pryor

          I've found the solution to this problem. It appears to be related to the HTML control issue discussed in: http://support.microsoft.com/kb/954251/de I added the following WM_DESTROY handler to my CMFCPropertyGridCtrl. void CPropGridCtrl::OnDestroy() { if ( NULL != m_pStdObject ) { m_pStdObject->Release(); m_pStdObject = NULL; } CMFCPropertyGridCtrl::OnDestroy(); } When I run with this, I don't see any crashes, but without it I get them so looks like this is the magic bullet.

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          The Internet comes through with the goods again.

          Steve

          1 Reply Last reply
          0
          • B Bob Pryor

            I am working with an MFC Dialog Application built with VS 2010 My application uses CPropertySheet with multiple CPropertyPage's and on one of them I am using a CMFCPropertyGridCtrl. The Dialog associated with that page handles PreTranslateMessage's. When running this code on a Windows 7 Touch Screen computer, I get the following exception in the PreTranslateMessage handling a WM_MOUSEDOWN for the CMFCPropertyGridCtrl which eventually calls IsDialogMessaag(): mfc100ud.dll!ATL::IAccessibleProxyImplATL::CAccessibleProxy::get_accParent(IDispatch * * ppdispParent) Line 69 C++ // Delegate to standard helper? HRESULT CWnd::get_accParent(IDispatch **ppdispParent) { ASSERT(m_pStdObject != NULL); return m_pStdObject->get_accParent(ppdispParent); } The problem is that ppdispParent points to a NULL. I have no idea what should be done to fix this??? Can anyone help explain this?

            U Offline
            U Offline
            Ursus310
            wrote on last edited by
            #5

            I had the same problem using a CMFCPropertyGridCtrl in a CPropertyPage with VS2012 (without Touch Screen). Using the resouce in a CDialog is no problem, but when used in a CpropertyPage,the page calls OnDestroy as soon as it should be initialized. The Solution was, dont include the CMFCPropertyGridCtrl aus a resource control and dynamically create it after the InitDialog of the CProperyPage is called. CMFCPropertyGridCtrl * pctrlPropertyGrid = new CMFCPropertyGridCtrl(); if (pctrlPropertyGrid) { CRect rect; GetWindowRect(&rect); ScreenToClient(&rect); rect.DeflateRect(5, 10, 5, 10); pctrlPropertyGrid->Create(WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER, rect, this, IDC_MFCPROPERTYGRID1); ... }

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups