On Fri, Oct 20, 2006 at 05:49:09PM -0500, Alex Villacís Lasso wrote:
This is the first attempt at a patch that will fix the debug assertion when icons are rendered into metafiles (triggered by Enterprise Architect 6.5, and possibly others). This patch simply removes mentions of memdc, created by a call to CreateCompatibleDC(), and redirects calls to GetDIBColorTable() to use the original DC instead of memdc. Intends to fix bug #6439. Now with patch.
This can't work, since the bitmap needs to be selected into the dc for GetDIBColorTable to succeed and you're not allow to call GetDIBits with the bitmap selected into the dc...
Huw.