Hi
FrmCopyLabel simply copies the supplied string into the label object. It
does so using StrCopy without checking the length of the allocated block.
(Unless you use a debug rom, I suppose.) Try to increase the length of the
label in the resource file.
Regards,
Jan Slodicka
----- Original Message -----
From: "MarkW" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 7:37 PM
Subject: Reading from Memory Manager Data Structures on FrmCopyLabel
> I have a series of label objects on my form that I am writing new labels
to.
> The first four work fine, then on the fifth FrmCopyLabel instruction, the
> POSE shows a dialog box stating I have read from Memory Manager Data
> Structure storage. Here is an sample of the code:
>
> money = GetPlayerBankInfo(0);
> StrIToA(newLabel,money);
> FrmCopyLabel(frmP,P0Label,newLabel);
> FrmShowObject(frmP, FrmGetObjectIndex(frmP, P0Label));
>
> money = GetPlayerBankInfo(1);
> StrIToA(newLabel,money);
> FrmCopyLabel(frmP,P1Label,newLabel);
> FrmShowObject(frmP, FrmGetObjectIndex(frmP, P1Label));
>
> money = GetPlayerBankInfo(2);
> StrIToA(newLabel,money);
> FrmCopyLabel(frmP,P2Label,newLabel);
> FrmShowObject(frmP, FrmGetObjectIndex(frmP, P2Label));
>
> money = GetPlayerBankInfo(3);
> StrIToA(newLabel,money);
> FrmCopyLabel(frmP,P3Label,newLabel);
> FrmShowObject(frmP, FrmGetObjectIndex(frmP, P3Label));
>
> money = GetPlayerBankInfo(4);
> StrIToA(newLabel,money);
> FrmCopyLabel(frmP,P4Label,newLabel);
> FrmShowObject(frmP, FrmGetObjectIndex(frmP, P4Label));
>
>
> Thanks,
> Mark
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/