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. My application causing an assert in viewcore.cpp

My application causing an assert in viewcore.cpp

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
4 Posts 3 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.
  • R Offline
    R Offline
    Raghunandan S
    wrote on last edited by
    #1

    Hi All, MY application is causing an assert in the line 249 of viewcore.cpp.This is a OnMouseActivate() function and the assertion is at ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame)); can someone tell me what might be the possible condition.This is a randomly occuring bug and i dont have any logs regarding this Thanks in advance Regards Raghu

    D J 2 Replies Last reply
    0
    • R Raghunandan S

      Hi All, MY application is causing an assert in the line 249 of viewcore.cpp.This is a OnMouseActivate() function and the assertion is at ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame)); can someone tell me what might be the possible condition.This is a randomly occuring bug and i dont have any logs regarding this Thanks in advance Regards Raghu

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Raghunandan S wrote: can someone tell me what might be the possible condition. Either the parent frame is the desktop or the parent frame is a direct descendent of the desktop. Put a breakpoint on that line to see which of the two conditions is evaluating to FALSE.


      "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

      1 Reply Last reply
      0
      • R Raghunandan S

        Hi All, MY application is causing an assert in the line 249 of viewcore.cpp.This is a OnMouseActivate() function and the assertion is at ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame)); can someone tell me what might be the possible condition.This is a randomly occuring bug and i dont have any logs regarding this Thanks in advance Regards Raghu

        J Offline
        J Offline
        Jeffrey Walton
        wrote on last edited by
        #3

        Hi Raghunandan, Did you subclass a view? It sounds like you are using a view where you should have a window. For example, CListCtrl is derived from CWnd but CListView is derived from CView. Jeff

        R 1 Reply Last reply
        0
        • J Jeffrey Walton

          Hi Raghunandan, Did you subclass a view? It sounds like you are using a view where you should have a window. For example, CListCtrl is derived from CWnd but CListView is derived from CView. Jeff

          R Offline
          R Offline
          Raghunandan S
          wrote on last edited by
          #4

          Hi, Mine is an SDI application where I do like this: CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CConvertDoc), RUNTIME_CLASS(CMainFrame), RUNTIME_CLASS(CConvertView)); AddDocTemplate(pDocTemplate); in my initinstance CMainFrame is derived from CFrameWnd and CConvertView is derived from CEditView. Is there any problme in this kind of creation? Regards Raghu

          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