Skip to Content
author's profile photo Former Member
Former Member

How to end an add on process

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2006 at 12:09 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 26, 2006 at 09:56 PM

    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...

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a1e85bf9-0901-0010-37ad-b2c987e05dec

    Regards,

    Frank

    Message was edited by: Frank Moebius

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.