473,387 Members | 1,899 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,387 software developers and data experts.

how to destory the application without getting error msg ?

hi.
i want to destroy the application when i catch some exception.
i have multithread app.

how can i destroy the application and exit immedietly ?
Nov 20 '05 #1
3 1313

"Daylor" <ro******@hotmail.com> schreef in bericht
news:bu**********@news2.netvision.net.il...
hi.
i want to destroy the application when i catch some exception.
i have multithread app.

how can i destroy the application and exit immedietly ?


Application.Exit() ' the opposite of what you do when you start a windows
forms application Application.Run(New Form1())

Yves

Nov 20 '05 #2
* "Daylor" <ro******@hotmail.com> scripsit:
i want to destroy the application when i catch some exception.
i have multithread app.

how can i destroy the application and exit immedietly ?


Tell the threads, for example by setting a Boolean variable, that they
should terminate, then close the main form.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
you'll need to know all your threads; send them aborts and then exit your
app. that should take everything down.

Josh Moody
Developer Division Sustained Engineering Team

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: "Daylor" <ro******@hotmail.com>
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: how to destory the application without getting error msg ?
Date: Thu, 22 Jan 2004 20:23:04 +0200
Organization: NetVision InterNetNews site
Lines: 7
Message-ID: <bu**********@news2.netvision.net.il>
NNTP-Posting-Host: dsl217-132-37-126.bb.netvision.net.il
X-Trace: news2.netvision.net.il 1074795896 12243 217.132.37.126 (22 Jan 2004 18:24:56 GMT)X-Complaints-To: us****@netvision.net.il
NNTP-Posting-Date: Thu, 22 Jan 2004 18:24:56 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali
.net!news.tele.dk!news.tele.dk!small.news.tele.dk! news-out.visi.com!petbe.vi
si.com!ash.uu.net!news2.netvision.net.il!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:175301
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

hi.
i want to destroy the application when i catch some exception.
i have multithread app.

how can i destroy the application and exit immedietly ?


Nov 20 '05 #4

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

Similar topics

5
by: Venky | last post by:
We have a strange error here. We have an application that is built in VC++ 6.0 and uses a C library built using the same. Now, we have migrated to .Net and have used the same source code to be...
4
by: Steve B. | last post by:
I think a user exited my local application incorrectly and now I can't compile a new version of the application to the public network without getting a "in use" error message. Also, can't rename...
0
by: tempus | last post by:
I've been working on this application for two months. today i came to work, opened visual studio and build my application. and i started getting the error: > Server Application Unavailable >...
8
by: Shane O'Keeffe | last post by:
Hi, I am getting the following error message when I attempt to create a new ASP.NET (C#) web application: The Web server reported the following error when attempting to create or open the Web...
7
by: ddd | last post by:
Hi, I am having problems with using the DrawToDC of the MSHTML.iHTMLElementRender in a VB.net application. For some reason I am getting a "catastrophic error". I am basing the code on c#...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
35
by: salad | last post by:
I have an application written in MS-Access. It is a complete application that manages the day-to-day operations of a business. The program is nearly ready to be used in other customer sites. ...
2
by: Ian Boyd | last post by:
We're encountering a situation where we're encountering a deadlock, and someone's been made the deadlock victim. But after that, DB2 refuses to run any SQL, and instead we get the error message: ...
13
by: Kevin Liebowicz | last post by:
Yes, I wasted the past two days trying to fix this. Yes, this is on a Win2003 Server. Yes, this machine is a domain controller. Yes, I seen the dozens of KB articles like this one:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.