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

yang686526 2009-05-04 05:30 PM

【转帖】cannot terminate process
 
cannot terminate process
cannot terminate process
hello,
after using dd 1.13.02, i have problems terminating the application.
i find that when the view window is being destroyed, i cannot release the device context of the wingdi device.
prior to issuing the releasedc, i do a m_pdevice.release(). but this function does not have a return value to test if successful. could failure of the release of the device cause the releasedc to fail also?
other than causing a memory leak, could this be a cause of the problem?
normally, the application should proceed to exitinstance after the view window is destroyed but this function is not being executed at all.
thanks...

robert,
1. is it possible to reproduce this problem in our odamfcapp sample?
2. did you put device context to device in manner cdwgviewer::createdevice() does it? (pproperties->putat("windowhdc", odrxvariantvalue((long)m_hwindowdc));)
sincerely yours,
george udov


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