473,503 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crash at Application.Run(Form)

I've been working on an app that has the usual
Application.Run(new MyForm()) call in the static void Main
(). I can run this executable when I run it on my
development machine, but when I install everything on a
test machine, I get an unusual error in a message box:

(Title) MyApp.exe - Common Language Runtime Debugging
Services

(Body) Application has generated an exception that could
not be handled. It gives a process and thread id here
also, but I don't think those are too important.

I slipped in a message box before the call to
Application.Run() and it pops up. I also put in a message
box as the first line in the constructor of my form, but
the app never makes it there; it just gives me the crash
and message box.

I've searched high and low for an answer to this. I've
reinstalled the .NET framework, but that didn't work out.
Any help is appreciated.
Jul 21 '05 #1
1 1639
I went a little bit further and found that it isn't
crashing in the Application.Run call. I put a different
form in my project, and I put it in the call to
Application.Run. This works until I create a new object
of the form I originally wanted to bring up. Does anybody
know why creating a Windows Form will cause an exception
to raise that can not be handled?

Thanks...

-----Original Message-----
I've been working on an app that has the usual
Application.Run(new MyForm()) call in the static void Main
(). I can run this executable when I run it on my
development machine, but when I install everything on a
test machine, I get an unusual error in a message box:

(Title) MyApp.exe - Common Language Runtime Debugging
Services

(Body) Application has generated an exception that could
not be handled. It gives a process and thread id here
also, but I don't think those are too important.

I slipped in a message box before the call to
Application.Run() and it pops up. I also put in a messagebox as the first line in the constructor of my form, but
the app never makes it there; it just gives me the crash
and message box.

I've searched high and low for an answer to this. I've
reinstalled the .NET framework, but that didn't work out.Any help is appreciated.
.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2470
by: Jax | last post by:
I want my application to stop a certain action when it hasn't felt a mouse move for over 10 minutes I understand I could do this by using the mousemove event of the form of my application But if my...
1
323
by: Jeff | last post by:
I've been working on an app that has the usual Application.Run(new MyForm()) call in the static void Main (). I can run this executable when I run it on my development machine, but when I install...
2
1467
by: Patrick | last post by:
Hi, I would like to host the form of a COM application (like Excel or other) in a winform. Is there a library to do that or a custom control for vs.net2003 ? Thx
1
2335
by: Ryan Liu | last post by:
Hi, can someone tell me how to make an application/form blanking at the taskbar with FormWindowState.Minimized form state? I see MSN or Yahoo chat work this way. When a new message arrive, the...
2
840
by: rodchar | last post by:
hey all, is there a way to run my vb.net form without it showing up down at the bottom (i don't know what the thing is called, but it's when you hit minimize and it's down there at the bottom for...
0
1154
by: fswfsw | last post by:
I am using Microsoft visual studio 2005. Also i use windows application form. Now i have met some problem. I don't know how to output "int" or "wchar_t" types in the window application form? ...
3
1361
by: alok kumar | last post by:
Hi , This is Alok here. I want to creat a windws application form using c#. It contains a Tree View . I want to access all the Drives (C:\ , D:\ , E:\ etc.) and included directories and files in...
17
5356
by: Bodyboarder20 | last post by:
Hello! So im working on an applicaiton that all pretty much sits on a single form. When the application completes a task, I'd like it to use FlashWindow() to notify the user that it has...
1
1300
by: Bremanand | last post by:
hi folks, i am working in asp.net(C#).. and one part of my project is a windows application which is for administrator. whenever the administrator logged into the application(web) there...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.