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