FIX: Second Time Print from WebBrowser Causes AV in MSHTML.DLL |
Q169436
Attempting to print the contents of a WebBrowser control for the second time in Internet Explorer 3.x causes an Access Violation error in Mshtml.dll.
Use the following steps to work around the problem:
HMODULE hmod;
int i = 0, j;
// Try to remove MSHTML from memory
while( hmod = GetModuleHandle("MSHTML") )
{
FreeLibrary(hmod);
i++;
}
// Restore MSHTML's refcount
for (j = 1; j <= i; j++)
{
LoadLibrary("MSHTML");
} Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in the IE 3.02 File Upload add-on release.
For information on how to print from the WebBrowser control, please see the following article in the Microsoft Knowledge Base:
Q156732 HOWTO: Print from the Microsoft Web Browser ControlFor more information on the IE 3.02 File Upload add-on, please see the following article in the Microsoft Knowledge Base:
Q165287 Description of Internet Explorer 3.02 File Upload Add-On
Additional query words:
Keywords :
Issue type : kbbug
Technology : kbIEsearch kbAudDeveloper kbSDKIESearch
|
Last Reviewed: December 6, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |