Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ComponentModel.Win32Exception when minimized #79

Open
IncPlusPlus opened this issue Sep 12, 2021 · 3 comments
Open

System.ComponentModel.Win32Exception when minimized #79

IncPlusPlus opened this issue Sep 12, 2021 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@IncPlusPlus
Copy link
Owner

Apparently this will throw exceptions when the console window is minimized. No clue why. Here's what gets spammed.

System.ComponentModel.Win32Exception (5): Access is denied.
   at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
   at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
   at System.Diagnostics.Process.GetOrOpenProcessHandle()
   at System.Diagnostics.Process.EnsureWatchingForExit()
   at System.Diagnostics.Process.set_EnableRaisingEvents(Boolean value)
   at Process.NET.ProcessSharp..ctor(Process native, MemoryType type)
   at titanfall2_rp.ProcessNetApi.Init()
   at titanfall2_rp.Titanfall2Api._ensureInit()
   at titanfall2_rp.Titanfall2Api.GetGameModeAndMapName()
   at titanfall2_rp.PresenceUpdateThread.GetDetailsAndState(Titanfall2Api tf2Api)
   at titanfall2_rp.PresenceUpdateThread.SetCurrentPresence(DiscordRpcClient client, Titanfall2Api tf2Api)
   at titanfall2_rp.PresenceUpdateThread.OnTimedEvent(Object source, ElapsedEventArgs e)

Log file:
titanfall-rp (1).log

@IncPlusPlus IncPlusPlus self-assigned this Sep 12, 2021
@IncPlusPlus IncPlusPlus added the bug Something isn't working label Sep 12, 2021
@IncPlusPlus
Copy link
Owner Author

I've also learned from this log that I forgot Frontier Defense: Master lol

To be fixed with #80

@IncPlusPlus
Copy link
Owner Author

I've still been unable to replicate this.

@IncPlusPlus
Copy link
Owner Author

I still haven't been able to replicate this. Also, I'm not sure why the console window being minimized would have an impact on being able to access the TF|2 process. On top of that, this is no longer a console app on Windows (where this bug was reported from). I'll keep this bug open for a little longer but it'll probably be closed soon.

@IncPlusPlus IncPlusPlus added this to the Backburner milestone Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant