Console application not closing

后端 未结 5 1378
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 06:38

I\'m developing a console application that is supposed to run under WinCE 6.0 and WinCE 7.0. I\'m using C#, Compact Fra

5条回答
  •  -上瘾入骨i
    2021-02-07 07:03

    I had exactly the same problem. Running console app on Beckhoff PLC which never closed.

    Instead of creating Console app I created Windows App. My code stayed the same as for console app. I just commented out:

    // Application.Run(new Form1());
    

    Seems now codes run without opening a form.

提交回复
热议问题