https://bugs.winehq.org/show_bug.cgi?id=49634
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|.NET Framework exe crashes |VersionCheckerPlus (.NET |on DllImport on Wine 5.13, |4.0 app) crashes with |works on 5.0.1 |'NorthwoodLib.OperatingSyst | |em threw an exception. | |Could not load type | |System.Runtime.InteropServi | |ces.OSPlatform' since Wine | |5.12 Version|5.13 |5.12 Regression SHA1| |8a169390c9ef4d8a43b604558c4 | |194a052473c0c Keywords| |dotnet, regression CC| |focht@gmx.net Severity|major |normal Component|-unknown |ntdll
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
filling some fields.
The regression was introduced by commit https://source.winehq.org/git/wine.git/commitdiff/8a169390c9ef4d8a43b604558c... ("ntdll: Build with msvcrt.").
Tested with example app from attachment.
--- snip --- $ wine --version wine-5.11-235-g8a169390c9e
$ wine ./VersionTesterPlus.exe ... 0024:err:eventlog:ReportEventW L"Application: VersionTesterPlus.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.TypeInitializationException\nStack:\n at VersionTester.Program.Main(System.String[])\n" 0024:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Unhandled Exception: System.TypeInitializationException: The type initializer for 'NorthwoodLib.OperatingSystem' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.InteropServices.OSPlatform' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at NorthwoodLib.OperatingSystem..cctor() --- End of inner exception stack trace --- at VersionTester.Program.Main(String[] args) wine: Unhandled exception 0xe0434352 in thread 24 at address 7B00E9E1 (thread 0024), starting debugger... --- snip ---
Regards