Erro ao efetuar refresh em grid na nova medição

Ao chamar oView:Refresh() ocorre o seguinte errorlog,:

stack depth overflow in function FWRETFUNC on FWRETFUNC(APLIB190.PRW) 05/09/2022 10:01:38 line : 155

If (cIdPonto == "FORMPRE")

            If ((nOpc == 1 .OR. nOpc == 4 .OR. nOpc == 5)  .AND. cIdModel == "CXNDETAIL" .AND. cCampo == "ISENABLE") .AND. aParam[6] == "CXNDETAIL"
                CnaMun()....


// Carrega o nome do municipio na grid do CXN
Static Function CnaMun()

Local oModel,oMdlCND,oMdlCXN
Local nLin        := 0
Local cContra    := ""
Local cRevisa    := ""
Local cPlan        := ""
Local nCnt        := 0
Local oView     := FwViewActive()

oModel  := FwModelActivate()
oMdlCND := oModel:GetModel("CNDMASTER")
oMdlCXN := oModel:GetModel("CXNDETAIL")

nLin := oMdlCXN:Length()
If oMdlCXN:Length() > 0
    nLin := oMdlCXN:nLine
    cContra    := oMdlCND:GetValue("CND_CONTRA")
    cRevisa    := oMdlCND:GetValue("CND_REVISA")

    For nCnt:=1 to oMdlCXN:Length()
        oMdlCXN:GoLine(nCnt)
        cPlan     := oMdlCXN:GetValue("CXN_NUMPLA")    
        oMdlCXN:LoadValue("CXN_XXMUN",Posicione("CNA",1,xFilial("CNA",cFilCtr)+cContra+cRevisa+cPlan,"CNA_XXMUN"))
        oMdlCXN:LoadValue("CXN_XXMOT",Posicione("CNA",1,xFilial("CNA",cFilCtr)+cContra+cRevisa+cPlan,"CNA_XXMOT"))
    Next

    If nLin > 0
        oMdlCXN:GoLine(nLin)
    Endif

    If oView != Nil .And. oView:IsActive() .And. !isBlind()
        //oView:Refresh()
        oView:Refresh('VIEW_CXN')
    EndIf

EndIf

Return Nil

Solicito ajuda para saber o que estou fazendo de errado. Obrigado!!


2022-09-12T10:21:00.016000-03:00 6764| /*------------------------------------------------------- THREAD ERROR ([6764], Marcos, DESKTOP-GD4KKTF) 12/09/2022 10:21:00 stack depth overflow in function FWRETFUNC on FWRETFUNC(APLIB190.PRW) 05/09/2022 10:01:38 line : 155

[build: 7.00.210324P-20220608] [environment: P12BASETST] [thread: 6764] [dbthread: 9200] [dbversion: 21.1.1.8] [dbapibuild: 20210202-20220802] [dbarch: 64] [dbso: WINDOWS] [rpodb: top] [localfiles: CTREE] [remark: Emp :01/01 Logged :Administrador SIGAGCT Obj :CNTA121 - Nova Medição] [threadtype: RmtSockThread] Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 155 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F| FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 265 Called from FWFORMFIELDSMODEL:ISENABLE(FWFORMFIELDSMODEL.PRX) 05/09/2022 10:01:39 line : 3225 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 164 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:REFRESH(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 3410 Called from CNAMUN(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 274 Called from U_CNTA121(CNTA121_PE.PRW) 12/09/2022 10:19:10 line : 71 Called from EXECBLOCK(APLIB190.PRW) 05/09/2022 10:01:38 line : 163 Called from FWCLFORMBEFORE(MPPREPVALIDATION.PRW) 05/09/2022 10:01:39 line : 373 Called from FWFORMBEFORE(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4025 Called from {|A,B,C,D,E,F|FWFORMBEFORE(A,BPRE,"FORM",B,C,D,E,F)}(MPFORMMODEL.PRX) 05/09/2022 10:01:39 line : 389 Called from FWFORMGRIDMODEL:ISENABLE(FWFORMGRIDMODEL.PRX) 05/09/2022 10:01:39 line : 5779 Called from FWFORMVIEW:EVALENABLES(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 4146 Called from FWFORMVIEW:ACTIVATE(FWFORMVIEW.PRW) 05/09/2022 10:01:39 line : 1708 Called from FWMVCWINDOW:SHOW(FWMVCWINDOW.PRW) 05/09/2022 10:01:39 line : 179 Called from FWMVCWINDOW:ACTIVATE(FWMVCWINDOW.PRW) 05/09/2022 10:01:39 line : 215 Called from FWVIEWEXEC:OPENVIEW(FWVIEWEXEC.PRW) 05/09/2022 10:01:39 line : 488 Called from FWEXECVIEW(PROTHEUSFUNCTIONMVC.PRX) 05/09/2022 10:01:39 line : 4470 Called from CN121VIS(CNTA121.PRW) 24/08/2022 11:50:58 line : 4293 Called from CN121MENU(CNTA121.PRW) 24/08/2022 11:50:58 line : 13639 Called from FWFORMBROWSE:EXECUTE(FWFORMBROWSE.PRW) 05/09/2022 10:01:39 line : 1167 Called from {|| OSELF:EXECUTE("CN121MENU", 1, 0,"VISUALIZAR", 4,"(4)","","", 4) }(FWFORMBROWSE.PRW) 05/09/2022 10:01:39 line : 579 Called from ::MSDIALOG:ACTIVATE Called from FWMBROWSE:ACTIVATE(FWMBROWSE.PRW) 05/09/2022 10:01:39 line : 700 Called from CNTA121(CNTA121.PRW) 24/08/2022 11:50:58 line : 50 Called from __EXECUTE(APLIB090.PRW) 05/09/2022 10:01:38 line : 721 Called from MDIEXECUTE(APLIB260.PRW) 05/09/2022 10:01:38 line : 924

Stack : stack depth overflow in function FWRETFUNC on FWRETFUNC(APLIB190.PRW) 05/09/2022 10:01:38 line : 155

compartilhar
  • Marcos, é bem possível que esse ponto de entrada seja disparado durante o refresh da view e ao chamar o refresh, você criou um loop infinito. Coloque um conout na função CnaMun e verifique se ele será chamado diversas vezes, se sim, você precisará remover a chamada do refresh dessa função ou criar alguma forma de fazer isso apenas uma vez, controlando por variável estática, parâmetro etc.

    Daniel Mendes   12 de Sep de 2022
  • Daniel, fiz o log e só passa uma vez mesmo, eu acho que não estou sabendo chamar o refresh() (ou estamos com problema na lib).

    Marcos Bispo Abrahão   12 de Sep de 2022
  • Consegue anexar a imagem da exceção? Sei que ela aparece bem grande... Mas pode ajudar a analisar o problema. Se no log do appserver tiver a stack também, pode ajudar. Essa função que gerou o erro, realmente é utilizada durante a execução dos pontos de entrada, então pode ser algo relacionado a execução dos pontos de entrada do MVC somados ao refresh da view.

    Daniel Mendes   12 de Sep de 2022
  • Daniel, era loop mesmo!!! Fiz o que vc sugeriu (var estatica) e deu certo!! Muito obrigado!

    Marcos Bispo Abrahão   13 de Sep de 2022
  1. Você vai ver essas setas em qualquer página de pergunta. Com elas, você pode dizer se uma pergunta ou uma resposta foram relevantes ou não.
  2. Edite sua pergunta ou resposta caso queira alterar ou adicionar detalhes.
  3. Caso haja alguma dúvida sobre a pergunta, adicione um comentário. O espaço de respostas deve ser utilizado apenas para responder a pergunta.
  4. Se o autor da pergunta marcar uma resposta como solucionada, esta marca aparecerá.
  5. Clique aqui para mais detalhes sobre o funcionamento do TOTVS DevForum!

1 resposta

Não é a resposta que estava procurando? Procure outras perguntas com as tags novamedicao mvc pontodeentrada ou faça a sua própria pergunta.