Roger,

I have gotten the past the Mem. error when using StrCopy()  just to reach
"... just read directly from an unallocated chunk of memory" when using
FrmDrawForm(frmP);. This only happens after attempting to draw a form that
was draw previously. This example occurs after leaving my Main form to my
Info from then selecting a done button to return to Main. Then I get the
error. If I click Debug my form appears correctly on the POSE and  in the
Stack window the debugger stopped on StrLen  which is under CtrlDrawControl
and FrmDrawForm. This code does  work on my HH and it worked on the previous
version of POSE so I have only gotten this error since changing the POSE.
Any suggestions as to what I may have to change? Thank You


Brian

case ctlSelectEvent:
  if (eventP->data.ctlSelect.controlID == InfoDoneButton)


   FrmReturnToForm(MainForm);
       frmP = FrmGetActiveForm();

      FrmDrawForm(frmP);               *******  Get Error Here *******

     SetPopLabel(eventP,frmP);
     WinDrawLine(5,135,150,135);
    }

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 15, 2000 7:33 PM
Subject: Re: Debug nub


>
>
> >Now I get a error stating my program has "just written directly to memory
> >manager data" . This occurs when ever I do something like this
> >
> > strStartTime = MemPtrNew(StrLen(recordP->StartTime)) ;
> > StrCopy(strStartTime, recordP->StartTime);
>
> Try using
>
> strStartTime = MemPtrNew(StrLen(recordP->StartTime) + 1) ;
>
> to account for the string being null terminated by StrCopy.
>
>
> -Roger Flores
>
>
>

Reply via email to