InvalidOperationException: No process is associated with this object.
sentry-io opened this issue · 2 comments
sentry-io commented
Synchronization issue between the debugger and linqpad during event dispatch
Sentry Issue: LINQBRIDGEVS-8
InvalidOperationException: No process is associated with this object.
Module "BridgeVs.DynamicVisualizers.DynamicDebuggerVisualizer", line 50, in SendInputToProcess
Void SendInputToProcess(System.Diagnostics.Process)
Error while sending inputs to linqpad
codingadventures commented
code to fix:
csharp var linqpad = TopLevelWindowUtils.FindWindow(wh => wh.GetWindowText().Contains("LINQPad")); var intPtr = linqpad.RawPtr; ShowWindowAsync(intPtr, 1); SetForegroundWindow(intPtr); PostMessage(intPtr, WmKeydown, VkF5, 0); Console.ReadLine();
codingadventures commented
fixed in the next release