|
Aaron:
You
are correct. Current_DB() actually combines the operations:
EData
= Current_EDB();
Data =
"Lock_EDB(EData);
It is
actually the old method of getting a locked database, and has been entirely
superceded by the above code in all Geosoft GXs.
You
should replace your own usage with the above, and remember to "Unlock" the
database using
UnLock_EDB(EData);
You
also should have no need to call Destroy_DB, because "Data" above is an
existing handle, not an object that you create.
In
summary, you would use:
EDB
EData;
DB
Data;
for (i=0; i<3;
i++) {
EData = "Current_EDB();
Data = "Lock_EDB(EData);
....
....
....
UnLock_EDB(EData);
}
The
following four functions are effectively obsolete, and, although supported,
should be replaced by the equivalent EDB functions:
//
Destroy_DB Closes a Database
(obsolete). (No current equivalent)
// Destruct_DB Destructs a Database Object (obsolete). (No current equivalent) // Current_DB Returns the Current Database Handle (obsolete). (Current_EDB, Lock_EDB) // SetCurrent_DB Sets the current database to this database (obsolete). (MakeCurrent_EDB, Lock_EDB) I have just updated the db.gxh file to note this, so
other users will not be mislead... Stephen Cheesman
_______________
|
- [gxnet]: Database locks skyhunter
- RE: [gxnet]: Database locks Stephen Cheesman
- RE: [gxnet]: Database locks Stephen Cheesman
