Hanging process when run with .NET Process.Start — what's wrong?

后端 未结 5 1038
粉色の甜心
粉色の甜心 2020-12-03 01:25

I wrote a quick and dirty wrapper around svn.exe to retrieve some content and do something with it, but for certain inputs it occasionally and reproducibly hangs and won\'t

5条回答
  •  抹茶落季
    2020-12-03 01:35

    One standard issue: the process could be waiting for you to read its output. Create a separate thread to read from its standard output while you're waiting for it to exit. It's a bit of a pain, but that may well be the problem.

提交回复
热议问题