Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C#,32 bit processes cannot access modules of a 64 bit proces

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
FrequentlyX
Newbie cheater
Reputation: 0

Joined: 29 Dec 2013
Posts: 14

PostPosted: Fri Mar 21, 2014 1:23 am    Post subject: C#,32 bit processes cannot access modules of a 64 bit proces Reply with quote

Hey guys, im wondering if anyone could help me with this problem

Code:
            try
            {
                for (int i = 0; i < MyProcess.Length; i++)
                {
                    if (gameChoiceCB.SelectedItem.ToString().Contains(MyProcess[i].ProcessName))
                    {
                        MyProcess[0] = Process.GetProcessById(int.Parse(gameChoiceCB.Text.Replace(MyProcess[i].ProcessName + "-", "")));
                        mainModule = MyProcess[0].MainModule;
                        Mem.ReadProcess = MyProcess[0];
                        Mem.OpenProcess();
                        GameFound = true;
                    }

                }

            }


that is my current code, at the part

Code:
 MyProcess[0] = Process.GetProcessById(int.Parse(gameChoiceCB.Text.Replace(MyProcess[i].ProcessName + "-", "")));
                        mainModule = MyProcess[0].MainModule;


it stops working and i get the error " a 32 bit processes cannot access modules of a 64 bit process "

does anyone have any ideas of how i can fix this please ??
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Mar 21, 2014 1:40 am    Post subject: Reply with quote

Compile your application for usage with x64. You can use the AnyCPU configuration to accomplish that.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
FrequentlyX
Newbie cheater
Reputation: 0

Joined: 29 Dec 2013
Posts: 14

PostPosted: Fri Mar 21, 2014 8:09 am    Post subject: Reply with quote

atom0s wrote:
Compile your application for usage with x64. You can use the AnyCPU configuration to accomplish that.


How would i do that ?

(sorry im new to C#)

Nvm thank you, found it


Acctually im back, wondering if i could get some help, ever since yesterday, when i tried to build it for x64, this operation has been going on,

the file that i attatched is a picture of the operation, and that is the way it has been going on for since yesterday

that is quite a few hours
any ideas why this is happening ?



e38369fa12ead940cd0b11bdc50245b3.png
 Description:
Operation picture
 Filesize:  29.47 KB
 Viewed:  10130 Time(s)

e38369fa12ead940cd0b11bdc50245b3.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25823
Location: The netherlands

PostPosted: Sat Mar 22, 2014 11:06 pm    Post subject: Reply with quote

Tried restarting your computer ?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Mar 23, 2014 1:06 pm    Post subject: Reply with quote

Depends on what you are doing as well. Various things could cause operations to timeout or take longer, such as threading things and trying to debug at certain points.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites