-
NullReferenceException when closing main form
I have written a Windows Form Application (standard c# template) in Visual Studio 2008. When I try to close the main form of the debug build, I get an unhandled exception that I can not figure out how to resolve.
//program.cs
...
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1()); //NullReferenceException
//"Object reference not set to an instance of an object"
}
...
Before today, my application was working fine. I'm not sure what I changed to make this happen. Are there any suggestions on where to look and/or how to fix this?
-
What changed in your envirnoment since yesterday when it was working?
Similar Threads
-
Replies: 2
Last Post: 03-14-2008, 06:57 AM
-
By zobi316 in forum VB Classic
Replies: 3
Last Post: 03-10-2008, 07:05 AM
-
By Al Guten in forum .NET
Replies: 0
Last Post: 04-11-2002, 06:48 PM
-
By Keflavik in forum VB Classic
Replies: 4
Last Post: 07-05-2000, 03:06 PM
-
By Mark Alexander Bertenshaw in forum VB Classic
Replies: 0
Last Post: 03-16-2000, 01:14 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|