I created a Visual Basic DLL using Visual Studio 2008. I have referenced this DLL in a windows form. After I use it I want to dispoase of it. I set it to nothing. But when I use it again, it retained its memory values. This tells me it was not actually removed from memory.
Here is my code:
dim objNewCustomer as new WebToMacDll.clsMain
.RequestNameString = "NEWCUSTOMER"
.TableIDNoLong = 5
StatusMessageString = .StatusMessaageString
objNewCustomer = nothing
When I call this code a second time, all the variables have retained their previous values. If the objNewCustomer = Nothing would have removed it from memory, I believe the variable would have all been empty.
How do I remove the DLL from memory after calling it?