D
decrypted
I am having a huge problem with using the GetHdc method of various graphics
objects in various user defined controls. I am constantly getting an
'invalid paramter used' error on my main thread in TOTALY RANDOM scenarios.
I have been trying to debug this for weeks...
Here is the scenario: 350+ clients running our application compiled in 1.1.
Using 2 third party control libraries (where the error is always occuring).
Various controls produce the problem in the simpelest of calls:
IntPtr hDC = doubleBufferGraphic.GetHdc();
m.WParam = hDC;
// Paint background first
PaintBackground(hDC);
// Call the ListView control to do its painting
base.WndProc(ref m);
The first line there is causing the error.
The error seems to be completely hidden inside of the GetHdc call. I have
never gotten the error on my machine. The error is HIGHLY random (almost
never the same window or control causes it) and in no way reproducable.
Error occures mostly on 98 machines, but we have reports on every single
machine (we do automatic error feedback with stack traces and screen shots).
I am thinking there is a problem with the video cards being used but I can't
find any documentation on the video card requirements for gdi+.
Has anyone else ever experienced anything like this at all or have ANY
insite into the problem?
Thanks
-dec
objects in various user defined controls. I am constantly getting an
'invalid paramter used' error on my main thread in TOTALY RANDOM scenarios.
I have been trying to debug this for weeks...
Here is the scenario: 350+ clients running our application compiled in 1.1.
Using 2 third party control libraries (where the error is always occuring).
Various controls produce the problem in the simpelest of calls:
IntPtr hDC = doubleBufferGraphic.GetHdc();
m.WParam = hDC;
// Paint background first
PaintBackground(hDC);
// Call the ListView control to do its painting
base.WndProc(ref m);
The first line there is causing the error.
The error seems to be completely hidden inside of the GetHdc call. I have
never gotten the error on my machine. The error is HIGHLY random (almost
never the same window or control causes it) and in no way reproducable.
Error occures mostly on 98 machines, but we have reports on every single
machine (we do automatic error feedback with stack traces and screen shots).
I am thinking there is a problem with the video cards being used but I can't
find any documentation on the video card requirements for gdi+.
Has anyone else ever experienced anything like this at all or have ANY
insite into the problem?
Thanks
-dec