Re: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2008-05-28 Thread chongwm
Nope, the document states that, though not in the exact words IT DOES NOT MAKE A COPY. -LstSetListChoices (ListType *listP, Char **itemsText, UInt16 numItems) -Parameters : itemsText Pointer to an array of text strings. So, u would have to do something like this: void foo() { Char* *strArray

RE: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2008-05-28 Thread Gavin Maxwell
Basically if the API name has Set in the title it merely stores a reference to whatever you pass in, if it has Copy in the name it will actually copy what you pass it. eg FrmCopyTitle copies the string you pass it. Regards, Gavin. -- For information on using the ACCESS Developer Forums, or

LstSetListChoices limit?

2008-05-16 Thread Darren
Hello, am trying to get a simple database listing. Is there a limit to the number items that can be passed to LstSetListChoices. Many thanks regards Darren -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/

Re: LstSetListChoices limit?

2008-05-16 Thread Michal Seliga
only during scrolling Darren wrote: Hello, am trying to get a simple database listing. Is there a limit to the number items that can be passed to LstSetListChoices. Many thanks regards Darren -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http

Re: LstSetListChoices limit?

2008-05-16 Thread Michal Seliga
on this list when you select or unselect them. Eduardo Orea. Darren escribió: Hello, am trying to get a simple database listing. Is there a limit to the number items that can be passed to LstSetListChoices. Many thanks regards Darren -- For information on using the ACCESS Developer Forums

Re: LstSetListChoices limit?

2008-05-16 Thread Eduardo Orea
or unselect them. Eduardo Orea. Darren escribió: Hello, am trying to get a simple database listing. Is there a limit to the number items that can be passed to LstSetListChoices. Many thanks regards Darren -- For information on using the ACCESS Developer Forums, or to unsubscribe, please

re: Using LstSetListChoices

2007-01-07 Thread Ron
Thank you James, that was the problem. I have it fixed now. I really appreciate your help :) -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Using LstSetListChoices

2007-01-06 Thread Ron
When I use LstSetListChoices to set the items in a list, whenver I click on an item it turns into garbbage. Random symbols and at some points it tries to access invalid memory. This is the code I'm using I am setting the text for a list created by the resource editor. --- Char

re: Using LstSetListChoices

2007-01-06 Thread James Lin
Ron wrote: When I use LstSetListChoices to set the items in a list, whenver I click on an item it turns into garbbage. Random symbols and at some points it tries to access invalid memory. This is the code I'm using I am setting the text for a list created by the resource editor

Help me. LstSetListChoices is not working..

2006-03-23 Thread Jinyoung Lee
I dont know whether my code is wrong or not. What happened is all parameters are correct but Function LstSetListChoices is not working.. It crushes the emulator without error message.. Of course, It will be my mistake in the code.. I will just show u the code anyway.. Please reply

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Robert Moynihan
Jinyoung Lee wrote: Function LstSetListChoices is not working.. It crushes the emulator without error message.. snip __ void FillLetsCookFormListWithData(ListType *titleLst, ListType *categoryLst, ListType *yieldLst) { What about those

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Robert Moynihan
Actually, on second thought, I'm thinking that the problem might not be the call to LstSetListChoices at all. The ListType objects may still be invalid, but the bigger mistake would be that you allocated memory for the list elements within your FillLetsCookFormListWithData function

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Thomas Damme
titleItemList[i] = (char *)MemPtrNew(StrLen(dbRecipePtr-title)); StrCopy(titleItemList[i], dbRecipePtr-title); Simple example: - we assume the title is foo - then StrLen(title) is 3, right? - so you allocate a buffer of 3 bytes - then use StrCopy to copy foo

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Thomas Damme
(somehow my other message appeared without subject and with date set to 1970..) titleItemList[i] = (char)MemPtrNew(StrLen(dbRecipePtr-title)); StrCopy(titleItemList[i], dbRecipePtr-title); Simple example: - we assume the title is foo - then StrLen(title) is 3, right? - so you allocate

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Dean Gahlon
On Thu, 23 Mar 2006, Robert Moynihan wrote: Actually, on second thought, I'm thinking that the problem might not be the call to LstSetListChoices at all. The ListType objects may still be invalid, but the bigger mistake would be that you allocated memory for the list elements within your

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Robert Moynihan
Hi Dean, On Thu, 23 Mar 2006, Robert Moynihan wrote: Actually, on second thought, I'm thinking that the problem might not be the call to LstSetListChoices at all. The ListType objects may still be invalid, but the bigger mistake would be that you allocated memory for the list elements within

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Robert Moynihan
Robert Moynihan wrote: Hi Dean, On Thu, 23 Mar 2006, Robert Moynihan wrote: Actually, on second thought, I'm thinking that the problem might not be the call to LstSetListChoices at all. The ListType objects may still be invalid, but the bigger mistake would be that you allocated memory

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Dean Gahlon
[Charset ISO-8859-1 unsupported, filtering to ASCII...] Robert Moynihan wrote: Hi Dean, On Thu, 23 Mar 2006, Robert Moynihan wrote: Actually, on second thought, I'm thinking that the problem might not be the call to LstSetListChoices at all. The ListType objects may still

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Robert Moynihan
Dean Gahlon wrote: (I also suspect that Thomas Damme's message on this topic (to allocate StrLen(...)+1 rather than StrLen(...)) is more where the OP's problem lies.) I agree 100%. That is fundamental error that, really, couldn't help but crash. I didn't see that problem during my first

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Jinyoung Lee
Thank you very much for replies... But i still cannot make it work... First the input parameters are corroct ( I think ) What i use to get the parameters is following: FormPtr frmP; frmP = FrmGetActiveForm(); (ListType *)(FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Jinyoung Lee
Sori..finally I got answer.. I had mistake in resource numbering.. I didnt check the other numbering in label.. There were two same resource numbers that are the one for label and the other for list. That's why it crashed.. Anyway thank you,, thany you.. -- For information on using the

Re: LstSetListChoices keeps crashing on me

2005-02-22 Thread Roger Stringer
Subject: Re: LstSetListChoices keeps crashing on me :( From: Robert Baruch [EMAIL PROTECTED] You can't make the array const... otherwise you couldn't have lists whose content changes. I also added LstSetHeight, but that failed to help. I think I'm going to have to fork over $125 to Palm Support

Re: LstSetListChoices keeps crashing on me :(

2005-02-21 Thread Robert Baruch
You can't make the array const... otherwise you couldn't have lists whose content changes. I also added LstSetHeight, but that failed to help. I think I'm going to have to fork over $125 to Palm Support to get them to figure it out :( --Rob -- For information on using the Palm Developer

Re: LstSetListChoices keeps crashing on me :(

2005-02-21 Thread Robert Moynihan
, Tuesday, Wednesday, Thursday, Friday, Saturday}; Set up your list: ListType*listP=GetObjectPointer(yourListID); LstSetListChoices(listP, days, 7); LstSetSelection(listP,3); //sets the initial selection as Wednesday, just for kicks. LstSetHeight(7); Now draw the list: LstDrawList(listP); Now

Re: LstSetListChoices keeps crashing on me :(

2005-02-21 Thread Ralph Curtis
Robert Baruch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Can someone tell me what's wrong? In my program, when LstSetListChoices is hit, the emulator dies with an array index out of bounds. Here's the code fragment: static void displayCallLog() { ListType *list

Re: LstSetListChoices keeps crashing on me :(

2005-02-21 Thread Logan Shaw
Robert Baruch wrote: I also added LstSetHeight, but that failed to help. I think I'm going to have to fork over $125 to Palm Support to get them to figure it out :( You could try using setting callback to draw the list items. Your callback and then just do WinDrawChars(), and it can use

Re: LstSetListChoices keeps crashing on me :(

2005-02-19 Thread Bodo Wenzel
Can someone tell me what's wrong? In my program, when LstSetListChoices is hit, the emulator dies with an array index out of bounds. As the others said, the variables has an implizit auto modifier and it is not longer valid when the list is drawn. I think you should add the modifiers const

LstSetListChoices keeps crashing on me :(

2005-02-18 Thread Robert Baruch
Hi all, Can someone tell me what's wrong? In my program, when LstSetListChoices is hit, the emulator dies with an array index out of bounds. Here's the code fragment: static void displayCallLog() { ListType *list; char *duration; char *testArray[] = {one, two, three, four, five}; list

Re: LstSetListChoices keeps crashing on me :(

2005-02-18 Thread Robert Moynihan
Robert Baruch wrote: Hi all, Can someone tell me what's wrong? In my program, when LstSetListChoices is hit, the emulator dies with an array index out of bounds. Here's the code fragment: static void displayCallLog() { ListType *list; char *duration; char *testArray[] = {one, two, three, four

Re: LstSetListChoices keeps crashing on me :(

2005-02-18 Thread Luciano A. Stertz
Robert Baruch wrote: Hi all, Can someone tell me what's wrong? In my program, when LstSetListChoices is hit, the emulator dies with an array index out of bounds. Here's the code fragment: static void displayCallLog() { ListType *list; char *duration; char *testArray[] = {one, two, three

Re: LstSetListChoices keeps crashing on me :(

2005-02-18 Thread Robert Baruch
OK, I have made the testArray global, and the crash with index out of bounds still happens... what else could be wrong? static char *testArray[] = {one, two, three, four, five}; static void displayCallLog() { // etc } Thanks for any help! --Rob -- For information on using the Palm

Re: LstSetListChoices and Memory

2004-10-03 Thread Steve
I think what might be happening is your list is trying to use the pointer between freeing the old pointer and setting the new pointer. Try reversing the order; set the new pointer first, then free the old memory. Top tip Thanks for that, it's much happier now :-) -- For information on

LstSetListChoices and Memory

2004-09-23 Thread Steve
Does this behave differently in PalmOS 5 ? On the Emulator (M505 ROM), if I don't manually free up the memory I allocated for the ListItems (an array of Strings), I get warnings about leaked memory upon application exit (Form Close). So my application frees the memory itself. On the Garnet

Re: LstSetListChoices and Memory

2004-09-23 Thread Chris Tutty
From: Steve [EMAIL PROTECTED] Does this behave differently in PalmOS 5 ? On the Emulator (M505 ROM), if I don't manually free up the memory I allocated for the ListItems (an array of Strings), I get warnings about leaked memory upon application exit (Form Close). So my application frees

Re: Stuck with LstSetListChoices

2003-10-29 Thread Axel Bernard
By the way, if the sources code of the Lib (managing Lists) are available, I'd be more than curious to give em a look ;-) Axel Bernard wrote: By the way, I confirm that it is an actual bug in the Lib: - modifying the Sample appli Formats (FormatsPanel.c) as /* --

Re: Stuck with LstSetListChoices

2003-10-29 Thread Mike Margerum
I dont know if its the same problem you are having but we were getting blank lists when selecting a list item in the 2500 range with OS 3.5 We had to scroll the list after selecting an we were ok. We did something like this to make it draw properly LstSetSelection(listP, listIndex);

Re: Stuck with LstSetListChoices

2003-10-29 Thread Axel Bernard
Mike Margerum wrote: I dont know if its the same problem you are having but we were getting blank lists when selecting a list item in the 2500 range with OS 3.5 We had to scroll the list after selecting an we were ok. We did something like this to make it draw properly

Re: Stuck with LstSetListChoices

2003-10-29 Thread Alan Ingleby
Axel Bernard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Margerum wrote: I dont know if its the same problem you are having but we were getting blank lists when selecting a list item in the 2500 range with OS 3.5 We had to scroll the list after selecting an we were ok.

Stuck with LstSetListChoices

2003-10-28 Thread Axel Bernard
Hi all, i'm back on the subject as i'm stuck right now. Our program - display a list of 2979 items (strings), 12 visible items - using our own Draw function through LstSetDrawFunction - when LstSetTopItem () is set to 2967 (ie top of last page) the list is displayed a microsecond then is

Re: Stuck with LstSetListChoices

2003-10-28 Thread Ben Combee
At 08:39 PM 10/28/2003, Axel Bernard wrote: Hi all, i'm back on the subject as i'm stuck right now. Our program - display a list of 2979 items (strings), 12 visible items - using our own Draw function through LstSetDrawFunction - when LstSetTopItem () is set to 2967 (ie top of last page) the

Re: Stuck with LstSetListChoices

2003-10-28 Thread Axel Bernard
By the way, I confirm that it is an actual bug in the Lib: - modifying the Sample appli Formats (FormatsPanel.c) as /* -- PanelPickListDrawItem func - */ static char marre[128]; //+ static void PanelPickListDrawItem (UInt itemNum, RectanglePtr bounds,

RE: LstSetListChoices

2003-08-21 Thread Kevin OKeefe
How many visible items are there? -Original Message- From: Steve K [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 1:10 PM To: Palm Developer Forum Subject: LstSetListChoices It has been a few days and I have not heard on this, so I thought I would post again. I am trying

Re: LstSetListChoices

2003-08-21 Thread Tom Hoelscher
According to the Palm OS Reference, if the list is visible when you call LstSetListChoices, you will need to call LstDrawList to update the list. -Tom It has been a few days and I have not heard on this, so I thought I would post again. I am trying to set the choices in a list using

Re: LstSetListChoices

2003-08-21 Thread Steve K
Thanks guys, but I have solved this issue already. Steve K Tom Hoelscher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] According to the Palm OS Reference, if the list is visible when you call LstSetListChoices, you will need to call LstDrawList to update the list. -Tom

LstSetListChoices

2003-08-14 Thread Steve K
It has been a few days and I have not heard on this, so I thought I would post again. I am trying to set the choices in a list using LstSetListChoices, and know I am getting very close to getting it to work. I call my function to populate the list and I receive no error and I get no data

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: Please Help LstSetListChoices not working

2003-08-14 Thread Ben Combee
At 05:14 PM 8/13/2003, Steve K wrote: I tried your suggestion still I get nothing. I've tried adding a LstDrawList still get nothing. Have you stepped through with a debugger and verified that the system call that makes your list of string pointers is correctly formatting up the list? -- Ben

Re: Please Help LstSetListChoices not working

2003-08-14 Thread Steve K
I tried your suggestion still I get nothing. I've tried adding a LstDrawList still get nothing. Still at a loss... thanks, steve The bug is that you unlock the gStringH handle after you've passed it's locked pointer to LstSetListChoices. That handle needs to remain locked until after

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
; static Boolean PopulateList(void) { FormType* frmP = FrmGetActiveForm(); ListType* lstP = (ListType*) FrmGetObjectPtr(frmP, lstDesc); gStringH = SysFormPointerArrayToStrings(gPlateString, 6); gListString = (char**)MemHandleLock(gStringH); LstSetListChoices(lstP, gListString, 6

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
On Fri, Aug 08, 2003 at 03:29:21PM -0700, Steve K wrote: I think I should also note that I am using this list with a pop-up list. Not sure if that makes a difference or not, but thought I would mention it. If it's for a popup list, you definitely have to avoid freeing the handle until there is

LstSetListChoices

2003-08-14 Thread Steve K
**) SysFormPointerArrayToStrings(gPlateString, 6); LstSetListChoices(lstP, gListString, 6); LstDrawList(lstP); return true; } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Please Help LstSetListChoices not working

2003-08-14 Thread Steve K
) { Boolean retValue = false; if(lstP) { LstSetListChoices(lstP, listString, size); LstDrawList(lstP); retValue = true; } return retValue; } Steve K Steve K [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Using the debugger and an emulator as opposed

Re: Please Help LstSetListChoices not working

2003-08-14 Thread Ben Combee
At 04:31 PM 8/13/2003, Steve K wrote: I am trying to set the choices in a list using LstSetListChoices, and know I am getting very close to getting it to work. I call my function to populate the list and I receive no error and I get no data displayed in my list. Here is the function. static char

Re: Please Help LstSetListChoices not working

2003-08-14 Thread Steve K
Using the debugger and an emulator as opposed to just running it on the palm gives me an error message on the LstSetListChoices call: Inventory (1.0) called SysFatalAlert with the message: Font.c, Line:248, Invalid font. thanks Steve Ben Combee [EMAIL PROTECTED] wrote in message news:[EMAIL

Please Help LstSetListChoices not working

2003-08-14 Thread Steve K
I am trying to set the choices in a list using LstSetListChoices, and know I am getting very close to getting it to work. I call my function to populate the list and I receive no error and I get no data displayed in my list. Here is the function. static char* gPlateString = PL3/16x\0PL1/4x\0PL5

Re: LstSetListChoices

2003-08-14 Thread Dave Carrigan
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 so there is nothing in the .o image after PL3/16x. What are you talking

Re: LstSetListChoices

2003-08-14 Thread Steve K
(); ListType* lstP = (ListType*) FrmGetObjectPtr(frmP, lstDesc); gStringH = SysFormPointerArrayToStrings(gPlateString, 6); gListString = (char**)MemHandleLock(gStringH); LstSetListChoices(lstP, gListString, 6); LstDrawList(lstP); MemHandleUnlock(gStringH); MemHandleFree(gStringH); return true

Re: LstSetListChoices

2003-08-11 Thread Dave Carrigan
On Fri, Aug 08, 2003 at 03:41:24PM -0400, bullshark wrote: 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; It's still a

Re: LstSetListChoices

2003-08-08 Thread bullshark
,SysFormPointerArrayToStrings failed); gListString=MemHandleLock(h); LstSetListChoices(lstP, gListString,6); // when you are done with the list, unlock the handle and call MemHandle Free // SysForm allocated it for you, disposal is your problem If you are going to allocate yourself: // this looks more

Re: LstSetListChoices

2003-08-08 Thread Dave Carrigan
On Thu, Aug 07, 2003 at 11:46:16PM -0700, Steve K wrote: I have read many a posts on this question, however, none seem to be working for me. I have attempted to simplify this with no results. I am no longer getting fatal exceptions, however nothing is happening. What is the key ingredient

Re: LstSetListChoices

2003-08-08 Thread Steve K
) { gStringH = SysFormPointerArrayToStrings(gPlateString, 6); gListString = (char**)MemHandleLock(gStringH); LstSetListChoices(lstP, gListString, 6); MemHandleUnlock(gStringH); return true; } ... case frmCloseEvent: MemHandleFree(gStringH); break; tia, Steve Dave Carrigan

Re: LstSetListChoices

2003-08-08 Thread Steve K
, lstDesc); gStringH = SysFormPointerArrayToStrings(gPlateString, 6); gListString = (char**)MemHandleLock(gStringH); LstSetListChoices(lstP, gListString, 6); LstDrawList(lstP); MemHandleUnlock(gStringH); MemHandleFree(gStringH); return true; } Also I hate to be too much of a bother

Re: How do I create a list pointer that can be passed to LstSetListChoices from a string resource?

2003-07-30 Thread Markus Dresch
how? you need a string-array to fill the list. example1: #define LIST_ITEMS 3 #define MAX_STRING_LEN50 Char szList[LIST_ITEMS][MAX_STRING_LEN] = {abcdefg, hijklmno, pqrstuvw}; if you want to use string resources to fill the list, simply load the strings in a string array

Re: How do I create a list pointer that can be passed to LstSetListChoices from a string resource?

2003-07-30 Thread Sun ribo
and now what should i do if just like #define LIST_ITEMS 3 #define MAX_STRING_LEN50 Char szList[LIST_ITEMS][MAX_STRING_LEN] = {abcdefg, hijklmno, pqrstuvw}; Markus Dresch [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ:[EMAIL PROTECTED] how? you need a string-array to fill the list.

How do I create a list pointer that can be passed to LstSetListChoices from a string resource?

2003-07-29 Thread Sun ribo
how? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: LstSetListChoices() crashes

2002-07-30 Thread Joe Malone
--- Akhil Bhandari [EMAIL PROTECTED] wrote: I am adding data in the list dynamically. I am using method LstSetListChoices() . It works fine. Now like this if a add no. of items more than the list visible item, a scroll bar appears and if i click it, program crashes. Maybe you aren't

LstSetListChoices() crashes

2002-07-29 Thread Akhil Bhandari
Hi, I am using list control in my GUI application in palm OS CodeWarrior. I am adding data in the list dynamically. I am using method LstSetListChoices() . It works fine. Now like this if a add no. of items more than the list visible item, a scroll bar appears and if i click it, program

Re: LstSetListChoices() crashes

2002-07-29 Thread Sridhar Venkataraman
*)MemHandleLock(recordH); temprec = *myrec; filelist[i] = (Char*)MemPtrNew(20); StrCopy(filelist[i], temprec.fileno); MemHandleUnlock(recordH); DmReleaseRecord(dbMainRef, i, 0); } LstSetListChoices(lstFileNo, filelist, 4); -- Make sure you free the memory allocated in form

Re: LstSetListChoices

2002-07-27 Thread Daniel Seifert
Am Don, 2002-07-25 um 22.53 schrieb Steve Mann: Hi, My question: is it legal to pass a null pointer to LstSetListChoices Yes, in the 2nd parameter. Of course :) and/or what might be other reasons for this behaviour? CtlnewControl may invalidate any previous form pointers you have

Re: LstSetListChoices

2002-07-27 Thread Steve Mann
Idea: I read of a bug in 3.5 when using CtlNewControl is (unsuccessfully) trying to adapt every ptr in a dynamically created form. Might it be that on 3.5 the CtlNewControl goes through all other form elements that already exist in the form and does something with 'em? There were problems with

Re: LstSetListChoices

2002-07-27 Thread Daniel Seifert
Am Fre, 2002-07-26 um 07.54 schrieb Steve Mann: Hi, There were problems with dynamic form elements in 3.5 and earlier. They were kind of delicate. That would be my guess as to the problem. Do you need to be able to run on 3.5? Definitely yes. The OS 3.5 fraction is just too big to ignore

RE: error in LstSetListChoices() function? Help required.

2001-11-09 Thread Craig Deelsnyder
( (Char*)p ) + 1 ); StrCopy( items[ ndx ], p ); MemHandleUnlock( h ); } LstSetListChoices( listP, items, numItems ); LstSetHeight( listP, numItems ); } Note that the Char** must be global to work also

error in LstSetListChoices() function? Help required.

2001-11-08 Thread Yuva Kumar
the two dimension array to the popup list. The LstSetListchoices() requires list items in the Char **itemsText format. I use SysFormPointerArrayToStrings() function which also returns error message. How do I convert the 2dimension array to a Char ** format. Or is there any other way to get the list

Re: error in LstSetListChoices() function? Help required.

2001-11-08 Thread Shaikh Khurram Saghir
in items and free it when you don't need it. Khurram+ - Original Message - From: Yuva Kumar [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Friday, November 09, 2001 11:00 AM Subject: error in LstSetListChoices() function? Help required. Hi All, I am accessing

Re: LstSetListChoices

2001-06-08 Thread Steve Mann
I'm getting a fatal error MemoryMgr.c, Line 4342, NULL handle when running an application on the palm, I think the error comes from the following code: Why not use the symbolic debugger and POSE to find out _exactly_ where the error occurs. It's much easier to track down problems that way.

Re: LstSetListChoices

2001-06-08 Thread Terry Dennis
( theListItems ); ListPtr list = (ListPtr) FrmGetObjectPtr(frm, FrmGetObjectIndex(frm, PartTwoAbility1List)); CharPtr unlock=(CharPtr)MemHandleLock(gStringArrayH); LstSetListChoices(list, unlock, theListCount); does someone have an idea where my error

LstSetListChoices

2001-06-08 Thread Stringer
Subject: LstSetListChoices From: Nancy Kho [EMAIL PROTECTED] Date: Thu, 07 Jun 2001 17:31:30 -0500 I'm getting a fatal error MemoryMgr.c, Line 4342, NULL handle when running an application on the palm, I think the error comes from the following code: First, I'd strongly recommend you

LstSetListChoices

2001-06-07 Thread Nancy Kho
)); CharPtr unlock=(CharPtr)MemHandleLock(gStringArrayH); LstSetListChoices(list, unlock, theListCount); does someone have an idea where my error is? thanks, [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http

Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2000-10-29 Thread Jason Garrett
Does LstSetListChoices() make its own copy for the list to use, or does it continue to use the memory that you have indicated in this call? Could I destroy my string list, and the list remain happy? Jason Garrett wirelessdata Ph: +64 9 379 3710 Fax: +64 9 379 7360 Cell: +64 21 400 307 ICQ

Re: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2000-10-29 Thread chongwm
Nope, the document states that, though not in the exact words "IT DOES NOT MAKE A COPY". -LstSetListChoices (ListType *listP, Char **itemsText, UInt16 numItems) -Parameters : itemsText Pointer to an array of text strings. So, u would have to do something like this: void foo() { Char*

RE: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2000-10-29 Thread Gavin Maxwell
Basically if the API name has "Set" in the title it merely stores a reference to whatever you pass in, if it has "Copy" in the name it will actually copy what you pass it. eg FrmCopyTitle copies the string you pass it. Regards, Gavin. -- For information on using the Palm Developer Forums, or

RE: NULL memory after LstSetListChoices

2000-10-25 Thread Owen Flagel
Thanks for response. I solved the problem by using a pointer to my text strings. Owen From: Owen Flagel [mailto:[EMAIL PROTECTED]] I'm setting the label and I'm returning a handled = true in a popSelect event, but the problem still persists. Any further ideas where I could be going

RE: NULL memory after LstSetListChoices

2000-10-24 Thread Scott Johnson (Bellevue)
From: Owen Flagel [mailto:[EMAIL PROTECTED]] I'm setting the label and I'm returning a handled = true in a popSelect event, but the problem still persists. Any further ideas where I could be going wrong here. Now we need more info. Exactly where is the crash? Can you give the call stack

RE: LstSetListChoices

2000-10-24 Thread Scott Johnson (Bellevue)
From: Karen M Serafino [mailto:[EMAIL PROTECTED]] When you tap the popup trigger, it will display the first item with a little down-arrow to the right of it, but none of the other items. OK, when you dynamically populate a popup list, you should always call LstSetHeight to make it display as

RE: LstSetListChoices

2000-10-24 Thread Scott Johnson (Bellevue)
From: Karen M Serafino [mailto:[EMAIL PROTECTED]] I do not have a stringtable resource with the items all set up; I need to read them from a database. I set up a packed string of null-terminated strings and called SysFormPointerArrayToStrings Consider a different technique: don't create a

Re: LstSetListChoices

2000-10-23 Thread Richard Burmeister
From: "Karen M Serafino" [EMAIL PROTECTED] Subject: Re: LstSetListChoices ..., but with the popup symbol (solid triangle) to the left of it versus to the right. If you position the list too far to the right, the OS will put the popup arrow to the left. Try moving the list le

NULL memory after LstSetListChoices

2000-10-23 Thread Owen Flagel
I'm drawing a list resource using LstSetListChoice(,NULL,) and then using a draw function LstSetDrawFunction(,,). The new list redraws correctly. However, when I select an item from the list I get the Error: Just written to memory location zero(NULL). The list object is being

RE: NULL memory after LstSetListChoices

2000-10-23 Thread Scott Johnson (Bellevue)
is to just grab the text for the selected item from the array of strings that you originally passed to LstSetListChoices. But in this case, you passed NULL for that, and the OS doesn't know any better, so it crashes when trying to use that NULL pointer. -slj- -- For information on using

Re: NULL memory after LstSetListChoices

2000-10-23 Thread Paulo Ricardo Colacino
ALL How can I show gif / jpeg images on Palm device ? Thanks Paulo Ricardo -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: NULL memory after LstSetListChoices

2000-10-23 Thread Nesse, Rustin
What exactly does this have to do with "NULL memory after LstSetListChoices"? Anyway, take a look at FirePad's FireViewer at www.firepad.com Hope that helps! -Rus http://www.act.avnet.com/ -Original Message- From: Paulo Ricardo Colacino [mailto:[EMAIL PROTECTED]] Se

RE: NULL memory after LstSetListChoices

2000-10-23 Thread Owen Flagel
the popSelect handler to prevent the OS from trying to do its default behavior... ...which is to just grab the text for the selected item from the array of strings that you originally passed to LstSetListChoices. But in this case, you passed NULL for that, and the OS doesn't know any better, so

LstSetListChoices

2000-10-22 Thread Karen M Serafino
SysFormPointerArrayToStrings to create the array of pointers to pass to LstSetListChoices, but it just blanks out the old items in the list and leaves it empty after I draw the form again.. Thank you. Karen Serafino -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: LstSetListChoices

2000-10-22 Thread Richard Burmeister
From: "Karen M Serafino" [EMAIL PROTECTED] Subject: LstSetListChoices Does anyone have a WORKING example or explanation of how to set the items of a list to string values read from a database? I do not have a stringtable resource with the items all set up; I need to read

Re: LstSetListChoices

2000-10-22 Thread Karen M Serafino
and popup trigger text were set up explicitly in a .RCP file. Thanks. Karen Serafino On Sun, 22 Oct 2000 14:14:13 -0500 "Richard Burmeister" [EMAIL PROTECTED] writes: From: "Karen M Serafino" [EMAIL PROTECTED] Subject: LstSetListChoices Does anyone have a WORKING example o

Re: LstSetListChoices

2000-07-07 Thread Steve Mann
My question is how can I define the first item to display? LstSetTopItem. Regards, Steve Mann -- --- Creative Digital Publishing Inc. 1315 Palm Street, San Luis Obispo, CA 93401-3117 --- 805.784.9461

Re: Problems with LstSetListChoices()

2000-06-22 Thread Neil Rhodes
When I call the function I get a Fatal Exception. Here's some of my source code: char ItemsText[2][10] = {"String1","String2"}; //... LstSetListChoices(pList,(char**)ItemsText,2); You've declared an array with 20 characters in it. You need to declare an array of char

LstSetListChoices

2000-04-26 Thread Rob Graber
) } next string } //now that there is a record containing an array of character pointers.. LstSetListChoices(listP, itemsText, numStrings); My problem is that I can't seem to figure out the declarations/syntax to set and pass the itemsText variable. Any ideas? Anyone already done

Re: LstSetListChoices

2000-04-26 Thread Amadeu Domenech
(PedidosDetalleEtiquetasList); LstSetListChoices(lst, MemHandleLock(choicesEtiquetasPtrsHandle), numEtiquetas); } return true; } Amadeu De: "Rob Graber" [EMAIL PROTECTED] Responder a: "Palm Developer Forum" [EMAIL PROTECTED] Fecha: Wed, 26 Apr 2000 09:34:32 -0500 Para: &

Re: ?LstSetListChoices -- Must it point to a static array?

2000-04-25 Thread Charles Rezsonya
Where can i find the newest printcap and msr stuff? i have a device that i doubt is updated in the existing printcap and want to know if it is at all supported, if not, i will manually hafta put all the guts into it. is there anything i should know about if i go about that road? i already

LstSetListChoices

2000-04-15 Thread Charles Rezsonya
i changed my app (because of the large arrays used for the list construction) to use memhandles to store the list items. when i set the list all i get is the first item that i set. the remainder isn't displayed but the arrow to scroll down is visable. what might cause the items not to be

  1   2   >