# C++ Constructor not executed on 9p9215

**URL:** <https://forums.digi.com/t/c-constructor-not-executed-on-9p9215/22433>\
**Category:** NET+OS\
**Tags:** esp, not, executed, 5, 7\
**Created:** [May 24, 2021, 9:02am UTC](https://forums.digi.com/t/c-constructor-not-executed-on-9p9215/22433 "2021-05-24T09:02:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjwilde](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@cjwilde](https://forums.digi.com/u/cjwilde)\
**Post date:** [May 24, 2021, 9:02am UTC](https://forums.digi.com/t/c-constructor-not-executed-on-9p9215/22433/1 "2021-05-24T09:02:51Z")

</div>

I have ported C++ code from the 7520 to the 9215. The class constructor code is not being executed, so I have to add kludges to set variables after main() has been entered. I am using ESP 7.5.

Question 1: If I set a breakpoint in a constructor, will the code halt if the line is executed?  
Question 2: Is there a setting I need to change or some change needed in NCC\_INIT.c to make sure the class constructors are executed?
