on 10-18-2008 1:37 AM
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 ?
Thanks.
hi,
Use Application event as shown below and follow the code given so that the addon process gets killed after stopping the addon or shutting down SAP B1
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,
varma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.