做了一个ocx,一个dll。
ocx在网页里调用,dll为Regular dll。dll里使用gdi+在::FreeLibrary(m_hDll)时出现问题了dll里调用ExitInstance里的GdiplusShutdown(gdiplusToken)死锁,无法进行下去。
有两种情况,直接关闭IE,不经过ocx的析构,程序就直接调用ExitInstance里的GdiplusShutdown(gdiplusToken),程序没问题。
另一种情况是在地址里改变http地址,经过ocx的析构,再调用ExitInstance里的GdiplusShutdown(gdiplusToken),GdiplusShutdown(gdiplusToken),就死锁了