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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Asserion Failed:file wincore.cpp, Line 1047

Asserion Failed:file wincore.cpp, Line 1047

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebuggingtutorial
3 Posts 2 Posters 0 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.
  • C Offline
    C Offline
    CHYGO
    wrote on last edited by
    #1

    i wrote the code in EVC++ 4.0, MFC,when i debug the code, the error occur at: CDisplayData* pDisplayData=(CDisplayData*)pMainFrame->m_wndSplitter.GetPane(1,0); i don't know how to solve it, please help :(( void CReadWriteData::DisplayAxisInfo() { ... CMainFrame* pMainFrame=((CMainFrame*)AfxGetApp()->m_pMainWnd); CDisplayData* pDisplayData=(CDisplayData*)pMainFrame->m_wndSplitter.GetPane(1,0); pDisplayData->m_xAxisCor.Format(_T("%f"),fValue); pDisplayData->UpdateData(FALSE); }

    i 've tried ,then i have no regret

    C 1 Reply Last reply
    0
    • C CHYGO

      i wrote the code in EVC++ 4.0, MFC,when i debug the code, the error occur at: CDisplayData* pDisplayData=(CDisplayData*)pMainFrame->m_wndSplitter.GetPane(1,0); i don't know how to solve it, please help :(( void CReadWriteData::DisplayAxisInfo() { ... CMainFrame* pMainFrame=((CMainFrame*)AfxGetApp()->m_pMainWnd); CDisplayData* pDisplayData=(CDisplayData*)pMainFrame->m_wndSplitter.GetPane(1,0); pDisplayData->m_xAxisCor.Format(_T("%f"),fValue); pDisplayData->UpdateData(FALSE); }

      i 've tried ,then i have no regret

      C Offline
      C Offline
      CHYGO
      wrote on last edited by
      #2

      i entered the GetPane(), CWnd* CSplitterWnd::GetPane(int row, int col) const { ASSERT_VALID(this); ... } the app stopped at here

      i 've tried ,then i have no regret

      N 1 Reply Last reply
      0
      • C CHYGO

        i entered the GetPane(), CWnd* CSplitterWnd::GetPane(int row, int col) const { ASSERT_VALID(this); ... } the app stopped at here

        i 've tried ,then i have no regret

        N Offline
        N Offline
        Niklas L
        wrote on last edited by
        #3

        Verify that your pMainFrame != nullptr and that your splitter wnd, this in your last post != nullptr. You can also step into the ASSERT_VALID macro for more info.

        home

        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