Solved

Internet Explorer crash with ActiveX control

Posted on 2013-11-19
5
706 Views
Last Modified: 2013-12-16
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...
0
Comment
Question by:rhaak
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 39660730
IMO the best solution would be to create a debug build of your DLL and run the whole stuff in a debugger (VC++: Choose "Debug|Attach to Process"). When the exception occurs, you will be taken straight to the line that caused the error and by checking the data and parameters that are passed, you should be able to find out what the reason is and fix it.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39711980
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
LVL 86

Expert Comment

by:jkr
ID: 39711981
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.
0
 

Author Comment

by:rhaak
ID: 39722089
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.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question