IÂm sorry, in the code I forgot to increment the counter variable... hehehe
bye -----Mensagem original----- De: Desenvolvimento 3 [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de agosto de 2004 10:24 Para: Palm Developer Forum Assunto: RES: Bus error while deallocating char** You must test if the memory that you want to deallocate is still refering to a valid address. And you must not forget to free all the items of the array before. I used to do something like the below: if (pVar != NULL) { while (counter < TOTAL_ITEM) { if (pVar[counter] != NULL) MemPtrFree(pVar[counter]); } MemPtrFree(pVar); pVar = NULL; } -----Mensagem original----- De: Merav Rubinstein [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 11 de agosto de 2004 10:14 Para: Palm Developer Forum Assunto: Bus error while deallocating char** In the handleEvent, when frmCloseEvent occures I deallocate some char** and I get a bus error. Do you have experience in this kind of problem? Thank you in advanced. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
