Community
Participate
Working Groups
When I create ActiveX wysiwyg HTML editing contol instance from workbnech and then close the workbench, the control seems to be unloaded cleanly from memory. But VAJ still holds ActiveX control's(hpbctl.dll) file handle. This is a problem to me, since to replace the file, I need to close VAJ everytime, and this is very time consumig process. I do not know who is holding the handle but number of OleInitialize call may not balance to OleUninitialize in SWT. Could you investigate this problem? If you need more information, please ask me any time. Do you guys have any tips to get the activeX unloaded from VA/Java without shutting it down. NOTES: VI (3/26/2001 9:29:52 AM) The problem is that OleInitialize is called when the COM class is loaded but OleUninitialize is never called. The reason OleUninitialize is not called is because there is no place in the COM class or anywhere else in the Ole stuff that can tell when all users of OLE have been disposed. The best solution is probably to move both OleInitialize and OleUninitialize into the Display class. VI (11/07/2001 11:55:03 AM) Add a call to CoFreeUnusedLibraries which "unloads any DLLs that are no longer in use and that, when loaded, were specified to be freed automatically."
The code was updated to call CoFreeUnusedLibraries. In addition, VAJ is no longer a supported platform.