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 


Why is delphi so buggy?

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

Joined: 03 Sep 2007
Posts: 149
Location: http://www.SaviourFagFails.com/

PostPosted: Fri Jul 04, 2008 4:49 am    Post subject: Why is delphi so buggy? Reply with quote

well, as many of you know, the way delphi works is storing the pointer to the variables in the stack as local vars (e.g. theres a string var starting on address 401000, so delphi put the value 401000 in the stack address local.1, which is ebp-4 if im not mistaken). its a great way of using variables, but the problem is, when calling APIs and using a string variable, instead of pushing whats INSIDE local.1, delphi pushes local.1 itself. that results in our string being something unreadable instead of the string we really wanted to use. it only pushes the string correctly if u write the string directly, or if the function u are calling was built in delphi. secondly, if the function you are calling is written in delphi, a string return value will result in "invalid pointer" error, unless you include sharemem. thirdly, if you include sharemem, an exception will raise when u click the exit button, and instead of just exiting the program you will have to click "ok" and then "dont send". fourthly, if you try to push the pointer of the string, it will result in "[Error] Constant object cannot be passed as var parameter". if you wanna know, im using delphi 7e.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Fri Jul 04, 2008 5:57 am    Post subject: Reply with quote

thats why pchar is so usefull
_________________
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
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Fri Jul 04, 2008 1:32 pm    Post subject: Reply with quote

Dark Byte wrote:
thats why pchar is so usefull

wutz pchar Surprised
*checks*

EDIT: i think i got it
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
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