cancel
Showing results for 
Search instead for 
Did you mean: 

Addon stopped but exe still running

Former Member
0 Kudos

Dear Experts,

I have a addon registered into the company database and I have a problem with it. When I push the Stop button in the Add-on manager the status change to Disconnected but the exe still running. Anybody know that what did I wrong, please help.

THank you in advance.

Nghia

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Nghia,

If this is the add-on you created, post your code that can end the add-on.

Thanks,

Gordon

Former Member
0 Kudos

Dear Gordon,

If I know as well when you push the Start or Stop button in the Addon-Manager this not affect by the source code. The AppEvent handled and worked smoothly.


 Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent
        Select Case EventType
            Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
                '//**************************************************************
                '//
                '// Take care of terminating your AddOn application
                '//
                '//**************************************************************
                System.Windows.Forms.Application.Exit()
            Case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged
                'AddMenuItems()
            Case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged
                oCompany.Disconnect()
                System.Windows.Forms.Application.Exit()
            Case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition
                 System.Windows.Forms.Application.Exit()
            Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
                System.Windows.Forms.Application.Exit()
        End Select
    End Sub

The problem is when I stop the addon at the Administration > Add-ons > Add-on manger on push the Stop button the addon.exe still running. When I push the Start button the addon.exe run twice and so on.

Thank you in advance.

Nghia