🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #280

Re: Analog of Delphi Abort function.

#280
From: Craig Stuntz TeamB
Date: Tue, 27 Dec 2005 12:17
20 lines
1981 bytes
Serge wrote:

> Plz answer me is there in C# the equivalnet of Delphi' "Abort"
> function? Or how can I get same functionality in C#?

	Abort in Delphi just raises EAbort. EAbort is "silent" insofar as it's
ignored by the default global application exception handler.
Thread.Abort in .NET raises ThreadAbortException, so that's pretty
close. But AFAIK there's no such thing as a "silent" exception in .NET
as with EAbort, and there is no global exception handler by default in
a WinForms app.

	So you can probably do what you want by throwing an exception --
probably a custom exception -- but you'll have to handle it yourself.

-- 
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
  Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Please read and follow Borland's rules for the user of their 
  server: http://support.borland.com/entry.jspa?externalID=293
Technical Details
Message-ID: <43b13efd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <1135592084.887190@angel.elektra.ru>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,7f4a2e08d47e8845
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]>
Subject: Re: Analog of Delphi Abort function.
Newsgroups: borland.public.csharpbuilder.language.csharp
References:  <1135592084.887190@angel.elektra.ru>
Organization: Vertex Systems Corporation
User-Agent: XanaNews/1.17.6.4
X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ:0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR
NNTP-Posting-Host: 24.106.104.204
Message-ID: <43b13efd$1@newsgroups.borland.com>
Date: 27 Dec 2005 05:17:49 -0700
X-Trace: newsgroups.borland.com 1135689469 24.106.104.204 (27 Dec 2005 05:17:49 -0700)
Lines: 20
X-Authenticated-User: cstuntz
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail