Article View: borland.public.cppbuilder.internet.socket
Article #365Re: Stop the indy Get() function
From: Remy Lebeau (TeamB)
Date: Wed, 26 Mar 2008 17:49
Date: Wed, 26 Mar 2008 17:49
18 lines
1766 bytes
1766 bytes
"bar" <shaikakbar250281@yahoo.co.in> wrote in message news:47ea86a8@newsgroups.borland.com... > I want to cancel the previous download completely, > without raising the exception There is no way to do that. The only way to abort the Get() is to either Disconnect() the connection, or raise an Exception in the OnWork event(s). Either one will cause an Exception to escape from Get() into your code, so you must handle it accordingly. If you don't want to show an error message, then you will have to either check the Exception class type and ignore those you know are "safe". Or better, just set a flag somewhere indicating that you caused an intentional exception, and then ignore the error in your exception handler. Gambit
Technical Details
Message-ID:
<47ea8cb8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<47ea86a8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8732be4783ae43b6 X-Google-Attributes: gid11508e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <47ea86a8@newsgroups.borland.com> Subject: Re: Stop the indy Get() function Date: Wed, 26 Mar 2008 10:49:46 -0700 Lines: 20 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <47ea8cb8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1206553784 207.178.157.90 (26 Mar 2008 10:49:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail