“Not Responding” in window title when running in new process

前端 未结 8 1261
清酒与你
清酒与你 2021-02-07 14:39

I have a long running method that must run on UI thread. (Devex - gridView.CopyToClipboard())

I do not need the UI to be responsive while c

8条回答
  •  时光说笑
    2021-02-07 15:07

    The timeout, documented in IsHungAppWindow, cannot be changed. Don't use global state to manage a local problem.

    You have to optimize the part that causes unresponsiveness. For example use caching, virtual grid (DevExpress calls it "server mode"), paging, delegate the sorting to an ibindinglistview filter that does a database query (uses database index) instead of in-memory sorting (no indexing) or implement IAsyncOperation on your clipboard data so you would only need to populate the data when the user does a paste.

提交回复
热议问题