Re: Tooltip, .ShowDialog(), and .Dispose() on .NET 2.0 generate a NullReferenceException
- From: "Emmanuel" <Emmanuel@xxxxxxxxxxxxxxxx>
- Date: Sun, 4 Jun 2006 23:13:38 +0300
Thanks a lot Karen
"Karen Kenworthy" <karenk.at.teddybear.com> wrote in message
news:OFcvsBBiGHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
<< Is this some kind of bug ? >>
Apparently so. There's a new KB article that discusses the subject:
-------------------
SYMPTOMS
You may receive an error message when you try to close a Microsoft Windows
Forms-based application. Consider the following scenario: . A Microsoft
Windows Forms-based application uses ToolTips.
. The application is running on the Microsoft .NET Framework 2.0.
In this scenario, you may receive the following error message when you try
to close the application:
System.NullReferenceException: Object reference not set to an instance of
an object.
--------------------
They advise overriding the form's Dispose method. The suggested code is
in this article:
http://support.microsoft.com/kb/918146/en-us
Or you can ask customer support for a revised copy of
System.windows.forms.dll.
--
Karen Kenworthy
http://www.karenware.com/
.
- References:
- Re: Tooltip, .ShowDialog(), and .Dispose() on .NET 2.0 generate a NullReferenceException
- From: Karen Kenworthy
- Re: Tooltip, .ShowDialog(), and .Dispose() on .NET 2.0 generate a NullReferenceException
- Prev by Date: Re: Tooltip, .ShowDialog(), and .Dispose() on .NET 2.0 generate a NullReferenceException
- Next by Date: Re: Track Bar
- Previous by thread: Re: Tooltip, .ShowDialog(), and .Dispose() on .NET 2.0 generate a NullReferenceException
- Next by thread: Redraws and flickering
- Index(es):
Relevant Pages
|