Fixed ActiveX error: Automation Error: the object invoked has disconnected from its clients
Fixed ActiveX error: Automation Error: the object invoked has disconnected from its clients
We have a custom ActiveX Applet we built which was randomly throwing this error, it was happening on a new machine only and it was rather random. Automation Error: the object invoked has disconnected from its clients
Sometimes the error did not happen at all. The new machine had a fresh install of XP on it. Lots of other new XP machines were not running into the problem.
We researched and found that the problem always happened during some sort of usage with the “MSINET.OCX” activex object. This led us to an article on Microsoft’s support site with this article.
http://support.microsoft.com/kb/254908
Turns out the new machine was dual core which somehow caused problems with threading of the object, the problem was fixed on a later version of Visual Studio so if I redeployed the application with the latest MSINET.OCX object it should have worked. As a quick fix though I downloaded a later version MSINET.OCX to the machine and reregistered it so that the system would use that object.
regsvr32 /u msinet.ocx
regsvr32 msinet.ocx
Voila, no more random error.