Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with InitInstance

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
Hi everybody

I don't understand why this morning when i tried to start my dialog based application, the message box has opened with the following message:

Uhandled exception in Fractal_v1_0.exe:0xC000005: Access Violation

So i've found that this problem comes from the following line of code in the function InitInstance:

m_pMainWnd=&Dlg;

The big problem is that my application used to run before, so is anybody could explain me where could this problem come?

Thanks in advance

jayjay
 
This sounds to be a very unique problem.There could no problem with the line
m_pMainWnd=&Dlg;

Debug carefully.
Better option would be to make a new dlg based app.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top