Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microstation 中实现非阻塞进度条 | 星辰大海 #157

Open
uyoufu opened this issue Mar 8, 2024 · 0 comments
Open

Microstation 中实现非阻塞进度条 | 星辰大海 #157

uyoufu opened this issue Mar 8, 2024 · 0 comments

Comments

@uyoufu
Copy link
Owner

uyoufu commented Mar 8, 2024

https://galens.uamazing.cn/posts/2024/2MEYC7T.html?#more

在进行 Microstation
二开时,若在代码执行耗时任务,则可能会导致界面出现假死的情况,此时窗体无法拖动、进度条也无法更新。
由于 Microstation
的非线程安全问题,代码必须在主线程上执行,但进度条位于主线程上,因此进度必定会卡死,这是一个矛盾的问题。
有两种方法来解决这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant