I have a third party ocx that I used to create a VB6 dll. I am able to load it into my vb.net application. From there, all works fine. The only problem that I have is I cannot gracefully exit the program.
Attachment 98609
Any ideas how to clean this up?
I tried the following
Imports System.Runtime.InteropServices
Imports System.Runtime.InteropServices.Marshal
'------ exit code
Dim vb6_class As New VB6Project.MyVB6Class
ReleaseComObject(vb6_class)
This almost made it worse. I had trouble killing the app with the task manager. Clicking on the error message did not close the app.
I was also trying to find a way to dynamically load a vb6 dll and then hopefullys dispose it at the end, but that may have the same problem.
Attachment 98609
Any ideas how to clean this up?
I tried the following
Imports System.Runtime.InteropServices
Imports System.Runtime.InteropServices.Marshal
'------ exit code
Dim vb6_class As New VB6Project.MyVB6Class
ReleaseComObject(vb6_class)
This almost made it worse. I had trouble killing the app with the task manager. Clicking on the error message did not close the app.
I was also trying to find a way to dynamically load a vb6 dll and then hopefullys dispose it at the end, but that may have the same problem.