问题描述
hi ..
我有一个非常简单的问题需要注意.我有2个.net项目pro1,pro2.现在在pro1中,我有一个菜单"connect",我想在其中执行pro2的输出,然后选择pro2.exe并将其粘贴到pro1文件夹中,然后从pro1中添加引用,然后按Process.Start("Pro2.exe")
调用.exe.现在,在调试pro1时,它运行良好.但是它只运行1次,其他任何时间则显示win32异常.或者,如果有任何状态更改(例如,如果我在任何状态更改的编辑器中打开文件),则其给出异常.可能出什么问题了?
hi..
I have a very simple problem tht needs attention. I have 2 .net projects pro1, pro2. Now in pro1 I have a menu "connect" where I wish to execute the output of pro2 and I choose the pro2.exe and paste it in the pro1 folder and from pro1 i add reference and I call the .exe by Process.Start("Pro2.exe")
. Now its running fine when pro1 is debugged. BUT it only runs for 1 time and for any other time it shows an win32 exception. Or if there is any state change(like if I open a file in the editor of any state change) then its giving exceptions. What may go wrong?
推荐答案
这篇关于c#.net + .exe通过进程功能集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!