on 09-26-2006 12:53 PM
Hi,
Problem am facing currently is like this.
After i activate my addon, work on it and then exit from SAP, my addon process is not getting closed by itself. Thereby each time i activate my addon and exit from SAP my addon process that many number of threads are created and these process are not getting closed by itself whereby my server has turned slow and manually i need to go and end these process through coding...
Can any one help me out ..
Thanks
Mini
Hi Mini,
Catch the Application Event and close the process explicitly.
Private Sub objApplication_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles objApplication.AppEvent
If (EventType = SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged Or EventType = SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition Or EventType = SAPbouiCOM.BoAppEventTypes.aet_ShutDown) Then
System.Windows.Forms.Application.Exit()
End If
End Sub
Its better you do all clean up actions such as GC.Collect() etc. Even after that it exist, you need to try with threading.
HTH
B.Ravi Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mini,
Did you ever look at the B1 SDK E-learning?
https://www.sdn.sap.com/irj/sdn/businessone-elearning
Here's the flashbook (in the intermediate courses) which answers this question - and more...
Regards,
Frank
Message was edited by: Frank Moebius
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.