Mandar Joshi wrote:
>
> Hi all,
>
> Can somebody throw some light on why this fails when nIterator reaches 12
>
> nNumRec = DmNumRecords(AssessmentQuestionDB); // there are 90 records in
> this database
>
> for(nIterator = 0; nIterator < nNumRec; nIterator++)
> {
> recordHandle = DmGetRecord(AssessmentQuestionDB, nIterator);
> recText = MemHandleLock(recordHandle);
> MemHandleUnlock(recordHandle);
> DmReleaseRecord(AssessmentQuestionDB, nIterator, false);
> }
Record 12 might have been DmDeleteRocrd()'ed instead of DmRemovedRecord()'ed.
MemHandleLock will fail in that case as recordHandle is NULL.
Hth
Holger Klawitter
--
Holger Klawitter
[EMAIL PROTECTED] http://wwwmath.uni-muenster.de/u/holger