[ros-kernel] Winzip almost loads - I need some help

Steven Edwards steven_ed4153 at yahoo.com
Fri Nov 21 07:46:07 CET 2003


Hello Ge,
--- Ge van Geldorp <ge at gse.nl> wrote:
> I don't have the source present atm, but if I remember correctly the
> message about CreateCompatibleDC failing is given when the variable
> PrimarySurfaceCreated is FALSE. The PrimarySurface is initialized
> (and
> this var set to TRUE) when the first DC is created and it is closed
> down
> (var set to FALSE) when all DCs have been deleted. So what happens
> exactly on the screen? You see it switching to graphics mode I
> assume,
> then some drawing takes place, then it switches back to "blue screen"
> mode and you get the crash?
> My guess is the app does a GetDC() and doesn't hand it back with
> ReleaseDC() (which would put the DC in the cache but not delete it)
> but
> does a DeleteDC() on it. If it's the last (or only) DC this will
> force
> the system to switch back to blue screen mode.

Yes it switchs to the blue screen and then the graphics driver attempts
to redraw the GDI again at lockup.

> Another experiment: try renaming blue.sys to blue.sys.save and
> reboot.
> This would give you a cmd window in GUI mode which keeps open its own
> DCs. That should prevent the system from switching out of graphics
> mode.

I will give it a shot in a few hours.

Thanks
Steven


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


More information about the Ros-kernel mailing list