By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,996 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,996 IT Pros & Developers. It's quick & easy.

ListView.Items.Clear() Throws Exception

P: n/a
Tom
For some strange reason my WinForms app occasionally
throws a System.NullReferenceException upon invoking the
Clear() method. The app will work fine for a long period
of time and then all of a sudden this exeption is thrown
and after that you just cant ever clear the ListView
control again - even though messages still go into it and
are displayed correctly.

Anybody have any idea what could be causing this?

Thanks,
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Cor
Hi Tom

With this information certainly nowbody can see it,

Send some code Tom or better place it with some code in the newsgroup
news://msnews.microsoft.com/microsof...t.languages.vb

or

news://msnews.microsoft.com/microsof...nguages.CSharp
I think than you have a better change to get an anser.

Cor
For some strange reason my WinForms app occasionally
throws a System.NullReferenceException upon invoking the
Clear() method. The app will work fine for a long period
of time and then all of a sudden this exeption is thrown
and after that you just cant ever clear the ListView
control again - even though messages still go into it and
are displayed correctly.

Anybody have any idea what could be causing this?

Thanks,

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.