Jump to content

Photo

Error -1: Cannot open process


  • Please log in to reply
1 reply to this topic

#1 maniactm Posted 11 December 2015 - 03:17 PM

maniactm

    Soldier

  • Members
  • Pip
  • 1 posts

Hello,

I am trying to read a value from a process using this code:

 

                using (var memory = new MemorySharp(ApplicationFinder.FromProcessName("csgo").First()))
                {
                    var myValue = memory.Read<float>(memory["client.dll"].Read<IntPtr>(10921028) + 252, false);
                }
 
Error:
 
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in MemorySharp.dll
 
Additional information: Couldn't open the process 756.

 

Any help?

 

Thanks.


  • Back to top
  • Report

#2 czz Posted 22 December 2015 - 01:55 AM

czz

    Soldier

  • Members
  • Pip
  • 1 posts

Hey, try

 

new MemorySharp(System.Diagnostics.Process.GetProcessesByName("csgo")[0]);

  • Back to top
  • Report




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users