cancel
Showing results for 
Search instead for 
Did you mean: 

Addon still in memory about SBO is closed

Former Member
0 Kudos

Hi

I have written an VB6 addon for SBO 2004 which works fine, but it still stays in memory after SBO has been closed. I have an end statement in the aet_shutdown event but it seems to ignore it.

Can anyone help me please ?

Regards Andy

ps What's the best way of installing a VB6 addon as well please ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You must use also aet_ServerTerminition

Private Sub SBO_App_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes)
Select Case EventType
        Case aet_ServerTerminition
            End
        Case aet_ShutDown
            End
    End Select
End Sub

Kind Regards

Salvador Biot

Former Member
0 Kudos

SBO still communicates with the addon after this event. If you put in a sleep-function after this event (5 sec) you can use the END-statement. If you don't do this you will experience a timeout when trying to use the end-statement in VB after the shutdown/ServerTerminition - event.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Salvador

That worked fine

Thanks

Regards Andy

Former Member
0 Kudos

Hi,

I met the same problem,and my experience is

to set the connect string by your self like

this,and the problem can be avoid.

'// by following the steps specified above, the following

'// statment should be suficient for either development or run mode

Dim sConnectionString As String

' sConnectionString = Environment.GetCommandLineArgs.GetValue(1)

sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"

'// connect to a running SBO Application

Try ' If there's no active application the connection will fail

SboGuiApi.Connect(sConnectionString)

Catch ' Connection failed

System.Windows.Forms.MessageBox.Show("No SAP Business One Application was found")

End Try

'// get an initialized application object

SBO_Application = SboGuiApi.GetApplication