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

拖拽窗口大小报错 System.DllNotFoundException: Unable to load DLL 'shcore.dll' or one of its dependencies: 找不到指定的模块。 (0x8007007E) #198

Closed
fireattack opened this issue Jan 6, 2022 · 4 comments
Labels
Bug Something isn't working

Comments

@fireattack
Copy link

fireattack commented Jan 6, 2022

OS: Win7
Version: 3.9.0.0

[2022-01-06 02:36:13] [Information] [21359933] 开始录制
[2022-01-06 02:36:14] [Information] [21359933] 正在连接弹幕服务器 wss://tx-live-dmcmt-sv-01.chat.bilibili.com:443/sub
[2022-01-06 02:36:14] [Information] [21359933] 连接弹幕服务器成功
[2022-01-06 02:36:14] [Information] [21359933] 进房成功
[2022-01-06 08:54:58] [Fatal] 未捕获异常
System.DllNotFoundException: Unable to load DLL 'shcore.dll' or one of its dependencies: 找不到指定的模块。 (0x8007007E)
   at SourceChord.FluentWPF.AcrylicWindow.GetDpiForMonitor(IntPtr hMonitor, MONITOR_DPI_TYPE dpiType, UInt32& dpiX, UInt32& dpiY)
   at SourceChord.FluentWPF.AcrylicWindow.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

@fireattack fireattack changed the title System.DllNotFoundException: Unable to load DLL 'shcore.dll' or one of its dependencies: 找不到指定的模块。 (0x8007007E) 拖拽窗口大小报错 System.DllNotFoundException: Unable to load DLL 'shcore.dll' or one of its dependencies: 找不到指定的模块。 (0x8007007E) Jan 6, 2022
@fireattack
Copy link
Author

v3.8.2 无此问题

@HMBSbige
Copy link
Owner

HMBSbige commented Jan 6, 2022

仔细看了下报错,应该是 win7 系统没 shcore.dll 导致的,等上游修复

sourcechord/FluentWPF#157

@HMBSbige HMBSbige added the Bug Something isn't working label Jan 6, 2022
@fireattack
Copy link
Author

fireattack commented Jan 6, 2022

稳定复现,应该是win7的问题。

搜了下似乎win7根本没有这个dll,然后.net 6版的FluentWPF的GetDpiForMonitor会调用到他(旧版本不会)。

sourcechord/FluentWPF#157

理论上等这个PR被merge之后升级下FluentWPF就会自动修复: sourcechord/FluentWPF#158
值不值得修就看你了,毕竟也没几个人用win7了估计……

辛苦!

@HMBSbige
Copy link
Owner

HMBSbige commented Jan 6, 2022

不过这种确实不是很重要,之后 UI 应该是要重写的(win7应该是不再支持了)

@HMBSbige HMBSbige closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants