Hello,
Some functions do not complete before returning such as DbgMessage.
Possibly it is an asynchronous function which is a good idea. BUT.... when
processing within a loop, its data is not written/flushed by the time the
next call is executed.
Example:
Char* pData;
for (idx=0;idx<10;idx++) {
pData = CreateSalesDbRec("Test rec#",idx);
DbgMessage(pData);
/* In order to display all 10 records, must wait for OS to catch up
*/
SysTaskDelay(SysTicksPerSecond()*.1);
}
Without the call to SysTaskDelay the output looks like this:
Test rec#0
Test rec#1
Test rec#2
Test rec#3
Test rec#4
Test rec#5
Instead of displaying 0 through 9. There has to be a better way!!!
Thanks for your input....
George Aslanis
[EMAIL PROTECTED]
--
George Aslanis
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/