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

2003-08-14 Thread bullshark
27;s just not that hard. >I maintain it is *faster* to only fetch rows as they are needed (or *if* >needed!), it conserves memory, avoids the need to free memory or have a memory >leak, and takes *less* code to implement besides! I don't think the 'Less 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 Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: MemHandleSize - MemHandleResize

2003-08-14 Thread bullshark
dle without problems in other case You probably shouldn't do that. Use DmResizeRecord to change record sizes. You might get away 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
Handles/Chunks/Locks and any amount of pastable solution that avoids their use is acceptable as an alternative. I remain steadfast in my conviction that LstSetListChoices should 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,

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. '

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"; >> >>

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 &

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 n

Re: LstSetListChoices

2003-08-08 Thread bullshark
27; '5/' '8x' We wasted four bytes by allocating 8 bytes per string when four of them only had 7...but what the heck. If you want, you can track the actual string lengths and call MemPtrResize() with the final tally, but it's not worth the trouble for a list this sma

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 *c

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

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

2003-08-04 Thread bullshark
7;nt allocate listText"); // StrCopy(listText,cp); // } // } StrCopy(listText, LstGetSelectionText(list,LstGetSelection(list))); // what 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
m about it, and got unclear responses. I use 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
ken identity. Next would 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 f