<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[TIdHTTP: Abbruch?]]></title><description><![CDATA[<p>Hallo, ich habe ein Problem mit der TIdHTTP-Komponente: Wenn ich einen Download starte und er ziemlich lange dauert, möchte ich natürlich abbrechen... Download:</p>
<pre><code class="language-cpp">TFileStream* fs=new TFileStream(&quot;File&quot;,fmCreate);
            http-&gt;Get(&quot;Host&quot;,fs);
            delete fs;
</code></pre>
<p>Der Download funktioniert einwandfrei, aber wie breche ich den Download ab? Ich hab das bisher so gelöst:</p>
<pre><code class="language-cpp">http-&gt;DisconnectSocket();
</code></pre>
<p>Aber da bekomme ich immer die Meldung &quot;Connection Closed Gracefully&quot;. Wie breche ich also den Download ab, ohne diese Meldung zu bekommen?</p>
<p>- Windoof</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/88882/tidhttp-abbruch</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 10:59:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88882.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Oct 2004 21:23:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Wed, 13 Oct 2004 21:23:50 GMT]]></title><description><![CDATA[<p>Hallo, ich habe ein Problem mit der TIdHTTP-Komponente: Wenn ich einen Download starte und er ziemlich lange dauert, möchte ich natürlich abbrechen... Download:</p>
<pre><code class="language-cpp">TFileStream* fs=new TFileStream(&quot;File&quot;,fmCreate);
            http-&gt;Get(&quot;Host&quot;,fs);
            delete fs;
</code></pre>
<p>Der Download funktioniert einwandfrei, aber wie breche ich den Download ab? Ich hab das bisher so gelöst:</p>
<pre><code class="language-cpp">http-&gt;DisconnectSocket();
</code></pre>
<p>Aber da bekomme ich immer die Meldung &quot;Connection Closed Gracefully&quot;. Wie breche ich also den Download ab, ohne diese Meldung zu bekommen?</p>
<p>- Windoof</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628336</guid><dc:creator><![CDATA[Windoof]]></dc:creator><pubDate>Wed, 13 Oct 2004 21:23:50 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 07:59:53 GMT]]></title><description><![CDATA[<p>Mal mit catch(...) probiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628477</guid><dc:creator><![CDATA[nirsaja]]></dc:creator><pubDate>Thu, 14 Oct 2004 07:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 08:26:19 GMT]]></title><description><![CDATA[<p>&quot;Connection Closed Gracefully&quot; ist hier keine Fehlermeldung, sondern eine Bestätigung, dass die Verbindung sauber getrennt wurde. Siehe dazu auch die Erläuterungen auf der Indy-Webseite.</p>
<p>Wie von nirsaja schon angedeutet musst du die Exception einfach mit try/catch abfangen. Allerdings besser nicht mit (...), sondern gezielt als EIdConnClosedGracefully (oder wie immer der konkrete Name lautet).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628500</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628500</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 14 Oct 2004 08:26:19 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 09:02:32 GMT]]></title><description><![CDATA[<p>Also ich habs einmal mit ... und einmal so probiert:</p>
<pre><code class="language-cpp">try
    {
        http-&gt;DisconnectSocket();
    }
    catch(EIdConnClosedGracefully &amp;c)
    {
        Application-&gt;MessageBox(&quot;Download has been canceled.&quot;,&quot;MusicLoader&quot;,64);
    }
</code></pre>
<p>Bei beiden malen kam <strong>nur</strong> wieder diese Meldung &quot;Connection closed gracefully.&quot; Aber wie bekomme ich diese Meldung weg?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628536</guid><dc:creator><![CDATA[Windoof]]></dc:creator><pubDate>Thu, 14 Oct 2004 09:02:32 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 09:30:29 GMT]]></title><description><![CDATA[<p>Dass Exceptions beim Start aus der IDE heraus trotzdem angezeigt werden, das wurde hier schon so oft diskutiert, dass eigentlich auch du das hättest mitbekommen sollen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
Start dein Program mal ausserhalb der IDE.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628563</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 14 Oct 2004 09:30:29 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 09:30:48 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>hast du es schonmal mit ... versucht<br />
oder<br />
kommt die Meldung &quot;nur&quot; in der IDE oder auch wenn du die Exe aufrufst</p>
<p>MfG<br />
Klaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628564</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628564</guid><dc:creator><![CDATA[KlausB]]></dc:creator><pubDate>Thu, 14 Oct 2004 09:30:48 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 10:08:13 GMT]]></title><description><![CDATA[<p>Ja, auch, wenn ich die EXE so aufrufe... lieber Jansen, denk nicht immer, dass ich dumm bin, ich weiß selber, dass ich in der IDE alle Exceptions angezeigt bekomme. bei ... kommt genau das Gleiche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628596</guid><dc:creator><![CDATA[Windoof]]></dc:creator><pubDate>Thu, 14 Oct 2004 10:08:13 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 10:43:01 GMT]]></title><description><![CDATA[<p>EDIT: Sorry wegen Doppelpost, euer Server reagiert grad bei mir etwas lahmarschig <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/628602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628602</guid><dc:creator><![CDATA[Windoof]]></dc:creator><pubDate>Thu, 14 Oct 2004 10:43:01 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 11:50:05 GMT]]></title><description><![CDATA[<p>Solch eine sch...öne MessageBox hatte ich bei einem Programm auch, ich glaube die wurde von TClientSocket verursacht. Die störte zwar in meinem Fall nicht den Programmablauf, war aber extrem lästig und nicht weg zu bekommen. Wollte irgendwann ne eigene Kompo auf Basis von Winsock schreiben, nur blieb es bisher bei dem Willen. Andere Dinge waren wieder einmal extrem wichtiger <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/628654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628654</guid><dc:creator><![CDATA[Peter]]></dc:creator><pubDate>Thu, 14 Oct 2004 11:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 12:47:43 GMT]]></title><description><![CDATA[<p>Windoof schrieb:</p>
<blockquote>
<p>ich weiß selber, dass ich in der IDE alle Exceptions angezeigt bekomme</p>
</blockquote>
<p>Warum weist du dann nicht darauf hin, dass du diesen Umstand bereits berücksichtigt hast? Warum weist du nicht darauf hin, dass der catch-Zweig offenbar gar nicht erreicht wird und deine eigene MessageBox nicht angezeigt wird?<br />
<a href="http://www.lugbz.org/documents/smart-questions_de.html" rel="nofollow">http://www.lugbz.org/documents/smart-questions_de.html</a></p>
<p>Davon abgesehen habe ich Probeme, das Problem nachzuvollziehen. Bei mir wird auch ohne try/catch die Exception nur innerhalb der IDE geworfen.<br />
In der Hilfe wird darauf hingewiesen, dass EIdConnClosedGracefully von EIdSilentException abstammt und sich somit ähnlich wie EAbort aus der VCL verhält. Zitat: &quot;Abort is the exception class for errors that should not display an error message dialog box.&quot;</p>
<p>Na und genau das macht EIdConnClosedGracefully hier auch, es zeigt (beim Start ausserhalb der IDE) keine Meldung.</p>
<p>PS. Indy 9.00.14</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628714</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 14 Oct 2004 12:47:43 GMT</pubDate></item><item><title><![CDATA[Reply to TIdHTTP: Abbruch? on Thu, 14 Oct 2004 19:17:01 GMT]]></title><description><![CDATA[<p>Ja, und wie bekomme ich die Meldung jetzt weg? Sie ist nämlich, wie jemand schon andeutete, sehr lästig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/628925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/628925</guid><dc:creator><![CDATA[Windoof]]></dc:creator><pubDate>Thu, 14 Oct 2004 19:17:01 GMT</pubDate></item></channel></rss>