Habufe Expert Cheater
Reputation: 0
Joined: 03 Sep 2007 Posts: 149 Location: http://www.SaviourFagFails.com/
|
Posted: Fri Jul 04, 2008 4:49 am Post subject: Why is delphi so buggy? |
|
|
| 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. |
|