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.
Regards,
Todor
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.
Regards,
Todor