RE: Wy i,m getting this error?

2003-01-15 Thread Kevin OKeefe
Palm Developer Forum Subject: RE: Wy i,m getting this error? I'm not sure why the compiler is complaining, but your code does seem to be wrong. if (!h) means if there is no handle, so you definitely don't want to unlock it if it was null. Besides... where's the MemHandleLock to match

Re: Wy i,m getting this error?

2003-01-15 Thread Oliver
> When i put the function MemHandleUnlock(h); > before the second 'return', the compiler > generates a error. Why? Maybe you could tell us what the error is? See http://www.tuxedo.org/~esr/faqs/smart-questions.html Playing compiler/parser for a moment, may I suggest adding some { } around the

RE: Wy i,m getting this error?

2003-01-15 Thread Kevin OKeefe
iel de Oliveira [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 3:57 PM To: Palm Developer Forum Subject: Wy i,m getting this error? I have the following code in my app: void loadRCAS(UInt16 Modo) { //Declara variavel Count: UInt16 Count; //Configura os ponteir

Re: Wy i,m getting this error?

2003-01-15 Thread Don
Régis Daniel de Oliveira wrote: I have the following code in my app: void loadRCAS(UInt16 Modo) { //Declara variavel Count: UInt16 Count; //Configura os ponteiros para a lista FormPtr form = FrmGetActiveForm(); ListPtr lptr = (ListPtr)FrmGetObjectPtr(form, FrmGetObjectI

Wy i,m getting this error?

2003-01-15 Thread Régis Daniel de Oliveira
I have the following code in my app: void loadRCAS(UInt16 Modo) { //Declara variavel Count: UInt16 Count; //Configura os ponteiros para a lista FormPtr form = FrmGetActiveForm(); ListPtr lptr = (ListPtr)FrmGetObjectPtr(form, FrmGetObjectIndex(form, lstRCAS)); //Ve