no, don't do that.  DmNewRecord takes a UIntPtr as the second parameter.
Jim had that part right.

(btw, Jim's probably on OS 2.0, judging from the line number in the error).

Jim, using POSE you can Continue past the err, and then in your code you can
call DmGetLastErr() and find out exactly what error you're getting.  but i
bet you opened the database as readonly.



-----Original Message-----
From: Dave Lippincott <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 26, 1999 2:41 PM
Subject: Re:


>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.
>>
>>
>
>
>

Reply via email to