几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】memory problem creating block references (http://www.dimcax.com/hust/showthread.php?t=17186)

yang686526 2009-05-06 05:41 PM

【转帖】memory problem creating block references
 
memory problem creating block references
memory problem creating block references
i have a large (15mb) dwg file that imports well and exported okay with dd9,
but exhausts memory with dd11u1.
the file has many (>100000) point blocks - a referenced block with a few
attributes.
when there are many inserts (blkref->setblocktablerecord(blkid)),
an odarray in oddbblockreferenceimpl grows a little (8) at a time and
eats up/segments memory.
this should probably grow by larger chunks (>128?) or/and have a function to
reserve for an anticipated number of inserts.
i've recreated the behavior with the odwriteex example (i use borland libs)
which is attached - see the comments in the dbfiller.cpp file.
attached files

could someone look into this problem? seems to have slilpped between the cracks...
one of our guys fixed this problem, and the fix will be available in the upcoming 1.12 maintenance release.


所有的时间均为北京时间。 现在的时间是 05:07 AM.