Reputation: 11240
I'm using VB.NET for a web-application that starts some process using CreateObject, like this:
Dim AVObject = CreateObject("avwin.application")
After all is done everything get closed down en stopped using the proper release functions, however, for some reason the process remains.
Is there some way in which I can get the process id of the started process, in order to explicitly kill it just before termination?
Thanks
Upvotes: 4
Views: 3764
Reputation: 6465
I never come across a specific solution to this problem, but logically I will create a workaround using below pseudo logic (I think it should work in a controlled environment)
Upvotes: 2
Reputation: 4215
After all is done everything get closed down en stopped using the proper release functions, however, for some reason the process remains.
Have you tried to force a GC or called ReleaseCOMObject() method?
Best
Adriano
Upvotes: 1