hi all,
I am trying to dynamically create a form and 7 labels. The first 6 labels
are properly created and displayed. Code snippet is given below:
label=FrmNewLabel(&dynForm,ID,textP,x,y,font);
if(label != 0){
index=0;
index = FrmGetObjectIndex(dynForm,ID);
FrmShowObject(dynForm,index);
}
Seventh time (ie. to create seventh label) when I call FrmNewLabel()
it returns zero.
As per docs, FrmNewLabel() returns 0 when the call is not succesful and
common cause is lack of memory.But my application is small enough to
consume any large amount of memory.
Is there any limit on the number of elements to dynamicall create?
Can anyone tell me where I went wrong...
Anuradha
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/