<?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   Callstack]]></title><description><![CDATA[<p>Hallo,<br />
mein Programm stürzt leider mit einer mir unbekannten Exception ab.<br />
Catch ( ... ) im main fängt alles auf.<br />
Ich muss natürlich wissen, wo der Absturz erfolgte.<br />
Brauche Tipps.<br />
Verwende MSVC9 unter XPSP3<br />
danke<br />
Troll.Soft</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/270623/exception-callstack</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 00:08:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/270623.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jul 2010 12:58:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 12:58:14 GMT]]></title><description><![CDATA[<p>Hallo,<br />
mein Programm stürzt leider mit einer mir unbekannten Exception ab.<br />
Catch ( ... ) im main fängt alles auf.<br />
Ich muss natürlich wissen, wo der Absturz erfolgte.<br />
Brauche Tipps.<br />
Verwende MSVC9 unter XPSP3<br />
danke<br />
Troll.Soft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926671</guid><dc:creator><![CDATA[Troll.Soft]]></dc:creator><pubDate>Thu, 15 Jul 2010 12:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 13:01:46 GMT]]></title><description><![CDATA[<p>Troll.Soft schrieb:</p>
<blockquote>
<p>Brauche Tipps.</p>
</blockquote>
<p>Du hast einen Bug?</p>
<p>Benutze einen Debugger! MSVC sollte bereits einen eingebaut haben.</p>
<p>Damit sollte sich die Fehlerstelle leicht finden lassen. Und mit etwas Geschick auch die Ursache.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926672</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 15 Jul 2010 13:01:46 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 13:04:45 GMT]]></title><description><![CDATA[<p>Wie waere es damit: catch(...) weglassen und schauen, was die Exception sagt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926674</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Thu, 15 Jul 2010 13:04:45 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 14:42:30 GMT]]></title><description><![CDATA[<p>knivil schrieb:</p>
<blockquote>
<p>Wie waere es damit: catch(...) weglassen und schauen, was die Exception sagt?</p>
</blockquote>
<p>Der Debugger ist in diesem Fall sehr schweigsam und sagt nur:</p>
<blockquote>
<p>Eine Ausnahme (erste Chance) bei 0x6517e0fa in main_sql.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0xfeeefef2.<br />
Unbehandelte Ausnahme bei 0x6517e0fa in main_sql.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0xfeeefef2.</p>
</blockquote>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Du hast einen Bug?<br />
Benutze einen Debugger! MSVC sollte bereits einen eingebaut haben.<br />
Damit sollte sich die Fehlerstelle leicht finden lassen. Und mit etwas Geschick auch die Ursache.</p>
</blockquote>
<p>Das ist die übliche Methode, leider in diesem Fall nicht erfolgreich.</p>
<pre><code>void func()
{
  try {
   AbsturzCode  !!!  hier Absturz   !!!
  }
  catch ( ... )  {
    wird nicht aufgefangen  !!!
   }
}

main()
  try {
   func();
  }
  catch ( ... )  {
    wird hier aufgefangen
   }
</code></pre>
<p>Der Absturz erfolgt in func() innerhalb von try catch() herausgefunden mit der uralten Methode &quot;auskommentieren&quot;<br />
Also alles etwas seltsam<br />
tschüß<br />
Troll.Soft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926742</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926742</guid><dc:creator><![CDATA[Troll.Soft]]></dc:creator><pubDate>Thu, 15 Jul 2010 14:42:30 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 14:58:56 GMT]]></title><description><![CDATA[<p>Das wird ne SEH-Exception sein.</p>
<p>Du liest von Speicher, der dir nicht gehört, der Adresse nach zu urteilen vermutlich knapp hinter dem Ende des Stacks. Wild ins Blaue geraten sieht mir das so aus, als behandeltest du ein Array als länger, als es wirklich ist. Möglicherweise off-by-one.</p>
<p>Ohne Code und Kristallkugel kann ich dir mehr aber auch nicht sagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926756</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926756</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Thu, 15 Jul 2010 14:58:56 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 15:16:26 GMT]]></title><description><![CDATA[<p>seldon schrieb:</p>
<blockquote>
<p>Du liest von Speicher, der dir nicht gehört</p>
</blockquote>
<p>Ja, z.B. indem ich Speicher freigebe und später doch noch nutze. Finde die Stelle bloß nicht. Das Schweinderl stürzt nicht an der Fehlerstelle ab.<br />
Gibt es einen Trick, an der Stelle, an der die Exception erfolgreich aufgefangen wird, herauszubekommen, wo die Exception ausgelöst wurde?</p>
<p>tschüß<br />
Troll.Soft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926768</guid><dc:creator><![CDATA[Troll.Soft]]></dc:creator><pubDate>Thu, 15 Jul 2010 15:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 15:24:47 GMT]]></title><description><![CDATA[<p>Wenn du den VC-Compiler nimmst: der dort eingebaute Debugger hat unter den vielsagenden Menüpunkt Debugger Ausnahmen / Exceptions. Wenn du deine Anwendung im Debugger startest beziehungsweise dich an die App attachest, kannst du dort deine zuvor gesehene Exception auswählen und einen Break des Debuggers erzwingen. Nun schaust du dir unter Aufrufliste / Callstack an, wo das knallt.</p>
<p>Gruß Kimmi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926774</guid><dc:creator><![CDATA[kimmi]]></dc:creator><pubDate>Thu, 15 Jul 2010 15:24:47 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 16:06:47 GMT]]></title><description><![CDATA[<p>Hm, war wohl etwas zu verärgert. Der Debugger zeigt an, das der Fehler innerhalb einer anderen Bibliothek liegt. Aber es wird wohl so sein, das er dort erst wirksam wird. Muß weiter suchen.<br />
tschüß<br />
Troll.Soft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926797</guid><dc:creator><![CDATA[Troll.Soft]]></dc:creator><pubDate>Thu, 15 Jul 2010 16:06:47 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 16:09:12 GMT]]></title><description><![CDATA[<p>Troll.Soft schrieb:</p>
<blockquote>
<p>Hm, war wohl etwas zu verärgert. Der Debugger zeigt an, das der Fehler innerhalb einer anderen Bibliothek liegt. Aber es wird wohl so sein, das er dort erst wirksam wird. Muß weiter suchen.<br />
tschüß<br />
Troll.Soft</p>
</blockquote>
<p>Das ist oftmals so. Der Debugger zeigt dir aber auch, wo die andere Bibliothek von dir aufgerufen wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926800</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 15 Jul 2010 16:09:12 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Thu, 15 Jul 2010 16:47:52 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Das ist oftmals so.</p>
</blockquote>
<p>danke, hast ja recht</p>
<p>SeppJ schrieb:</p>
<blockquote>
<p>Der Debugger zeigt dir aber auch, wo die andere Bibliothek von dir aufgerufen wird.</p>
</blockquote>
<p>stimmt, nützt bloß nichts. Wird von meinem Main aufgerufen und ist ein Gui-Thread.</p>
<p>Geh nun ein Bierchen holen und gebe mir noch eine Chance (eine Idee ist noch da).<br />
Wenn das nicht klappt, ist der große Hammer fällig.</p>
<p>tschüß<br />
Troll.Soft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1926815</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1926815</guid><dc:creator><![CDATA[Troll.Soft]]></dc:creator><pubDate>Thu, 15 Jul 2010 16:47:52 GMT</pubDate></item><item><title><![CDATA[Reply to Exception   Callstack on Fri, 16 Jul 2010 18:38:10 GMT]]></title><description><![CDATA[<p>So,<br />
bin den ganzen Code durchgegangen, einige Asserts eingefügt, einiges vorteilhafter geschrieben und er stürzt nicht gleich ab. Leider nur, weil der entsprechende Code nun nicht mehr durchlaufen werden muß.<br />
tschüß<br />
Troll.Soft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1927396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927396</guid><dc:creator><![CDATA[Troll.Soft]]></dc:creator><pubDate>Fri, 16 Jul 2010 18:38:10 GMT</pubDate></item></channel></rss>