question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After call to REngine.GetInstance, app's own Ctrl+C handler no longer works

See original GitHub issue

I’m using .NET Core - as stated, after I’ve called GetInstance, my Ctrl+C handler (added via Console.CancelKeyPress += ... is no longer called when I hit Ctrl+C

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lrasmuscommented, Aug 5, 2019

@kierenj - sorry for not closing the loop on this before. Yes, I think it would mean a custom build of R. I’ve been trying to actually do this to verify it’ll solve the problem, but have just had some problems getting R to build in my environment. I’m not sure if you had progressed with this, but curious to know where you stand with this issue.

1reaction
kierenjcommented, Jun 20, 2019

No problem:

https://github.com/kierenj/rdotnet-ctrl-c-repro

master branch ignores the CancelKeyPressHandler working branch works fine - because the call to REngine.GetInstance is commented out

Let me know if I can assist/help any further

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't get REngine instance from R.NET
I encountered the same problem. Calling REngine.GetInstance() makes the entire process exit silently with code 2.
Read more >
Rdotnet application crash when GetFunction< ...
I adapted a simple C program from the main R code base that sets up and calls setup_Rmainloop . This works - it...
Read more >
What is missing from MATLAB #2 - the next decade edition
When typing code, if user wants to reference a variable or a function, one could click tab and get a matching list of...
Read more >
Native Reference Guide
A working container runtime (Docker, podman). This guide builds and executes Quarkus native executables within a Linux environment. To offer a homogeneous ...
Read more >
https://raw.githubusercontent.com/dotnet/samples/m...
XDocument) - Adding some tests for XDocument (more coming later) 94 area-Meta Necessary ... NET library as part of their own applications, performance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found