Hello,
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);
}
Normally it works with values under 20000 but not more than that. I would be very
grateful if you could give some advice, I am not an expert in Palm programming, it´s
my first experience..
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/