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# Trainer (Unknown Error)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Fri Jul 29, 2016 3:30 pm    Post subject: C# Trainer (Unknown Error) Reply with quote

Hey Friends I am here to ask you for a solution for My C# trainer let me tell you few things (skip the next paragraph if you don't have time)

I bought this project file for $25 ,why? I hack Facebook games and made 200+ trainers but then I saw people making same hacks as mine , I know this because I always put 43211111 in Auto assembler scripts... Now I was so angry that I bought this source file (thinking that less people can crack my trainers) . The next line is for atom0s only Arrow "I was angry so I didn't think about learning C# instead of wasting $25 but Now I want to learn and I am trying my best by watching tutorials on internet . I am a lot busy with my studies these days so don't have time to join a institute But I will soon"

So the problem is that my trainer works with windows games but when I change the process to Flash games , It gives some errors (Check pics below) .










Thanks In advance and sorry for my weak English Laughing
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Fri Jul 29, 2016 4:08 pm    Post subject: Reply with quote

The exception window tells you exactly what the problem is. You are out of memory to try and allocate data of the given size.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Fri Jul 29, 2016 4:17 pm    Post subject: Reply with quote

Woh!! finally as I assumed Wink Thanks for your reply but It will be more good if you can tell me what to change (Where did I gave size) I know what allocation is.. I learn't malloc calloc in C-lang But here can u explain what to change
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Fri Jul 29, 2016 5:16 pm    Post subject: Reply with quote

The size being used is correct to dump the region, however it seems like your system can't handle the amount of memory you are requesting. You probably need to upgrade your potato.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Fri Jul 29, 2016 6:03 pm    Post subject: Reply with quote

Odd... My PC isn't good but It is giving the same error in my brother's Computer... :p


My PC :-





I think there's something wrong with the programming of this source ... I am not gonna ask it again or u won't reply.. But still asking Can I send u the source?

Thanks For Replying... Cool
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Jul 29, 2016 8:11 pm    Post subject: Reply with quote

Put in some other value, like 1024, and run it again.
If it works, then you'll just have to loop through chunks small enough for your computer to handle.
Back to top
View user's profile Send private message
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Fri Jul 29, 2016 8:44 pm    Post subject: Reply with quote

Thanks for your reply Zanzer Smile Can I send u the source file and u fix it ?

Because I don't know C# so I can't do things with it...


Thanks In advance Wink And yes this one is not guluglugu like the past one Laughing

So should I send you ?

atom0s its my dream that you will reply Razz (I am still waiting)


Thanks In Advance Smile
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sat Jul 30, 2016 1:34 am    Post subject: Reply with quote

If your app is compiled as 32bit you only have a total of 2gigs of virtual memory that you can make use of. (Keep in mind that other things that the process needs / depends on will take up that space as well, such as system DLLs, the CLR, etc.)

The amount of space you are trying to allocate is 1.3gigs. Try compiling for 64bit instead. Otherwise you are going to have to do some other method of dumping the region and scanning it, such as a memory mapped file etc.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Sat Jul 30, 2016 5:13 am    Post subject: Reply with quote

Thanks atom0s for replying... Smile I am gonna try your method Smile but still I am confuse why it is working fine for Windows games... Shocked

Edit : Forgot to tell u guys that it does not give error on compiling but only when I enable hac this is why I thought there's something wrong with the programming...

Thanks for your time Wink

NEXT POST :-

Hello ,

As atom0s said I ran my project in 64bit. The previous error is fixed but now

It gives this error :

NOTE : Aobs are correct can be found with CE...

Any solution ?


Thanks In Advance Smile
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sat Jul 30, 2016 1:26 pm    Post subject: Reply with quote

You should really take the time to learn what you are doing.. C# has excellent error information when an exception happens that gives you exactly what happened.

An index out of range exception happened meaning you tried to index an array at a position that does not exist in the array.

At this point I'm not going to help you anymore until you start learning things on your own.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Sat Jul 30, 2016 1:47 pm    Post subject: Reply with quote

Thanks atom0s for your precious time and for your advise. OK so now I am stopping everything here . I will learn C# but before that I will learn C++ and then I will be back.



Thanks atom0s for your time and advise Smile Cool
Back to top
View user's profile Send private message
kantoboy69
Advanced Cheater
Reputation: 2

Joined: 31 Mar 2010
Posts: 71
Location: Manila

PostPosted: Fri Aug 05, 2016 2:05 am    Post subject: Reply with quote

MasterHacking321 wrote:
Thanks atom0s for your precious time and for your advise. OK so now I am stopping everything here . I will learn C# but before that I will learn C++ and then I will be back.



Thanks atom0s for your time and advise Smile Cool


Most C++ compilers are mean and won't give you the exact line/problem

_________________
Cheater always prosper Hitler
Back to top
View user's profile Send private message
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