【发布时间】:2012-07-12 05:31:35
【问题描述】:
我对 Visual Studio 2010 的调试和发布构建运行的区别有疑问。我有一个解决方案,它有两个项目 A 和 B。A 依赖于 B,并通过进程间通信 IPC 调用 B 的方法。
以下是场景:
CASE A:
Run B only
- Stops the window when you click the STOP button on both on Debug and Release
CASE B:
Multi Startup Run Both A and B (Both action are set to "Start"):
- Irregardless of the order of run,
On Release run, A is STOP but B is not stopped
On Debug run, B and A are both stopped
我想知道在调试和发布版本的 Visual Studio 上运行多重启动时有什么区别。我能想到的奇怪的事情是 B 在启动时注册了一个 IPCServiceChannel。但是为什么问题是B在我自己运行时可以正常停止。
IpcServerChannel serverChannel = new IpcServerChannel("ProcessName");
ChannelServices.RegisterChannel(serverChannel, true);
有什么建议可以解决这个问题吗?
【问题讨论】:
标签: c# visual-studio-2010 ipc