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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class_Terminate event firing upon instantiating an object

Status
Not open for further replies.

cmarotta

Programmer
Apr 23, 2002
2
US
I have this weird problem where the class_terminate event is firing right after the class_initialize event. The object isn't going out of scope or anything. It happens the 2nd time I create the object, the first time I create it, it works fine.

Thanks!
Carol
 
OK, I found the answer. The answer is, it's a modular level object and somewhere in the code I instantiated it, then exited the method without setting the object to nothing. So, the 2nd time around, the object was already instantiated and setting it to new again ran the class_terminate event.

Carol
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top