on 05-18-2005 5:30 PM
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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Salvador
That worked fine
Thanks
Regards Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.