Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #10363

Re: bBRowser 4.0 runtime error

From "Jamal" <noooospam@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: bBRowser 4.0 runtime error
Date 2017-03-30 11:47 -0400
Organization albasani.net
Message-ID <obj9b4$9kc$1@news.albasani.net> (permalink)
References <obgsmf$9ib$1@news.albasani.net> <p1mpdct7t60cs9dedqlihg11n2t906ec8j@4ax.com>

Show all headers | View raw


Hi Dick,

AutoRefresh is called by bBrowser which it provides as a property. Anyway, 
as Karl referred me to the old thread, it seems to be network related and 
bBrowser crashes at that point. I'll probably modify the bBrowser 
RecordSave( ) source code and surround it by an error block to exit 
gracefully.

Jamal

"D.J.W. van Kooten"  wrote in message 
news:p1mpdct7t60cs9dedqlihg11n2t906ec8j@4ax.com...

Replying on message of Wed, 29 Mar 2017 13:59:43 -0400 from Jamal:


Hello Jamal,

>A client of mine has Error Code:  46 [  ] which I have never seen before
>after sitting idle for sometime on a window which has two bBrowsers.
>I have a
>SELF:oDCbBrowser1:Server:SetSelectiveRelation(SELF:oDCbBrowser2:Server,#KEYID)
>The dbServers are DBF using DBFCDX driver running on a local area network.


First thing I was wondering reading your post is: does it make sense
to you that a recordsave method is called when the program has been
left idle for a while, as you write?

I see a call from Autorefresh, so I assume that is a timer initiated
method?

Can the RecordSave it calls also be called directly - a save option?
What happens then?

I would then log iPos and which windows it adds to the array and see
if there's a difference between the "manual save" and the AutoRefresh
call. If so, you should be able to solve it. Could it be trying to add
to the array a child window which is already closed and lacks code to
remove it from the Childwindows?

Dick
>
>Translating the source code comments from German, it seems it has to do
>child servers.
>
>What could be the cause of the issue? Do you think this network related?
>
>Error and source code:
>
>Visual Objects (Version 2.8. Build 3.2838), Version 2.8 SP4b
>
>Error message:
>--------------
>Error Code:  46 [  ]
>Error Subcode: 64
>CallStack:
>BBROWSER:RECORDSAVE (Line:24)
>BBROWSER:STABILIZESERVER (Line:23)
>BBROWSER:STABILIZESERVER (Line:47)
>BBROWSER:AUTOREFRESH (Line:69)
>BBROWSER:EVENTHANDLER (Line:781)
>
>Error Object created:
>--------------------
>SubSystem       :
>SubCode         :64
>GenCode         :
>OsCode          :0
>ArgType         :NIL
>FuncPtr         :0x00000000
>ArgNum          :0
>FuncSym         :
>Severity        :2
>CanDefault      :.F.
>CanRetry        :.F.
>CanSubstitute   :.F.
>Operation       :
>Description     :
>FileName        :
>Tries           :0
>FileHandle      :0
>SubCodeText     :
>Arg             :
>ArgTypeReq      :NIL
>MaxSize         :0
>SubstituteType  :NIL
>CallFuncSym     :
>
>
>method RecordSave() as array pascal class bBrowser
>    //
>======================================================================================
>    // Beschreibung:    Datensatz im Server sichern.
>    //
>    // Historie:        24.01.2000    JB    Methode implementiert.
>    //                     10.10.2007    JB    Sichern des BoF- und
>EoF-Status.
>    //
>======================================================================================
>    local uRecord            as array
>    local aoChild            as array
>    local iPos, iSize        as dword
>
>    // Datensatz im Server sichern
>    if _And(self:iFlags, BF_SERVERRECORDSAVE)>0
>        uRecord := self:oServer:RecordSave()
>    else
>        // RecNo, BoF- und EoF-Status sichern
>        uRecord := {{self:oServer:RecNo, self:oServer:BoF,
>self:oServer:EoF}}
>
>        // Kind-Server sichern
>        if _And(self:iFlags, BF_SERVERCHILDREN)>0
>            aoChild := self:oServer:Children
>            iSize := ALen(aoChild)
>            for iPos:=1 upto iSize
>                AAdd(uRecord, {aoChild[iPos], aoChild[iPos]:RecNo,
>aoChild[iPos]:BoF, aoChild[iPos]:EoF})    // *** ERROR  HERE - LINE 24 ****
>            next
>        endif
>    endif
>    return uRecord
>
>
>Jamal 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bBRowser 4.0 runtime error "Jamal" <noooospam@example.com> - 2017-03-29 13:59 -0400
  Re: bBRowser 4.0 runtime error D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-03-30 12:10 +0200
    Re: bBRowser 4.0 runtime error "Jamal" <noooospam@example.com> - 2017-03-30 11:47 -0400
      Re: bBRowser 4.0 runtime error "Karl-Heinz" <invalid@invalid.invalid> - 2017-03-31 17:29 +0200
        Re: bBRowser 4.0 runtime error "Jamal" <noooospam@example.com> - 2017-03-31 11:56 -0400
  Re: bBRowser 4.0 runtime error "Karl-Heinz" <invalid@invalid.invalid> - 2017-03-30 14:15 +0200
    Re: bBRowser 4.0 runtime error "Jamal" <noooospam@example.com> - 2017-03-30 11:27 -0400
    Re: bBRowser 4.0 runtime error "Gerhard Bunzel" <g.bunzel@domonet.de> - 2017-04-02 21:22 +0200
      Re: bBRowser 4.0 runtime error "Jamal" <noooospam@example.com> - 2017-04-04 23:51 -0400

csiph-web