<?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[WArum gibts keine Standard Acces Violation Exception]]></title><description><![CDATA[<p>kann mir jemand sagen warum es im C++ Standard keine Exception Klasse<br />
für eine Acces Violation gibt?<br />
denn dies ist nach meine Erfahrungen die häufigste Exception.</p>
<p>Mff Shade37337</p>
<p>//EDIT: Titel geändert</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148546/warum-gibts-keine-standard-acces-violation-exception</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 21:48:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148546.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 May 2006 21:20:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WArum gibts keine Standard Acces Violation Exception on Sat, 27 May 2006 21:23:28 GMT]]></title><description><![CDATA[<p>kann mir jemand sagen warum es im C++ Standard keine Exception Klasse<br />
für eine Acces Violation gibt?<br />
denn dies ist nach meine Erfahrungen die häufigste Exception.</p>
<p>Mff Shade37337</p>
<p>//EDIT: Titel geändert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066421</guid><dc:creator><![CDATA[branleb]]></dc:creator><pubDate>Sat, 27 May 2006 21:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to WArum gibts keine Standard Acces Violation Exception on Sat, 27 May 2006 21:23:28 GMT]]></title><description><![CDATA[<p>Eine Access-Violation stellt das Betriebssystem fest, nicht die C++-Laufzeitumgebung. Daher könnte eine solche Exception einfach nicht geworfen werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066424</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066424</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Sat, 27 May 2006 21:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to WArum gibts keine Standard Acces Violation Exception on Sat, 27 May 2006 21:50:41 GMT]]></title><description><![CDATA[<p>Meistens wird es ein Zugriff auf Adress Null sein, oder? Was spricht also dagegen, den Pointer vorher auf null abzufragen? Dann ist schon mal eine Exception weniger wahrscheinlich und diese Exception die du vermisst, ist garnicht mehr nötig. Aber du kannst ja selber eine werfen, falls du das brauchst:</p>
<pre><code class="language-cpp">void foo(MyClass *p)
{
    if(p == NULL)
       throw std::runtime_error(&quot;p ist null.&quot;);
       // vielleicht wäre std::invalid_argument auch nicht falsch?
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1066429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066429</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sat, 27 May 2006 21:50:41 GMT</pubDate></item></channel></rss>