GDI errors

I’m sure that some of you have already seen something like this (a million times) in your debug window…

First-chance exception in Prog.exe (GDI32.DLL): 0xC0000005: Access Violation.

It seem to be doing this error at every frame…

What may cause this problem? Is there a way to fix this?

Its annoying to have frame rate cut by 2 just because of that…

Yes, that is a common seemingly random occurance. I’ve never found a way to stop it or predict when it would occur. It has never been a real problem in the end. I suppose if you really wanted to go gung ho you could build some low level crt code to capture the debug messages and filter that message out.

I read about c++ exception handling…

Is it possible to catch this exception from where it occur using the c++ catch keyword?

It might not be possible at all I was just wondering…

[This message has been edited by Gabriel (edited 01-02-2001).]

I have never managed to stop it, but it is a bug acknowledged by Micro$oft. It only happens under 95/98 in my experience.