Application.Run() error

  • Thread starter Thread starter Marc Solé
  • Start date Start date
M

Marc Solé

Hello!

I have a error that often appears. When I execute my windows program in
debug mode, often appears an error in the Program.cs module, in sentence
Application.Run. When I'm looking for the problem that could be, I have seen
that the "currentHelpInfo" has not any value, and the application crashes
because this needs to have a value.

Somebody know how to solve this?

Thanks a lot!

Marc
 
Marc,

Can you post the exception message and stack trace? It sounds like it
might be a NullReferenceException based on what you said. If that's
the case then you need make sure that you have initialized the object
before using it.

Brian
 
Brian,

that's exactly what is happening. I have a NullReferenceException (the
currentHelpInfo is null), but I don't know how to initialice this object.

Have you got any idea?

Marc


"Brian Gideon" <[email protected]> escribió en el mensaje
Marc,

Can you post the exception message and stack trace? It sounds like it
might be a NullReferenceException based on what you said. If that's
the case then you need make sure that you have initialized the object
before using it.

Brian
 
Marc,

What is currentHelpInfo declared as? You initialize it by creating an
instance of whatever type it is.

Brian
 
Back
Top