高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】numrefs and createdatabase
numrefs and createdatabase
numrefs and createdatabase
hi,
is this normal that numrefs is equal to 2 after a createdatabase?
i'm using version 2.06.03
thanks
yes, it is normal. (it will be destroyed, when reference count wil reach 1)
also, any open dbro object has 2 references.
vladimir
when i release the db, the memory it's not freed, i thought that was the problem, but it should me something else.
thanks
if you store a smart pointer to oddbdatabase or some db object they will not be destoyed untill the smart pointer goes out of scope (destroyed) or assigned another value (null for example).
after i release it, i assign null value to the variable.
|