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]



Reply via email to