Initialization of TMC-member variables
All member variables of a TcCOM module must be initialized. The TMC Code Generator supports this with:
///<AutoGeneratedContent id="MemberInitialization">
The TMC Code Generator replaces this with:
///<AutoGeneratedContent id="MemberInitialization">
m_TraceLevelMax = tlAlways;
memset(&m_Parameter, 0, sizeof(m_Parameter));
memset(&m_Inputs, 0, sizeof(m_Inputs));
memset(&m_Outputs, 0, sizeof(m_Outputs));
///</AutoGeneratedContent>
The projects generated with the TwinCAT C++ Wizard prior to TwinCAT 3.1 Build 4018 do not use this property, but can easily be adapted by inserting this line in the corresponding code (e.g. Constructor):
///<AutoGeneratedContent id="MemberInitialization">