messageBox.Show throws null reference exception

  • Thread starter Thread starter Roger Dunham
  • Start date Start date
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
 
Back
Top