D
Derek Hart
Help!
I cannot get my DotNet application to shut down as an automation server from
Access.
I have the following simple code in Access that I am using to call a VB.NET
application:
Dim w As Object
Set w = CreateObject("MyProgram.MyProgramClass")
w.MyProgramDoSomething
Set w = Nothing
I have tried many things in DotNet. The final lines of the application are
the following:
System.GC.Collect()
System.GC.WaitForPendingFinalizers()
When I run the above code in Access to call the program, it runs it, which
opens up a DotNet WindowsForm, and then I shut down the WindowsForm, and
when I run the Access code again, it runs the DotNet app again, but the
DotNet app was never fully released. For example, Datasets that were filled
with data get added to, and the data is doubled! Task manager does not show
that the program is running, but Access still holds a connection. By the
way, if I exit Access and open it up again and run the above code, it works
fine. How do I properly exit the DotNet app?
Thank You,
Derek Hart
I cannot get my DotNet application to shut down as an automation server from
Access.
I have the following simple code in Access that I am using to call a VB.NET
application:
Dim w As Object
Set w = CreateObject("MyProgram.MyProgramClass")
w.MyProgramDoSomething
Set w = Nothing
I have tried many things in DotNet. The final lines of the application are
the following:
System.GC.Collect()
System.GC.WaitForPendingFinalizers()
When I run the above code in Access to call the program, it runs it, which
opens up a DotNet WindowsForm, and then I shut down the WindowsForm, and
when I run the Access code again, it runs the DotNet app again, but the
DotNet app was never fully released. For example, Datasets that were filled
with data get added to, and the data is doubled! Task manager does not show
that the program is running, but Access still holds a connection. By the
way, if I exit Access and open it up again and run the above code, it works
fine. How do I properly exit the DotNet app?
Thank You,
Derek Hart