Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateObject on dll occasionally fails

Status
Not open for further replies.

Wootham

Programmer
Dec 12, 2002
2
US
Hi. I am running MTS on an NT 4.0 sp6 server. In MTS I have several objects created in vb5. My clients are running a front end also written in vb5.
Occasionally (2-4 times a day out of about 200 calls to an oject), we are seeing errors in the NT event log such as this: The server {clsID} did not register with DCOM within the required timeout.
I have found that these errors are coming at the time I instantiate the object using CreateObject(dll). I am using early binding, but not New. It has been suggested to Dim using WithEvents. Will this help me? Any other suggestions?
 
I believe they are set for multiple, but we found the problem to be HARDWARE related - apparently the nic card on our database server was crapping out and throwing many errors. I learned that sometimes things go wrong from causes other than code. Can you imagine that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top