473,322 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1628
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
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
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
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
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
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
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
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
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
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.