messageBox.Show throws null reference exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roger Dunham

    messageBox.Show throws null reference exception

    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
Working...