messageBox.Show throws null reference exception

R

Roger Dunham

I am writing a data aware reporting application using a mixture of C#
and managed and unmanaged C++.
Occassionally an "Object Reference not set to an instance of an
object" exception ais being thrown within the C# code when a message
box is shown.

A similar problem also occassionally occurs if I use a custom form,
when ShowDialog is called.

The problem tends to occur when data has been reloaded a number of
times.

A search of the Newsgroups suggest that a few other people have also
had this problem. Can anyone please suggest what I have done wrong?

Many thanks

Roger Dunham
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top