D
Derek Hart
I have a vb.net application in which I have used global variables. I
converted it to become a late bound automation server (it is a dll now),
where I simply want to call it from an Access application and run it. To my
surprise, when the Access app calls the application with CreateObject, it
works fine the first time. Then I set the reference to nothing. Then I run
it again, and all the global variables are still filled with data, such as
datasets that have data in them, and they get doubled up with data! If I
closed Access and re-run it, then it is fine again. So Access actually
seems to call the same instance, even though I could swear it should be shut
down. I have seen some posts on .Net not being able to be an automation
server that easily, but this is a simple program I just want to call. Any
ideas on how to shut it down?
Derek Hart
converted it to become a late bound automation server (it is a dll now),
where I simply want to call it from an Access application and run it. To my
surprise, when the Access app calls the application with CreateObject, it
works fine the first time. Then I set the reference to nothing. Then I run
it again, and all the global variables are still filled with data, such as
datasets that have data in them, and they get doubled up with data! If I
closed Access and re-run it, then it is fine again. So Access actually
seems to call the same instance, even though I could swear it should be shut
down. I have seen some posts on .Net not being able to be an automation
server that easily, but this is a simple program I just want to call. Any
ideas on how to shut it down?
Derek Hart