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!

Class_initialize is not getting fired

Status
Not open for further replies.

karthik555

IS-IT--Management
Oct 15, 2002
36
IN
Hi!

I use a VB DLL in which I have written code to form DB Connection String (read from the registry)

This logic is written in a subroutine (public) in a modlue of the project.

I call this subroutine from Class_Initialize of the Class File.

When instantiate this DLL in another project and call another routine in the DLL (of the same class) I expect the Class_Initialize to have fired first and the connection string to be ready. However this does not happen.

WHen I put a trace (basically write few lines into a text file at each of the routines), I find that the routine that I call from the DLL is getting fired but not the Routine to be called from Class_Initialize.

What could be wrong?

Thanks in advance.

Karthik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top