Console.CancelKeyPress not fired when REngine instance is initialized

Sep 14, 2016 at 5:41 PM
Edited Sep 14, 2016 at 5:42 PM
Hi Guys,

Can you advise how to understand when Ctrl-C is pressed if REngine instance is initialized?

If no REngine instance is initialized then Console.CancelKeyPress is fired and we can perform whatever is needed to terminate the job, but not if REngine is initialized.
In my particular case REngine is used from a windows service using Topshelf. It calls OnStop(...) if Ctrl-C is pressed. However if we use RDotNet this does not happen because this interruption cannot be detected.

I guess there is something in the C/CPP code causing this effect. I will greatly appreciate if someone already has info about this.