You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.OverflowException
HResult=0x80131516
Message=Arithmetic operation resulted in an overflow.
Source=System.Private.CoreLib
StackTrace:
at System.IntPtr.ToInt32()
at WinUI3_DirectShow_Capture.MainWindow.d__132.MoveNext() in C:\Workbench\WinUI3_DirectShow_Capture-master\MainWindow.xaml.cs:line 309
The text was updated successfully, but these errors were encountered:
You probably run the app in 64 bit mode.
The problem occures, when copying the DIB to the byte array.
Marshal.Copy(new IntPtr(pDIB.ToInt32() + 40), pManagedArray, 0, nSize);
Use instead:
Marshal.Copy(new IntPtr(pDIB.ToInt64() + 40), pManagedArray, 0, nSize);
System.OverflowException
HResult=0x80131516
Message=Arithmetic operation resulted in an overflow.
Source=System.Private.CoreLib
StackTrace:
at System.IntPtr.ToInt32()
at WinUI3_DirectShow_Capture.MainWindow.d__132.MoveNext() in C:\Workbench\WinUI3_DirectShow_Capture-master\MainWindow.xaml.cs:line 309
The text was updated successfully, but these errors were encountered: