User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050409 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050409 Firefox/1.0+ This is a very common programming error. in mozilla\gfx\src\windows\nsDrawingSurfaceWin.cpp: line 134: ::DeleteDC(mDC) This is an error, because mDC must contain a default object when deleted. for example, if you have something like: CBrush brsh; CBrush* poldBrsh; brsh.CreateSolideBrush(...); //omitted for simplicity poldBrsh = ::SelectObject(mDC, brsh); -and then, before the end of the destructor, add- ::SelectObject(mDC, poldBrsh); I see you did this on Bitmap. Please do this also on Font and Pen. Reproducible: Always Steps to Reproduce: Error detected with BoundsChecker version 7.2.0
prod->Core component ?
Assignee: firefox → win32
Component: General → GFX: Win32
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Well, there are news: mDC contained a Font and a Pen when distructed (as shown in BoundsChecker) Font is selected in mozilla\gfx\src\windows\nsRenderingContextWin.cpp Line 2602 and the Pen, in the same file - line 2665.
This bug has been automatically resolved after a period of inactivity (see above comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.