Rohit Gupta wrote:
>
> I am having problems of memory corruption in two separate, unrelated (in the
> sens of components used) apps, where the ret instruction causes the
> corruption of memory inside an unrelated object.
Is this repeatable within one executable? If you can rely on it happening
in one routine then check the stack on entry and exit to make sure the
return address isn't being messed up.
The last time I had a problem like this it was because I was calling a DLL
function that was incorrectly prototyped - from memory both my code and the
DLL's code were cleaning up the stack, which seemed to be the cause of some
stack corruption.
--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"