Skip to Content
0
Former Member
Aug 01, 2006 at 10:37 AM

Problem "Locked Addon"

55 Views

Hi all

I have this problem...I've implemented an addon that use a singlesignon.. this addon should have capture an event when i pressed on Add button in a beforeaction and compile a matrix.. and it do it... but after few seconds the addon fall down!! with message AddOn Locked.

this happen only with Sp1_pl07 in release mode.. not in debug

this is a code:

  Private Sub m_app_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles m_app.ItemEvent


            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD Then
                If pVal.BeforeAction = False And pVal.FormTypeEx = OWN_FORM_TYPE Then
                    oForm = searchForm(m_app, OWN_FORM_TYPE)
                End If
            End If


           If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then

                If pVal.BeforeAction And _ pVal.ItemUID.Equals("1") And _
                        pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE And _
                            pVal.FormTypeEx = OWN_FORM_TYPE Then

                        BubbleEvent = True
                       '... fill matrix with data
                       'etc...
                Else
                   'after do nothing
                End If

            End If

End If

thanks a lot