on 12-01-2011 3:06 PM
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
Dear Nghia,
If this is the add-on you created, post your code that can end the add-on.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.