Programatically sending Ctrl-C to a COM server
1 次查看(过去 30 天)
显示 更早的评论
I have a function, called from C#/.NET which can take an unacceptable amount of time to complete (more than 1 hour). I would like to interrupt MATLAB in situations like this, and it was suggested that I use GenerateConsoleCtrlEvent to accomplish this (documented here ). That function is in C++, but I've written a simple wrapper around a DLL that calls it successfully from within C#, but there's a problem. I don't have a good way of getting or setting the process group for the COM server at creation, which, as far as I can tell is the only way of accomplishing it. The process group itself isn't particularly well documented. Any suggestions?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!