Skip to Content
0
Former Member
May 25, 2005 at 11:56 AM

Failed to stop Add-on

126 Views

Hello SBO programmer

With the AddOn manager I force termination of the properly running AddOn by pressing the button "Stop".

Then the system message "Failed to stop Add-on" pops up and Me as user has it to quit.

But the application has exited the thread and no more process is running what I can recognize with the task manager.

What goes wrong here?

What do I have to take into consideration at termination of the AddOn too what I not already have?

Best regards and thanks for help.

Guido Baumeler

The VB.NET code sample

Private Sub SBO_Application_AppEvent(...) Handles SBO_Application.AppEvent
  Select Case EventType
    Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
      'Terminate local stuff and destroy objects
      TWUUnloadEngine()

      Sleep(3000) 'but there is no positive effect

      Environment.ExitCode = 0  'but there is no positive effect
      System.Windows.Forms.Application.Exit()

    Case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition
      'Terminate local stuff and destroy objects
      TWUUnloadEngine()

      Sleep(3000) 'but there is no positive effect

      Environment.ExitCode = 0  'but there is no positive effect
      System.Windows.Forms.Application.Exit()