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. MFC App Wizard generated SDI application crashes.

MFC App Wizard generated SDI application crashes.

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++visual-studioquestionworkspace
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.
  • S Offline
    S Offline
    Saurabh Garg
    wrote on last edited by
    #1

    I am creating a SDI application using app-wizard with VS 2008. My problem is this application crashes in InitInstance() at ProcessShellCommand(). I must mention that I have added no code so far, so there can be no error from my part. I am guessing some configuration problem with my system. Has anyone seen this behaviour? Saurabh

    T 1 Reply Last reply
    0
    • S Saurabh Garg

      I am creating a SDI application using app-wizard with VS 2008. My problem is this application crashes in InitInstance() at ProcessShellCommand(). I must mention that I have added no code so far, so there can be no error from my part. I am guessing some configuration problem with my system. Has anyone seen this behaviour? Saurabh

      T Offline
      T Offline
      theCPkid
      wrote on last edited by
      #2

      yeah and the culprit was AfxOleInit(). It was a random problem and I was not able to reproduce it. May be two calls to initializing OLE libraries caused the problem. Call AfxOleInit/InitializeOle only once in your code.

      the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..

      S 1 Reply Last reply
      0
      • T theCPkid

        yeah and the culprit was AfxOleInit(). It was a random problem and I was not able to reproduce it. May be two calls to initializing OLE libraries caused the problem. Call AfxOleInit/InitializeOle only once in your code.

        the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions. ..surviving in autumn..in love with spring..

        S Offline
        S Offline
        Saurabh Garg
        wrote on last edited by
        #3

        I am not initializing OLE as the code I am testing is generated by AppWizard and I haven't added anything yet. I did have one AfxOleInit in InitInstance and uncommenting it doesn't help. Interesting thing is if I take the code to another machine, after building if works fine. So I am pretty sure that it a comfiguration problem rather than a coding bug. I would reinstall VS but I dont have time right now. Saurabh

        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