rhaak
asked on
Internet Explorer crash with ActiveX control
We have developed an ActiveX control in Visual Basic 6.0 for use in a webpage. When users navigate to and from the page that uses the ActiveX control several times, Internet Explorer will crash.
The ActiveX uses a dll we have developed (VC++) that links to a 3rd party dll. I found that if I copy out all of the code that references this 3rd party dll, Internet Explorer will not crash. However, this is not a viable solution.
I noticed the ocx file is still loaded after navigating away from the page. In other words, I am not able to delete the ocx file after navigating away from the page, but I can delete all of the dll files it uses, including our dll and all 3rd party dlls we reference. Could this be the issue? (that the ocx is still loaded)
Any advice on where to go from here is greatly appreciated...
The ActiveX uses a dll we have developed (VC++) that links to a 3rd party dll. I found that if I copy out all of the code that references this 3rd party dll, Internet Explorer will not crash. However, this is not a viable solution.
I noticed the ocx file is still loaded after navigating away from the page. In other words, I am not able to delete the ocx file after navigating away from the page, but I can delete all of the dll files it uses, including our dll and all 3rd party dlls we reference. Could this be the issue? (that the ocx is still loaded)
Any advice on where to go from here is greatly appreciated...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The provided information definitely is enough as an advice on how to proceed in order to be able to fix the error, so I object to a deletion.
ASKER
Unfortunately I was not able to debug the solution using the method you suggested. However, I'm almost certain the issue is in the 3rd party code used to access hardware. There appears to be a small memory leak, and since the ActiveX control is never fully unloaded in Internet Explorer, it becomes an issue after the control is loaded and unloaded several times and IE ends up crashing.
Not enough information to confirm an answer.