For optimize reason, this code and all others codes which controls the same problems ( out of range ) return an exception only in a Debug context. If you want to activate it, do not use the: -DNo_Exception option in the .comp files
...or with WOK product 2 solutions: - if you want use an optimize version, modify the CMPLRS.edl file in lib directory of WOK:
subsitute @set %CMPLRS_CXX_ModeOpt = "-O2 -DNo_Exception +w "; by @set %CMPLRS_CXX_ModeOpt = "-O2 +w ";
- activate the Debug profile with : wokprofile -d