几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】ext Style Causes Lockups In Custom Dll (http://www.dimcax.com/hust/showthread.php?t=18739)

yang686526 2009-05-07 04:49 PM

【转帖】ext Style Causes Lockups In Custom Dll
 
text style causes lockups in custom dll
text style causes lockups in custom dll
hi,
we're having some trouble tracking down a bug in a dll statically linked to the dwgdirect v2.4.2 vc6 libraries.
the module is used in both a visual basic 6 application and a vb.net application. the module usage in both applications are identical, but in the vb6 application we get lock-ups on a particular file. the cause has been tracked down to a single text style + text inserted with this style. a file which causes a lockup has been attached.
i have not been able to reproduce the lockup in any of your demo applications. in our module, the lockup occurs in the opengl device update() function (more specifically odgsbasevectorizedevice::update()).
the inconsistent behaviour leads me to believe this is related to a memory error somewhere, so if a dwgdirect developer could check for errors (e.g buffer overflows) related to this file, i would be grateful.
update: i encountered another file with the same symptom. this was resolved by changing the font style "times new roman" to something else (e.g tahoma). this "fix" also works for the attached file.
attached files


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