.NET Runtime Error 80131506 - Passing Lambda to Native Function
问题 So I'm getting this error that looks as though it's a corrupted garbage collection: Application Crashes With "Internal Error In The .NET Runtime" The full error is: The process was terminated due to an internal error in the .NET Runtime at IP 71C571C8 (71B20000) with exit code 80131506. It's running on: Framework Version: v4.0.30319 This occurs inconsistently when running this function repeatedly: public static int GetMdiTitledChildWindows(IntPtr parentWindow) { IntPtr mdiClient =