<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Where does the system go after an out of range C++ exception?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60211/where-does-the-system-go-after-an-out-of-range-c-exception</link><description>I&amp;#39;m trying to capture events like accessing an invalid idx of a C++ vector 
 
 I&amp;#39;m using the method at , like this: 
 
 std::vector&amp;lt;int&amp;gt; my_array; 
 my_array.at(10000); 
 
 I can see with the debugger that the code throws an out of range exception and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2020 11:07:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60211/where-does-the-system-go-after-an-out-of-range-c-exception" /><item><title>RE: Where does the system go after an out of range C++ exception?</title><link>https://devzone.nordicsemi.com/thread/244953?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 11:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e5e223-265e-4713-b27a-89b999503c7b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe this depends on the implementation of the exception handlers in the compiler. My guess would be that you end up in the Hardfault-handler, but I do not know.&lt;/p&gt;
&lt;p&gt;Maybe you can post this question in a forum for the compiler you use, or check with ARM?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>