Control Task manager kill service opened db conns

mpals

Member
Joined
Nov 15, 2005
Messages
13
Programming Experience
Beginner
Hello to all.

I developed a windows service that always have connection to a Oracle database.

I control (KILL) this connection when the service is stopped.
VB.NET:
Protected Overrides Sub OnStop()
        ' Add code here to perform any tear-down necessary to stop my 
service. And kill all db connections.

 End Sub

But if the user goes to the task manager and Kill the service the oracle connection remains active!

How can i control this?

Thanks in advance.
 
Back
Top