Process x86 vs x86_64 issue
Hey guys,
Before I start explaining the issue. I'm working with the 4.6.1 version of Unity since this is mandatory at the company I'm creating this application for. So maybe it's a bug in this version that has been solved later, if that's the case please let me know.
Anyway, I've got a problem with the 'System.Diagnostics.Process' class. Here's the code where the issue is located:
System.Diagnostics.Process[] pname = Process.GetProcessesByName(applicationName);
Now when I built this in x86_64 settings, it does the job without any problems... It gets the process with the applicationname. So then I built it in x86 mode and I got a nice big fat error:
InvalidOperationException: Process has exited, so the requested information is not available.
at System.Diagnostics.Process.get_ProcessName () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_ProcessName ()
at System.Diagnostics.Process.GetProcessesByName (System.String processName) [0x00000] in <filename unknown>:0
at Main.ProcessCheck () [0x00000] in <filename unknown>:0
To debug I've tried to find and print all processes, but that also gave the same error.
So basically... It works great in x86_64 mode and it crashes in x86 mode... And guess what, the company want the application in x86.
Any ideas on what is causing this issue? Thanks!
Could really use some help here. Hope someone can show me where to look, or maybe test this on a Windows 7 computer.
Your answer
Follow this Question
Related Questions
Can’t open project from usb as it says opening file failed 0 Answers
I can no longer collaborate. 0 Answers
No sound after recieving a phone call - Android 1 Answer
unity_csc file can not be found by Unity and is preventing scripts from loading 1 Answer
Why are my objects falling down?,Why are my objects moving when i play game. 1 Answer