<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>Using Interface leads to hard fault</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/32064/using-interface-leads-to-hard-fault</link><description> 
Hello Forums, 

 
i&amp;#180;m starting to interfaces in C++ on a stm32f3 under
&amp;#181;Vision4. 
To start of i created an interface as simple as possible 

 
#ifndef _ICNLSUPPL_H_
#define _ICNLSUPPL_H_

class IChnlSupplyerr
{
 public:
 IChnlSupplyerr(){};
 ~IChnlSupplyerr</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Using Interface leads to hard fault</title><link>https://community.arm.com/thread/81435?ContentTypeID=1</link><pubDate>Sun, 15 Sep 2013 08:14:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:03044cff-4833-4dcb-8bdc-f0dea8e559c8</guid><dc:creator>PinkyAndBrain JFK</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hm...&lt;br /&gt;
It works if i instatiate an Objekt of the Chnl class at the top of
the .cpp file instead of instantiating it in the .h file.&lt;br /&gt;
Sadly from my studys i don&amp;acute;t have an &amp;quot;in depth&amp;quot; view to
compilers to figure out what the difference is...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Interface leads to hard fault</title><link>https://community.arm.com/thread/68361?ContentTypeID=1</link><pubDate>Sun, 15 Sep 2013 07:24:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e2d6cca9-4b03-477b-bd7a-b0ea64e872fe</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Memory overwrite?&lt;/p&gt;

&lt;p&gt;
Stack overflow?&lt;/p&gt;

&lt;p&gt;
Have you tried to trace what happens to the pointers to your
objects as you single-step the program - when does the &amp;#39;this&amp;#39; pointer
get corrupted?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>