diff --git a/Bin/net40/SunnyUI.Demo.exe b/Bin/net40/SunnyUI.Demo.exe index cd3f18f6..d4a97f5b 100644 Binary files a/Bin/net40/SunnyUI.Demo.exe and b/Bin/net40/SunnyUI.Demo.exe differ diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index fbdb9a4a..de69ba01 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index 6f175c66..d46051b3 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index 134b92b3..2e2717a2 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI/Static/UMessageTip.cs b/SunnyUI/Static/UMessageTip.cs index b6bf77ad..ccb11855 100644 --- a/SunnyUI/Static/UMessageTip.cs +++ b/SunnyUI/Static/UMessageTip.cs @@ -1004,8 +1004,13 @@ namespace Sunny.UI { if (_hInstance == IntPtr.Zero) { - _hInstance = Marshal.GetHINSTANCE(Assembly.GetEntryAssembly()?.ManifestModule); + Assembly assembly = Assembly.GetEntryAssembly(); + if (assembly != null) + { + _hInstance = Marshal.GetHINSTANCE(assembly.ManifestModule); + } } + return _hInstance; } }