KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a VB6 app that has a ton of 3rd party components. The app works well, but on exit (and only when running as a standalone EXE, e.g. not in the IDE), it pops up an error message: I've seen errors like these before but typically it says which component is missing dependencies or is not registered properly. I ran it through Process Monitor and got the following files that it cannot find: And then it quits. I googled the file names that it cannot find and can't seem to find anything. It seems like its searching for a variation of MSComENU, MSComEN and MSCOENU dlls. I checked and rechecked to make sure that all the the 3rd party components are there and they are - the application functions fine, it wouldn't if they weren't there. It is worth noting that error occurs after the last line of VB6 code (in Form_Unload event) has fired. I know this because the last line is a message box that does appear. Much, much later EDIT : I finally got back to dealing with the problem and figured it out by process of elimination (and it was a loooong process). In the end it had nothing to do with any MSCOMM*.dll entries. In fact, I do not know why they still show up in Process Monitor. The problem was much simpler. I had several 3rd party controls on the main form. In an effort not to pollute the main form with a ton of event handling code, I delegated these controls to a new class, like so: ' declaration code in main form' Private WithEvents moDelegateObject as clsDelegateObject ' still in the main form, after initialization' Set moDelegateObject = new clsDelegateObject With moDelegateObject Set .ThirdPartyCtlHandler1 = me.ThirdPartyCtl1 Set .ThirdPartyCtlHandler2 = me.ThirdPartyCtl2 S
Tags (comma-separated)
Save Edits
Cancel