Skip to Content
0
Former Member
Dec 12, 2008 at 07:42 AM

Terminating Add-on exe Process in TaskManager

174 Views

Hi,

I have developed an add-on which loads and works just fine, however when I stop the Add-on in SAP and/or shut down SAP B1, the Add-on exe process remains running in task-manager.

How do I ensure that the process terminates when I stop it or shutdown SAP ?

Also I have Used the following Code for exit the application.Still it is running :

Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent

If EventType = SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged Or EventType = SAPbouiCOM.BoAppEventTypes.aet_ShutDown Then

System.Windows.Forms.Application.Exit()

End If

End Sub

Regards

Mohana