Fix process detection bugs and resource leaks in AppApiElectron (GameHandler.cs) #255

Closed
opened 2026-04-05 16:17:03 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Rokawoo on 10/21/2025

AppApiElectron.cs changes:

Bugs:

  • Fix VRChat detection by removing .exe from process name
  • Fix StartGame ExitCode check that threw InvalidOperationException on running process
    • (can't check ExitCode on running process)

Performance:

  • Use GetProcessesByName() to avoid scanning all processes
  • Optimize IsSteamVRRunning to check exact matches first

Resource management:

  • Add Process.Dispose() calls to prevent handle leaks
  • Standardize on Dispose() instead of Close()
*Originally created by @Rokawoo on 10/21/2025* **AppApiElectron.cs** changes: Bugs: * Fix VRChat detection by removing .exe from process name * Fix StartGame ExitCode check that threw InvalidOperationException on running process - (can't check ExitCode on running process) Performance: * Use GetProcessesByName() to avoid scanning all processes * Optimize IsSteamVRRunning to check exact matches first Resource management: * Add Process.Dispose() calls to prevent handle leaks * Standardize on Dispose() instead of Close()
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/VRCX#255