Module Variables Issue

netpicker9

Member
Joined
Dec 8, 2004
Messages
17
Programming Experience
1-3
HI,

I am having some problem with Module level Public variables.

I have a Windows Application (Developed in Visual Studio 2005, Vb.net) (Intially it was VB6 application we converted it using conversion tool).

I exiting this Vb.net App from VB6 ActiveX Dll. I am calling a class in Vb.net app from VB6 app.

Problem: I have many variables declared in Module section (VB.net), when I first call VB.net from VB6 and pass account number, both the apps working fine. And when I pass second account number(which is not even related to the first one),
account variable in the vb.net module still showing the first account number!!! Does module don't clear the variables?
Can anybody help me to solve this issue?

My Project settings:
Windows Application (VB.net 2.0)
Startup Object: Sub Main
I have created TLB file from EXE and then copied exe to GAC & referenced TLB file in VB6 application.

VB6 ActiveX DLL (which calls Vb.net)

Thanks
 
Back
Top