[EMAIL PROTECTED] wrote in message <[EMAIL PROTECTED]>... > >So, after every h=DmGetRecord(db, r), I should do a MemHandleFree(h)? >But if I do that, I can't do anymore DmGetRecord(db, r) > >Richard Hartman wrote: >> >> Your are not allocating memory for the chunk you are using, but you >> are kind of laying claim to it for a while. Yes, you should release >> the record handle when you are done with it. > >
No, you want to pair functions from the same subsystem. MemHandleFree() is the match to MemHandleNew(). DmReleaseRecord() is the match to DmGetRecord(). If you only want to read (and not alter) the record, you can get the handle to it with DmQueryRecord(). This does not "lock" the handle, and you do not need a corresponding release. -- -Richard M. Hartman [EMAIL PROTECTED] 186,000 mi/sec: not just a good idea, it's the LAW! -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
