Re: Memory leak, table - SelectTextItem, AllocateLines

2004-10-06 Thread Veronica Loell
Hays, Jonathan (GE Infrastructure) wrote / skrev: I believe that when you call FrmInitForm, if the cell is a textItemType, the system will allocate an empty string. In that case, when you point the cell to your custom text, you need to make sure that the old text handle is freed. You can

Re: Memory leak, table - SelectTextItem, AllocateLines

2004-10-05 Thread Veronica Loell
Hays, Jonathan (GE Infrastructure) wrote / skrev: Not sure if this is it, but when you call FldSetText, the previous handle that was allocated doesn't get freed. You can call FldGetTextHandle to the the old handle and then free it after you have set the new one with FldSetText. Thanks for

RE: Memory leak, table - SelectTextItem, AllocateLines

2004-10-05 Thread Hays, Jonathan \(GE Infrastructure\)
] [mailto:[EMAIL PROTECTED] Behalf Of Veronica Loell Sent: Tuesday, October 05, 2004 12:42 AM To: Palm Developer Forum Subject: Re: Memory leak, table - SelectTextItem, AllocateLines Hays, Jonathan (GE Infrastructure) wrote / skrev: Not sure if this is it, but when you call FldSetText, the previous

Memory leak, table - SelectTextItem, AllocateLines

2004-10-04 Thread Veronica Loell
I have a table on a form that never gets edited directly, it does however contain textItems loaded with a LoadDataProcedure. The memory for the text in the fields in the table are initiated with MemHandleNew() when the form is opened and disposed of when the form is closed. Whenever I do a select

re: Memory leak, table - SelectTextItem, AllocateLines

2004-10-04 Thread Hays, Jonathan \(GE Infrastructure\)
Not sure if this is it, but when you call FldSetText, the previous handle that was allocated doesn't get freed. You can call FldGetTextHandle to the the old handle and then free it after you have set the new one with FldSetText. -Jon --- Jonathan Hays