473,398 Members | 2,188 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,398 software developers and data experts.

Application can't be closed.

Hi All,

When I start a Process, ex:

System.Diagnostics.Process.Start("http://www.yahoo.com");

The application can't be closed correctly.
//// FAILED CODE BEGIN///////
{
MessageBox.Show("Out of date", "Boki
Software");
System.Diagnostics.Process.Start("http://
www.yahoo.com");
this.Close();
}
//// FAILED CODE END ///////

if I removed the process line, it works as my expectation.
//// WORKS CODE BEGIN///////
{
MessageBox.Show("Out of date", "Boki
Software");
this.Close();
}
//// WORKS CODE END///////

Best regards,
Boki.

Aug 2 '07 #1
1 1035
On Aug 2, 8:07 am, Boki <boki.digi...@gmail.comwrote:
When I start a Process, ex:

System.Diagnostics.Process.Start("http://www.yahoo.com");

The application can't be closed correctly.
You've said that it fails, but you haven't given any indication of the
nature of the failure. My guess is that an exception is being thrown
by Process.Start, so your Close() call is never executed - but without
enough information, it really is just a guess.

Jon

Aug 2 '07 #2

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

Similar topics

33
by: aa | last post by:
I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters. Is there a similar...
2
by: Michael Zhang | last post by:
My project uses Python-2.3.4 + Tkinter + PIL-1.1.4 to retrieve images from server and display those images. I created a thread (also a separate toplevel window) for displaying images and another...
0
by: Laszlo Szijarto | last post by:
I have an app which moves around between a series of forms. I don't want to keep the forms open but hidden. I need to close them as I switch back and forth from one form to another. ...
10
by: Jeremy Ames | last post by:
I have created a web application that uses a custom control and a web service on my local system. I have gotten all of the bugs worked out on my local system and now it is time to move it to the...
1
by: Jeremy Ames | last post by:
I made a post yesterday under the same title, and I think I finally fixed yesterday's problem by playing with the setup files. However, I am still having a problem with the web service that the...
2
by: Johan | last post by:
hi, I have an application with a parent and children forms for data entry. I want to save any changes if the X is clicked before the application is closed, but how do I do this? I've read in...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
3
by: mamin | last post by:
My application works under IIS 5.1 and is connected with oracle 9.2 database. After a few days of working it starts to work slower aned slower. I've checked connections with database if they are...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
1
by: hermbagger | last post by:
I wrote a windows application in C# (using visual studio 2003) which I am running as an executable on a Windows Server 2003 machine. The application runs smoothly for days. Then out of nowhere,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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,...

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.