查看单个帖子
旧 2009-05-06, 06:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)