Solved

Internet Explorer crash with ActiveX control

Posted on 2013-11-19
5
677 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 45

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now