几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】numrefs and createdatabase (http://www.dimcax.com/hust/showthread.php?t=17362)

yang686526 2009-05-06 06:43 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 01:10 PM.