几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】gdi leak with ttf-fonts (http://www.dimcax.com/hust/showthread.php?t=16354)

yang686526 2009-05-05 11:10 AM

【转帖】gdi leak with ttf-fonts
 
gdi leak with ttf-fonts
gdi leak with ttf-fonts
hi,
i have a gdi leak with ttf-fonts by reading files without drawing.
in my guess the problem is in oddbfontservice
- by reading the file oddbfontservice create for each ttf-font a dc and for this dc a font handle.
- by closing the file the dc will be released but the font-handle will be selected and will not destroyed
more information:
- version dwgdirect 2.2.0.0 for windows
- use the attached dxf-file with two different ttf-fonts
- i try it with the program odreadex
- set breakpoint to svcs.readfile and oduninitialize();
- look for gdi ?handle with gdiindicator.exe
- do the step readfile
- look for gdi ?handle with gdiindicator.exe 2 new dc and fonts
- do the step oduninitialize
- look for gdi ?handle with gdiindicator.exe the dc are released but the fonts exits
i hope you can find the problem
regard
attached files
hi koesters,
it is really bug dwgdirect. we are able to reproduce it. it will be fixed in next release.thank you for so detail description.
best regards,
sergey z.


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