C#: RunWorkerAsync() doesn't trigger DoWork()

前端 未结 4 1371
春和景丽
春和景丽 2021-01-21 03:28

I am writing a small forms based application to connect to an LDAP server, and I wanted the \"connect\" button to work in the background. So I was following the information and

4条回答
  •  耶瑟儿~
    2021-01-21 04:13

    RunWorkerAsync() starts the worker thread and immediately returns thus the debugger seems to "step through it". Set a breakpoint in the worker_DoWork() method.

提交回复
热议问题