C++-samples | Sample23: Structured Exception Handling (SEH) 2. If you want to run the project on Windows or TwinCAT/BSD ® (not required for Beckhoff RT Linux ® ): Configure signing for this project by right-clicking on the project on the page, selecting Project -> Properties -> TC Sign , enabling TwinCAT signing, and configuring your certificate and password if necessary. Further information on signing C++ projects can be found in the chapter TwinCAT [ } 21] . 3. Select your target system. 4. Build the sample (e.g. Build->Build Solution ). р The sample is ready for operation. 5. Activate the configuration by clicking .
Description The sample contains five variants that demonstrate the use of SEH in TwinCAT C++: 1. Exception in the case of a NULL-pointer access 2. Exception in the case of a NULL-pointer access with a filter 3. Exception with Finally 4. A customer-specific structured exception 5. Exception with Continue block All of these variants can be selected via a drop-down box at the instance of the C++: After selecting a variant you can also write the value at runtime by right-clicking on the first column: All variants write trace messages to illustrate the behavior, so that messages appear in TwinCAT Engineering: TwinCAT 3 294 Version: 1.19.1