开发者

C# Launcher program(ConsoleApp) that launches other executables

开发者 https://www.devze.com 2022-12-30 09:07 出处:网络
I\'ve written a launcher program that fires off a given number of executables, with the following code:

I've written a launcher program that fires off a given number of executables, with the following code:

Process.Start(strPath2EXE);

The problem I'm running into is it seems I'm being limited to launching only about four copies开发者_如何学JAVA of the executable. Is there a different way I can launch the executables without this limit? I'm hoping to run 10+ concurrently.

Here is the error from the event log: EventType clr20r3, P1 launcher.exe, P2 1.0.0.0, P3 4bec3901, P4 system, P5 2.0.0.0, P6 4889de7a, P7 39f5, P8 288, P9 system.componentmodel.win32, P10 NIL.


This is not related to the virtual "limit" you imagine. There is no such thing. You can start as many processes as you want.

That's not much to go with. Debug the app and provide a callstack. I suspect some of the executables require elevation, and your launcher is not elevated. Thus perhaps a security exception.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号