Re: [DUG]: Delphi Compiler problems

2001-04-16 Thread Rohit Gupta
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

Re: [DUG]: Delphi Compiler problems

2001-04-14 Thread Corey Murtagh
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

Re: [DUG]: Delphi Compiler problems

2001-04-14 Thread Nello Sestini
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