Hi to all

Maybe this is a stupid question, but I looked around in internet and searched this forum for this problem. I didn't found anything free and useful

The fact is, I have an application SDI with a view that produces a custom report. When I go for print preview, I got an ASSERT from line 562 in afxwin1.inl. The code that Asserts is

Code:
_AFXWIN_INLINE HGDIOBJ CDC::SelectObject(HGDIOBJ hObject) // Safe for NULL handles
	{ ASSERT(m_hDC == m_hAttribDC); // ASSERT a simple CDC object
		return (hObject != NULL) ? ::SelectObject(m_hDC, hObject) : NULL; }
The app continues working after hitting the ignore button, but I think I shoul solve this fact; i suspect doing something wrong.


Thanks in advance for the help