Solved

Cannot unregister a DLL.

Posted on 2006-07-04
3
289 Views
Last Modified: 2013-12-04
I am using the Java ActiveX Bridge which creates and registers a DLL for use in VBA.  Not knowing the the Java Packager was registering the DLL I used REGSVR32 to register the DLL again which created multiple copies of it.  I've tried using REGSVR32 /u and it tells me that it unregisters it.  But I can't seem to get rid of those orphaned instances.  When I try to add the Components in VB6 it tells me they are invalid.  Do I have to alter the registry manually and if so, can you point me in the right direction as to which ones to access?

Thanks
0
Comment
Question by:techhound
  • 2
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 17039818
Altering the registry does not have any effect on instances that are already running, it just means that new instances of that COM object can't be created anymore. You'll have to close/terminate all other processes that are using this class.
0
 
LVL 5

Accepted Solution

by:
bastibartel earned 500 total points
ID: 17049478
Set this value to 1 (only on Windows NT 4.0 - I believe):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\AlwaysUnloadDll

Get ProcessExplorer
http://www.multiware-distribution.ch/produkte/Northern/PrExplorer.htm
and locate the executable(s) using the dll and kill them

or
try and start in safe mode and remove the dll.


Cheers,
Sebastian
0
 
LVL 86

Expert Comment

by:jkr
ID: 17053654
Funny, "AlwaysUnloadDll" is not supported on W2k, XP and later: http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_programming/debugging.asp ("Debugging with the Shell"):

"The Shell automatically unloads a DLL when its usage count is zero, but only after the DLL has not been used for a period of time. This inactive period might be unacceptably long at times, especially when a Shell extension DLL is being debugged. For operating systems *prior* to Windows 2000, you can shorten the inactive period by adding the following information to the registry. [...]"
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
display png images in VB6 4 381
WPF MainWindow update textbox from another class... 6 102
What .NET URL re-routing tool did I use? 2 37
Windows ICD FFU Issue 4 14
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 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

12 Experts available now in Live!

Get 1:1 Help Now