Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Object termination and Automation error


Message #1 by "Jeffrey J Reddy" <jeffr@l...> on Tue, 24 Apr 2001 13:27:07 -0500
Sounds like something ids not registered properly or reading old code.

-----Original Message-----
From: Jeffrey J Reddy [mailto:jeffr@l...]
Sent: Tuesday, April 24, 2001 2:27 PM
To: professional vb
Subject: [pro_vb] Object termination and Automation error


I have an odd problem. I have an object that Terminates as soon as the
objects Initialize routine has ended.  Normally I would have thought
that I
had set the object earlier, so the Terminate sub was being called on the
older object, after Initializing the second or newer one. How ever, this
is
not the case here.

Dim objTruck as cCar

Set objTruck =3D New cCar

At the set line above I get this error:
Class does not support Automation or does not support the expected
interface.

Stepping through the code, the object is initializing fine, but
terminates
itself immediately following.

Any ideas to a solution would helpful.

Thanks in advance,

Jeffrey J Reddy
Software Developer/Programmer
Horizon Healthcare Technologies
(xxx) xxx-xxxx    Ext. 722








  Return to Index