Read this:
NOTE: This function passes the name parameter to the
CategoryTruncateName function, which means that the name
value must be modifiable. CategorySetTriggerLabel does
not make a copy of the string passed, so you must ensure that the
string remains valid until the form is closed.
Hint: "PI" isn't modifiable but const char[]
Henk
Stephen A. Strelzyk wrote:
> I am receiving an error in the emulator saying that my program called SysFatalAlert
>with the message "Category.c, Line:575, CategoryTruncateName: name in storage heap".
>I don't know what this means. I am using POSE 3.5
>
> This is the function that is causing the error. I have indicated the line that
>demonstrates the problem. Any ideas? I can continue past the error, and the pop-up
>trigger is updated appropriately.
>
> void SetDrugClassTriggerLabel(FormPtr frmP, UInt16 TriggerID) {
> if (StateInfo.wCurrDrugClass == 0)
> --> CategorySetTriggerLabel(FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
>TriggerID)),"PI");
> else if (StateInfo.wCurrDrugClass == 1)
> CategorySetTriggerLabel(FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
>TriggerID)),"NRTI");
> else if (StateInfo.wCurrDrugClass == 2)
> CategorySetTriggerLabel(FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
>TriggerID)),"NNRTI");
> }
>
> Sincerely,
>
> Steve Strelzyk
> Software Engineer
> Lattice, Inc
> mailto:[EMAIL PROTECTED]
>
>
>
>
>
--
-------------------------------------------------------------------------
[EMAIL PROTECTED] www.metaviewsoft.de
<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946">
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg"></A>
-------------------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/