<?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[try~catch wird nicht ausgelöst?]]></title><description><![CDATA[<p>Hallo zusammen.</p>
<p>Ich habe um einen Code-Teil ein try-catch 'gelegt'.<br />
Trotzdem erhalte ich ständig eine Memory-Exception.</p>
<p>An was liegt das?</p>
<pre><code class="language-cpp">try{
                        cout &lt;&lt; WindowHandle &lt;&lt; endl;
                        WindowHandle = FindWindow(NULL, vData[DataIndex][Idx].c_str());
                        cout &lt;&lt; vData[DataIndex][Idx] &lt;&lt; &quot; - &quot; &lt;&lt; WindowHandle &lt;&lt; endl;
                        }
                        catch(...)
                        {
                            cout &lt;&lt; &quot;Whoops.. an exception caught.. something's wrong - don't worry!&quot; &lt;&lt; endl;
                        }
</code></pre>
<p>Gruess exc</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/273498/try-catch-wird-nicht-ausgelöst</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 05:12:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/273498.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Sep 2010 11:57:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to try~catch wird nicht ausgelöst? on Wed, 08 Sep 2010 11:57:04 GMT]]></title><description><![CDATA[<p>Hallo zusammen.</p>
<p>Ich habe um einen Code-Teil ein try-catch 'gelegt'.<br />
Trotzdem erhalte ich ständig eine Memory-Exception.</p>
<p>An was liegt das?</p>
<pre><code class="language-cpp">try{
                        cout &lt;&lt; WindowHandle &lt;&lt; endl;
                        WindowHandle = FindWindow(NULL, vData[DataIndex][Idx].c_str());
                        cout &lt;&lt; vData[DataIndex][Idx] &lt;&lt; &quot; - &quot; &lt;&lt; WindowHandle &lt;&lt; endl;
                        }
                        catch(...)
                        {
                            cout &lt;&lt; &quot;Whoops.. an exception caught.. something's wrong - don't worry!&quot; &lt;&lt; endl;
                        }
</code></pre>
<p>Gruess exc</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1949652</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1949652</guid><dc:creator><![CDATA[exc]]></dc:creator><pubDate>Wed, 08 Sep 2010 11:57:04 GMT</pubDate></item><item><title><![CDATA[Reply to try~catch wird nicht ausgelöst? on Wed, 08 Sep 2010 12:01:50 GMT]]></title><description><![CDATA[<p>Was da kommt sind Hardware-Exceptions, nicht C++-Exceptions, die kannst du nicht fangen. Du greifst auf Speicher, respektive vielleicht auch auf 0x00000000 zu, der deinem Programm aber nicht gehört. ---&gt; Debuggen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1949655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1949655</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Wed, 08 Sep 2010 12:01:50 GMT</pubDate></item><item><title><![CDATA[Reply to try~catch wird nicht ausgelöst? on Wed, 08 Sep 2010 12:02:21 GMT]]></title><description><![CDATA[<p>Bist du sicher, dass du eine Memory-Exception bekommst und nicht eher dein Programm abstürzt wegen Memory-Corruption? Was soll überhaupt eine Memory-Exception sein? Wie lautet der Name dieser Exception? Wie lautet die Beschreibung? Wo tritt sie auf? Was wird an der Stelle gemacht, wo sie auftritt? Was sind dort für Datentypen in Verwendung? usw. usf.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1949656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1949656</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Wed, 08 Sep 2010 12:02:21 GMT</pubDate></item><item><title><![CDATA[Reply to try~catch wird nicht ausgelöst? on Wed, 08 Sep 2010 13:08:25 GMT]]></title><description><![CDATA[<p>Hat sich erledigt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Hab den Fehler glücklicherweise doch noch gefunden.</p>
<p>Memory-Read exceptions kann man also nicht fangen?</p>
<p>grz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1949694</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1949694</guid><dc:creator><![CDATA[exc]]></dc:creator><pubDate>Wed, 08 Sep 2010 13:08:25 GMT</pubDate></item><item><title><![CDATA[Reply to try~catch wird nicht ausgelöst? on Wed, 08 Sep 2010 13:22:41 GMT]]></title><description><![CDATA[<p>exc schrieb:</p>
<blockquote>
<p>Memory-Read exceptions kann man also nicht fangen?</p>
</blockquote>
<p>Was den C++ Standard betrifft, gibt es keine &quot;Memory-Read exceptions&quot;. Wenn Dein Programm ungültige Zeiger dereferenziert, dann kann im Prinzip alles passieren und nichts wird garantiert (undefined behaviour). Vor allem muss keine Ausnahme im Sinne einer C++ Ausnahme fliegen, die man fangen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1949703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1949703</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Wed, 08 Sep 2010 13:22:41 GMT</pubDate></item></channel></rss>