Re: LstGetSelectionText() - Memory Allocation ?!?!

2003-08-14 Thread bullshark
On Fri, 8 Aug 2003 11:32:23 +1000, Alan Ingleby [EMAIL PROTECTED] wrote: bullshark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes I am. Deallocating is: if(pListTxt != NULL) //pretty hard { memPtrFree(pListText); //huh? pListText=NULL; //?? } Sounds like you're using

Re: LstSetListChoices

2003-08-14 Thread bullshark
On Fri, 8 Aug 2003 09:51:28 -0700, Dave Carrigan [EMAIL PROTECTED] wrote: On Fri, Aug 08, 2003 at 12:26:13PM -0400, bullshark wrote: static char* gPlateString = PL3/16x\0PL1/4x\0PL5/16x\0PL3/8x\0PL1/2x\0PL5/8x\0; The above doesn't work. The compiler knows that dquote strings end with \0

Re: LstGetSelectionText() - Memory Allocation ?!?!

2003-08-14 Thread bullshark
On 05 Aug 2003 10:57:18 +0100, kcorey [EMAIL PROTECTED] wrote: On Tue, 2003-08-05 at 10:43, bullshark wrote: 2) Allocate an array from dynamic memory for the strings and copy all the strings into memory. That's the ticket. 'Dynamic'. Copy is what you do when you draw. The difference

Re: LstGetSelectionText() - Memory Allocation ?!?!

2003-08-14 Thread bullshark
be used in all but the most trivial cases. The best Palm apps look, feel and run like the standards and the best way to get there, with the smallest amount of code is to use the API the way it's designers intended. bullshark -- For information on using the Palm Developer Forums, or to unsubscribe

Re: MemHandleSize - MemHandleResize

2003-08-14 Thread bullshark
with it, but run into trouble later. bullshark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: LstGetSelectionText() - Memory Allocation ?!?!

2003-08-14 Thread bullshark
code' is true. I don't think the faster part is true. In list scrolling, it certainly is not. I don't see the value in not using an available resource, but you're right, it consumes memory. Memory which (as I understand it) was put there to be used. bullshark -- For information on using the Palm

Re: Palm ZIRE dynamic heap size

2003-08-09 Thread bullshark
On Fri, 8 Aug 2003 11:25:40 +0300, HermesPalm [EMAIL PROTECTED] wrote: Hi all, can anyone tell me how much dynamic memory has a Palm Zire with only 2 MB of memory, OS 4.1 No. Available memory depends on memory use. It's not a fixed number. bullshark -- For information on using the Palm

Re: LstSetListChoices

2003-08-08 Thread bullshark
needs to be locked before use in LstSetListChoices. LstSetListChoices(lstP, gListString, 6); LstDrawList(lstP); return true; } bullshark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: LstGetSelectionText() - Memory Allocation ?!?!

2003-08-06 Thread bullshark
On 04 Aug 2003 14:55:54 +0100, kcorey [EMAIL PROTECTED] wrote: On Mon, 2003-08-04 at 14:53, bullshark wrote: On Mon, 4 Aug 2003 09:59:53 +1000, Alan Ingleby [EMAIL PROTECTED] wrote: Ken's right. Specifically, you *can't* use LstGetSelectionText with a dynamic list, so don't. What? Why

Re: LstGetSelectionText() - Memory Allocation ?!?!

2003-08-05 Thread bullshark
On Mon, 04 Aug 2003 16:32:34 -0400, Douglas Handy [EMAIL PROTECTED] wrote: Bullshark, Ken's right. Specifically, you *can't* use LstGetSelectionText with a dynamic list, so don't. That should probably read you *can't* use LstGetSelectionText when you supplied NULL as the itemsText pointer

Re: LstGetSelectionText() - Memory Allocation ?!?!

2003-08-04 Thread bullshark
if nothing is selected? * regards bullshark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Newbie Question - Using Visual Studio??

2003-08-01 Thread bullshark
vs for everything except that, where I use emacs. bullshark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Very Persistant Problem

2003-07-30 Thread bullshark
be an infamous ==/= semantic error in the 'if() clause. bullshark -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: help: getting nilEvents when I don't need any !

2003-07-08 Thread bullshark
On Mon, 07 Jul 2003 23:45:11 -, alexrousseau_jta [EMAIL PROTECTED] wrote: Still, bugs me quite the bit as I am trying to optimize my application (tight animation loops and all), and am figuring that some machine cycles are spent hosting some totally uninvited guest. The default return from