using System; using System.Runtime.InteropServices; class DisplayFusionFunction { // Import the VoicemeeterRemote64.dll functions [DllImport("C:\\Program Files (x86)\\VB\\Voicemeeter\\VoicemeeterRemote64.dll")] public static extern int VBVMR_Login(); [DllImport("C:\\Program Files (x86)\\VB\\Voicemeeter\\VoicemeeterRemote64.dll")] public static extern int VBVMR_Logout(); [DllImport("C:\\Program Files (x86)\\VB\\Voicemeeter\\VoicemeeterRemote64.dll")] public static extern int VBVMR_SetParameterFloat(string szParamName, float value); public static void Run() { VBVMR_Login(); VBVMR_SetParameterFloat("Bus[0].mode.TVMix", 1.0f); // Bus A1 BFS.General.ThreadWait(1000); // Must sleep before logout otherwise the change is intermittent. VBVMR_Logout(); } }
https://www.hresult.info/
Application: DisplayFusion.exe CoreCLR Version: 8.0.123.58001 .NET Version: 8.0.1 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Stack: at DisplayFusionFunction.VBVMR_SetParameterFloat(System.String, Single) at DisplayFusionFunction.VBVMR_SetParameterFloat(System.String, Single) at DisplayFusionFunction.Run() at DynamicClass.InvokeStub_DisplayFusionFunction.Run(System.Object, System.Object, IntPtr*) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(System.Object, System.Reflection.BindingFlags) at WbhP.DbhC.Run(jb4x, System.Type, System.Object, System.String, O2EW.p2E9, System.Object ByRef) at abwI.ybwL.RunCodeTHREAD(D27z.q27j, jb4x, WbhP.DbhC, System.Type, System.Object, System.String, kb4T, MTo3) at abwI.ybwL+<>c__DisplayClass0_0.<RunFunction>b__0() at CxON.JxOq+<>c__DisplayClass28_0.<.ctor>b__1() at System.Runtime.ControlledExecution.Run(System.Action, System.Threading.CancellationToken) at CxON.JxOq+<>c__DisplayClass28_0.<.ctor>b__0() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
Faulting application name: DisplayFusion.exe, version: 10.99.99.102, time stamp: 0x65680000 Faulting module name: coreclr.dll, version: 8.0.123.58001, time stamp: 0x65684720 Exception code: 0xc0000005 Fault offset: 0x00000000001bf0cc Faulting process ID: 0x0xF24 Faulting application start time: 0x0x1DA46DC2A59D116 Faulting application path: C:\Program Files\DisplayFusion\DisplayFusion.exe Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.1\coreclr.dll Report ID: 69e5face-f2e2-4b04-8bed-24c5693620da Faulting package full name: Faulting package-relative application ID: