<?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[Exception bei ServerSocket wird nicht abgefangen]]></title><description><![CDATA[<p>Hallo,<br />
ich benutze diesen Code um eine Verbindung herzustellen.<br />
Wenn die Verbindung nicht hergestellt werden kann, soll eine Meldung ausgegeben werden, und einige Schaltflächen deaktiviert werden:</p>
<pre><code class="language-cpp">ClientSocket-&gt;Address = &quot;192.168.178.21&quot;;
        Memo-&gt;Lines-&gt;Add(&quot;Bitte warten, die Verbindung wird hergestellt&quot;);
                Memo-&gt;Lines-&gt;Add(&quot;Verbindung hergestellt&quot;);
                button_connect-&gt;Visible = false;
                button_send-&gt;Enabled = true;
                Form1-&gt;ActiveControl = edit_send;
                Timer_welcometext-&gt;Enabled = true;
        try {
                ClientSocket-&gt;Active = true;
        } catch(...) {
                Application-&gt;MessageBox(&quot;Die Verbindung konnte nicht aufgebaut werden.\nMöglicherweise ist der PC nicht an&quot;, &quot;Fehler beim Verbindungsaufbau&quot;);
                button_connect-&gt;Visible = true;
                button_send-&gt;Enabled = false;
                Form1-&gt;ActiveControl = edit_send;
                Timer_welcometext-&gt;Enabled = false;
        }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/196522/exception-bei-serversocket-wird-nicht-abgefangen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 14:04:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196522.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Oct 2007 20:02:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exception bei ServerSocket wird nicht abgefangen on Tue, 30 Oct 2007 20:02:55 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich benutze diesen Code um eine Verbindung herzustellen.<br />
Wenn die Verbindung nicht hergestellt werden kann, soll eine Meldung ausgegeben werden, und einige Schaltflächen deaktiviert werden:</p>
<pre><code class="language-cpp">ClientSocket-&gt;Address = &quot;192.168.178.21&quot;;
        Memo-&gt;Lines-&gt;Add(&quot;Bitte warten, die Verbindung wird hergestellt&quot;);
                Memo-&gt;Lines-&gt;Add(&quot;Verbindung hergestellt&quot;);
                button_connect-&gt;Visible = false;
                button_send-&gt;Enabled = true;
                Form1-&gt;ActiveControl = edit_send;
                Timer_welcometext-&gt;Enabled = true;
        try {
                ClientSocket-&gt;Active = true;
        } catch(...) {
                Application-&gt;MessageBox(&quot;Die Verbindung konnte nicht aufgebaut werden.\nMöglicherweise ist der PC nicht an&quot;, &quot;Fehler beim Verbindungsaufbau&quot;);
                button_connect-&gt;Visible = true;
                button_send-&gt;Enabled = false;
                Form1-&gt;ActiveControl = edit_send;
                Timer_welcometext-&gt;Enabled = false;
        }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1394866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394866</guid><dc:creator><![CDATA[socketerror]]></dc:creator><pubDate>Tue, 30 Oct 2007 20:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to Exception bei ServerSocket wird nicht abgefangen on Tue, 30 Oct 2007 20:24:40 GMT]]></title><description><![CDATA[<p>Ja und, was passiert stattdessen?</p>
<p>Genereller Hinweis: Beim Start aus der IDE heraus wird vor dem Abfangen standardmässig trotzdem die Fehlermeldung angezeigt; hast du dein Programm mal aus dem Explorer gestartet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394877</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Tue, 30 Oct 2007 20:24:40 GMT</pubDate></item><item><title><![CDATA[Reply to Exception bei ServerSocket wird nicht abgefangen on Tue, 30 Oct 2007 20:44:45 GMT]]></title><description><![CDATA[<p>Nichts ;), da keine Exception ausgelöst wird. Siehe TClientSocket::OnError().</p>
<p>Grüße Joe_M.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394887</guid><dc:creator><![CDATA[zufaulumeinloggen]]></dc:creator><pubDate>Tue, 30 Oct 2007 20:44:45 GMT</pubDate></item><item><title><![CDATA[Reply to Exception bei ServerSocket wird nicht abgefangen on Wed, 31 Oct 2007 18:46:26 GMT]]></title><description><![CDATA[<p>statdessen bekomme ich immer eine Fehlermeldung &quot;Ansynchronus Socket error&quot;</p>
<p>Das mit OnError teste ich mal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395505</guid><dc:creator><![CDATA[socketerror]]></dc:creator><pubDate>Wed, 31 Oct 2007 18:46:26 GMT</pubDate></item><item><title><![CDATA[Reply to Exception bei ServerSocket wird nicht abgefangen on Wed, 31 Oct 2007 19:06:36 GMT]]></title><description><![CDATA[<p>Cool geht</p>
<p>vielen Dank.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395533</guid><dc:creator><![CDATA[socketerror]]></dc:creator><pubDate>Wed, 31 Oct 2007 19:06:36 GMT</pubDate></item></channel></rss>