On Fri, Mar 11, 2005 at 07:34:32AM -0500, Regis St-Gelais wrote:
> Can we see the code you use to create the database.
> Its possible that there is a problem is there.
Unlikely - creating a database full of records is not exactly rocket
science.
> (I must confess, I did not look deeply into your code but it's the first
> thing that came into my mind.)
for (UInt16 i = 0; i < 2500; ++i) {
size = (::SysRandom(0) % 10 + 10) * 1024;
UInt16 recno(dmMaxRecordIndex);
::MemHandle rec(::DmNewRecord(db, &recno, size));
if (rec == NULL) {
// Alert with result of DmGetLastErr()
::DmCloseDatabase(db);
break;
} else {
void* recp(::MemHandleLock(rec));
::DmSet(recp, 0, size, 0);
::MemHandleUnlock(rec);
::DmReleaseRecord(db, recno, true);
}
}
--
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/