Re: [DUG]: Delphi Compiler problems
> 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 obj
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
maybe this is obvious - but i'll say it anyway
ret needs to restore the previous "context" to
what it was at the time of the procedure call
That context information is stored on the stack.
If something is trashing the stack (like a buffer
overflow for example) then the ret instruction
will try