32K of records up to 63.8K each (64K minus some record overhead)
-----Original Message-----
From: Thiago Rossato <[EMAIL PROTECTED]>
To: Palm List <[EMAIL PROTECTED]>
Date: Monday, November 08, 1999 2:45 PM
Subject: Database size limitation?
>Is there any limitation for databases size?
>We found in the documentation something about 64k of maximum size per
>database, but we've created a database with about 300k using about 5000
>40-bytes records.
>If this 64k limitation is for real, how can we index those 5000 records and
>get their right values?
>The 2 times we got bug were:
>1. when we finished including the last of 5000 records.
>2. when we tried to delete it.
>
>
>Has someone had any experience in this approach?
>Thanks in advance.
>
>
>The source code that we're using to generate the database:
>
>void Create ()
>{
> int cont;
> for (cont = 0; cont < 5000; cont ++)
> {
> unsigned short indice;
> VoidHand RecHandle = DmNewRecord (db, &indice, sizeof (Produto));
> Ptr RecPointer = MemHandleLock (RecHandle);
> Produto * produto = MemPtrNew (sizeof (Produto));
> char string [200];
> produto->preco = cont;
>
> StrIToA (string, cont);
> StrCat (string, " registros");
> WinDrawChars (string, StrLen (string), 20, 20);
>
> DmWrite (RecPointer, 0, produto, sizeof (Produto));
> MemPtrUnlock (RecPointer);
> DmReleaseRecord (db, indice, true);
> }
>}
>
>
>--
>
>
>Thiago Rossato - Desenvolvimento
>Sydeco Campinas
>[EMAIL PROTECTED]
>
>
>
>