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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

winGDI wierdness

Status
Not open for further replies.

ahoodin

Programmer
Jul 25, 2001
48
US
I am having a wierdness in my application where one of the dialogs throws some exceptions. First the dialog will throw an exception in the OnPaint() handler where it blows up on the constructor of the dc.

Here is the error:
WinGdi.cpp line 1055 on ~CPaintDC()

Here is the line in the winGDI library:

ASSERT:):IsWindow(m_hWnd));

If I comment out the CDC from the OnPaint It blows up like this:

First-chance exception in lcontrol.exe: 0xC0000005: Access Violation.

debugger shows:
accessing a member variable of the dialog.

The dialog worked for months until last friday.

Helllp!
Asher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top