D
Daniel Carlsson
Hello
I recently started having problems with exceptions being thrown (pretty much
at random) that look like this:
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.ChildWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Which is extremly hard to locate...
I found an old thread on Google which stated that the error was thrown from
a ComboBox's ChildWindow which sometimes tries to do a callback on the
ComboBox after it has been garbage collected (through a weak reference).
(Old post below)
Are there any work arounds on this bug?
Atm Im considering using an Application.ThreadException event handler and
try to drop these exceptions when they accur, but Im not sure if that would
cause other problems.
Im also wondering if anyone know if you can examine the source code for the
System.Windows.Forms package? The SSCLI doesnt cover that package from what
Ive seen. Would help if I can look through that code as well..
Thanks in advance for any help or suggestions
/Dan
I recently started having problems with exceptions being thrown (pretty much
at random) that look like this:
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.ChildWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Which is extremly hard to locate...
I found an old thread on Google which stated that the error was thrown from
a ComboBox's ChildWindow which sometimes tries to do a callback on the
ComboBox after it has been garbage collected (through a weak reference).
(Old post below)
Are there any work arounds on this bug?
Atm Im considering using an Application.ThreadException event handler and
try to drop these exceptions when they accur, but Im not sure if that would
cause other problems.
Im also wondering if anyone know if you can examine the source code for the
System.Windows.Forms package? The SSCLI doesnt cover that package from what
Ive seen. Would help if I can look through that code as well..
Thanks in advance for any help or suggestions
/Dan