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