473,566 Members | 3,309 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 1648
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.Ru n(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.Ru n() 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
2485
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 application doesn't have the focus it wont fire the event if the mouse is moved right So is there any way of finding out if the mouse is moving in...
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 everything on a test machine, I get an unusual error in a message box: (Title) MyApp.exe - Common Language Runtime Debugging Services (Body)...
2
1477
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
2345
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 existing window does not pop up, it stays at the bottom taskbar and blanking. Thanks a lot! Ryan
2
847
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 you to restore)? thanks, rodchar
0
1161
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? Anybody knows and can help me out??? Thanks a lot!!!
3
1366
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 those directories using a Functon in Tree View. So Please help me .
17
5361
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 completed. I have this part working; however, I cant seem to find the right event to use to Stop the flashing.
1
1304
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 should be an option to use that windows form.. Plaese let me know that the solution to this...
0
7673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7645
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7953
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
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 we have to send another system
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.