Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OCX Error 372  (Failed to load control)

Posted on 2012-05-30
6
Medium Priority
?
1,965 Views
Last Modified: 2012-06-24
Hi All,

We have a legacy vb6 app that is still running.  Every once in a while, we'll get a "failed to load control" <control> from name.ocx.  Your version may be outdated.

We are manifesting the file and there should only ever be one version of the DLL.

Other Factors:  

1)  We are running it off of a mapped drive
2)  Error most commonly appears when a user uses a different computer than the one they are normally logged into.

EG:  User A is logged off, User B logs in, runs app, error.

So far it's not consistently reproducable.  If we wait for a while (approx 15 minutes or so . . . and/or a couple of reboots) the problem goes away.


Information is coming from users so is sporatic and questionable at best . . . but trying to narrow down the places to look.

Thanks in advanced.
0
Comment
Question by:Kyle Abrahams
  • 3
  • 2
6 Comments
 
LVL 17

Expert Comment

by:vb_elmar
ID: 38028907
The user(s) could copy the "application.exe" and the .ocx file to a local folder and then run the copied exe (and the copied .ocx) from that local folder.
0
 
LVL 41

Author Comment

by:Kyle Abrahams
ID: 38029123
We're trying to avoid that for easier publishing and what not.  This works for a bunch of other apps but for some reason this decides to bomb . . . some of the time.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 300 total points
ID: 38031211
Could it be antivirus blocking the file?
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
LVL 41

Accepted Solution

by:
Kyle Abrahams earned 0 total points
ID: 38034100
Nice suggestion CC; but after some more digging we found that a dependant component wasn't being loaded which we believe was causing the issue.  We're waiting to see if the error message comes back up.
0
 
LVL 17

Assisted Solution

by:vb_elmar
vb_elmar earned 1200 total points
ID: 38034682
To get informations about the running processes and all modules that are loaded by the vb6 program try  TaskInfo v10.0.0.336  (2872KB). The program is for Windows and free for personal non-commercial use.
0
 
LVL 41

Author Closing Comment

by:Kyle Abrahams
ID: 38117800
Was an issue with one of the dependencies of our component causing an issue.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

885 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