Are you changing labels of any controls?  This can corrupt memory in weird
ways if you change a label to a string larger than the original resource.

> -----Original Message-----
> From: Michael P. Hutchens, M.D., M.A.
> [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 19, 1999 6:36 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: ScrDriverNew Mystery Error
> 
> 
> Hi,
> 
> I have Gremlins induced POSE crash that I can't explain and I'm 
> wondering if anyone can offer suggestions.
> 
> At around 8000 gremlin hits during a FrmReturnToForm(MainForm) -- 
> from any of several modal dialogs -- and while drawing the main form 
> on the screen, the program crashes giving a ScrDriverNew.c Line 500 
> -- Invalid Parameter error.
> 
> The ScrDriverNew.h routine that is running at the time is 
> ScrCopyRectangle, which is prototyped thus:
> 
> >Err  ScrCopyRectangle(WinPtr sourceWindow, WinPtr destWindow,
> >                                     SWord fromX, SWord fromY, 
> >SWord toX, SWord toY,
> >                                     SWord bitCount, SWord lineCount)
> >                             SYS_TRAP(sysTrapScrCopyRectangle);
> 
> 
> However, this is not called directly by me -- it's called by the 
> FrmReturnToForm(MainForm).
> 
> I can't for the life of me figure out why this is happening.  I 
> thought maybe I was writing to some part of memory that was bad, but 
> the program is pretty tight and I can't find where.  The MainForm 
> does contain a bitmap, but the program draws it fine over and over 
> until 8000 gremlin hits.
> 
> Any ideas?
> 
> --------------------------------------------------------------
> ----------------
> Michael Hutchens                              PregCalc 3.0 
> Professional:
> [EMAIL PROTECTED]                                       
http://www.thenar.com/pregcalc

Reply via email to