My bad! I was looking at the wrong function in the manual.
----------
From: Dave Lippincott <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re:
Date: Friday, March 26, 1999 5:08 PM
Don't pass the address of the index number.
> VoidHand h = DmNewRecord(anyDB, &index, 1);
change to
VoidHand h = DmNewRecord(anyDB, index, 1);
-----Original Message-----
From: Jim Selph <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 26, 1999 4:30 PM
>Hello,
>
> System win95, emulator d25, R5 codewarrior
>I have been getting an error (DataMgr.c line 3805 err creating new rec) on
>this snippet of code while trying to initialize a DB:
>
>int x = 0;
>UInt index = 0;
>
>for(x=0; x < num; x++)
> {
> VoidHand h = DmNewRecord(anyDB, &index, 1);
> if(h)
> {
> PackDB(array[x], h);
> DmReleaseRecord(anyDB,index,true);
> }
> }
>my error is generated on h = DmNewRecord() line.
>Any help on this would be welcome.
>The DB is open.
>
>