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. Debug assertion failed in occcont.cpp file

Debug assertion failed in occcont.cpp file

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdebuggingquestion
3 Posts 3 Posters 4 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.
  • M Offline
    M Offline
    Member_14642523
    wrote on last edited by
    #1

    Hello Folks, Can anyone please help me to solve this runtime issue I am facing while running the application in debug mode? the error is as follows: Debug Assertion Failed! Program: C:\WINDOWS\SYSTEM32\mfc140ud.dll File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp Line: 925 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. The application is breaking at**

    ASSERT(IsWindow(pTemp->m_hWnd));

    **line in occcont.cpp file. Thanks in advance.

    V L 2 Replies Last reply
    0
    • M Member_14642523

      Hello Folks, Can anyone please help me to solve this runtime issue I am facing while running the application in debug mode? the error is as follows: Debug Assertion Failed! Program: C:\WINDOWS\SYSTEM32\mfc140ud.dll File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp Line: 925 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. The application is breaking at**

      ASSERT(IsWindow(pTemp->m_hWnd));

      **line in occcont.cpp file. Thanks in advance.

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      It means that window handle (pTemp->m_hWnd) is NULL. So this window does not exist. Look at the call stack to find which line of your code causes this assertion failure.

      1 Reply Last reply
      0
      • M Member_14642523

        Hello Folks, Can anyone please help me to solve this runtime issue I am facing while running the application in debug mode? the error is as follows: Debug Assertion Failed! Program: C:\WINDOWS\SYSTEM32\mfc140ud.dll File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\occcont.cpp Line: 925 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. The application is breaking at**

        ASSERT(IsWindow(pTemp->m_hWnd));

        **line in occcont.cpp file. Thanks in advance.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        It is a reasonable guess that pTemp->m_hWnd is not a valid Window handle. How that came about is impossible to guess. You need to use your debugger to gather more diagnostic information. Also there is some information at Debug Assertion in occcont.cpp Line: 926[^] which may help. But either way this looks to be a Microsoft problem, so you should report it (with full details) to them.

        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