Plissken El Serpiente wrote:
I have one problem with one program I am currently working on.
When I create a new record for a database, exactly when I give values to an integer table of 24000 elements the simulator crashes sometimes depending on the value of j in the following code
for(j=0;j<12000;j++)
r.data[j]=100+50*sin(2*3.14159*j/200);//0.1*j;//
if (h) {
MemPtr p = MemHandleLock(h);
Err err = DmWrite(p, 0, &r, sizeof(r));
MemPtrUnlock(p);
DmReleaseRecord(elecDatabase, index, true);
}
What types are r & j?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/