The CTRL-C handling mechanism differs in targeted OS. First of all, some OS need to reset it every time after the SIGINT (CTRL-C) happened. Besides, the set handler service is named in different way for targeted OS. Our assumption is that the generated code without debugger (PDB)option, does not handle CTRL-C since the OS takes care about it. But sometimes this is not correct. In this case, add CTRL-C handling mechanism to the <main> function.