-
Notifications
You must be signed in to change notification settings - Fork 182
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
On my windows, sometimes it show error: Cannot change thread mode after it is set #332
Comments
it is easy to appear after calling multiple times
|
@longit123 does this only happen when calling the |
I am using wails + front-end development. Wails will monitor file updates during development and then perform hot updates. When I did not use ghw before, this problem did not occur. After using ghw, this problem will appear. After I Googled it, it may be due to the use of wails webview2, caused by hot update, I don't know how to solve this problem |
|
Please see this related thread in another project that uses WMI/go-ole: |
I think I solved this by calling hardwareID functions inside a goroutine that I lock on thread (runtime.LockOSThread) |
ghw version: v0.10.0
GPU: RTX3070
Win10: 21H2 19044.1889
Go version: 1.19.6
The text was updated successfully, but these errors were encountered: