HDC System.ArguementException in IE emdedded control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I am having a problem on a a PC where it throws an unhandled exception in in
a embedded control in IE.

The exception is a System.ArgumentException and I cannot even catch it to
find out where it is coming from...
I have a try..catch in loading the control, so that should catch all the
errors.

Help, as this happens intermitently but costs alot for the client when this
happens.

Any and all help will greatly be appreciated.

Thanks,
Bryan
 
I forgot to attach the error message,
System.ArgumentException: hdc
at
System.Windows.Forms.DibGraphicsBufferManager.CreateCompatibleDIB(IntPtr hdc,
IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
at System.Windows.Forms.DibGraphicsBufferManager.CreateBuffer(IntPtr src,
Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
at System.Windows.Forms.DibGraphicsBufferManager.AllocBuffer(Graphics
targetGraphics, IntPtr targetDC, Rectangle targetBounds)
at System.Windows.Forms.DibGraphicsBufferManager.AllocBuffer(IntPtr
target, Rectangle targetBounds)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
 
ISSUE Resolved:
I performed all the windows updates including .net 1.1 SP1 and it fixed the
problem.
 
Back
Top