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. domodal -- Another crash

domodal -- Another crash

Scheduled Pinned Locked Moved C / C++ / MFC
c++comlearning
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.
  • E Offline
    E Offline
    ERLN
    wrote on last edited by
    #1

    I have Created the ATL COM DLL Project and intergrated office addin with MFc support . It will create 1 Toolbar button in office . On clicking the button displaying the messagebox. Working fine. no issues. After That I just created 1 Dialog and added a MFC class for that. No Additional code. Just AfxSetResourceHandle() CMyDialog Dlg; Dlg.DModal(); //reset the resource handle. Crashing the on the above domodal . after debugging i got the assertion on below line of standard mfc file if (!AfxGetThread()->PumpMessage())

    H 1 Reply Last reply
    0
    • E ERLN

      I have Created the ATL COM DLL Project and intergrated office addin with MFc support . It will create 1 Toolbar button in office . On clicking the button displaying the messagebox. Working fine. no issues. After That I just created 1 Dialog and added a MFC class for that. No Additional code. Just AfxSetResourceHandle() CMyDialog Dlg; Dlg.DModal(); //reset the resource handle. Crashing the on the above domodal . after debugging i got the assertion on below line of standard mfc file if (!AfxGetThread()->PumpMessage())

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Return value of this function is NULL or currently executing thread it looks you got NULL as return value so you see this line.

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      E 1 Reply Last reply
      0
      • H Hamid Taebi

        Return value of this function is NULL or currently executing thread it looks you got NULL as return value so you see this line.

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        E Offline
        E Offline
        ERLN
        wrote on last edited by
        #3

        k. but that error is from mfc source code. not from my source code. how shall i check that line.

        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