Found what it was, after days of hassles.

It would appear that D5 will quite happily allocate a local structure 
2GB in size on the stack.... even when max stack is set to only 
2MB.  The help no longer talks about stack check option and S+ is 
obviously ignored.

Ruddy great.

To:                     Multiple recipients of list delphi <[EMAIL PROTECTED]>
Send reply to:          [EMAIL PROTECTED]
Date sent:              Sat, 14 Apr 2001 23:02:22 +1200
From:                   Corey Murtagh <[EMAIL PROTECTED]>
Organization:           Achieve Software Ltd
Subject:                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 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"
> 


Regards

Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
======================================================================

---------------------------------------------------------------------------
    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"

Reply via email to