codingadventures / LINQBridgeVs

Dumps the content of variables during debugging in Visual Studio to LINQPad
MIT License
127 stars 21 forks source link

InvalidOperationException: No process is associated with this object. #55

Closed sentry-io[bot] closed 5 years ago

sentry-io[bot] commented 5 years ago

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 5 years ago

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 5 years ago

fixed in the next release