Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10359 > unrolled thread
| Started by | "Jamal" <noooospam@example.com> |
|---|---|
| First post | 2017-03-29 13:59 -0400 |
| Last post | 2017-04-04 23:51 -0400 |
| Articles | 9 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-03-29 13:59 -0400 |
| Subject | bBRowser 4.0 runtime error |
| Message-ID | <obgsmf$9ib$1@news.albasani.net> |
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.
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
[toc] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-03-30 12:10 +0200 |
| Message-ID | <p1mpdct7t60cs9dedqlihg11n2t906ec8j@4ax.com> |
| In reply to | #10359 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-03-30 11:47 -0400 |
| Message-ID | <obj9b4$9kc$1@news.albasani.net> |
| In reply to | #10360 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2017-03-31 17:29 +0200 |
| Message-ID | <ek7b2rFdk0gU1@mid.individual.net> |
| In reply to | #10363 |
Hi Jamal, > I'll probably modify the bBrowser RecordSave( ) source code and surround > it by an error block to exit gracefully. just a thought ... because i do not have SP4 installed i searched the SP3 sources for EG_LOCK_TIMEOUT. But i only found the define itself. Maybe the SP4 sources show where EG_LOCK_TIMEOUT is assigned to an error object ? regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-03-31 11:56 -0400 |
| Message-ID | <oblu87$ve9$1@news.albasani.net> |
| In reply to | #10364 |
Hi Karl, Same in SP4. I only found the DEFINE in the SDK. Jamal "Karl-Heinz" wrote in message news:ek7b2rFdk0gU1@mid.individual.net... Hi Jamal, > I'll probably modify the bBrowser RecordSave( ) source code and surround > it by an error block to exit gracefully. just a thought ... because i do not have SP4 installed i searched the SP3 sources for EG_LOCK_TIMEOUT. But i only found the define itself. Maybe the SP4 sources show where EG_LOCK_TIMEOUT is assigned to an error object ? regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2017-03-30 14:15 +0200 |
| Message-ID | <ek4b83Fpt57U1@mid.individual.net> |
| In reply to | #10359 |
Hi Jamal > A client of mine has Error Code: 46 [ ] > which I have never seen before errorcode 46 means EG_LOCK_TIMEOUT, and a google group search shows a thread from July 2013 "LOCK Timeout since VO 2.8 SP4". Reading the msgs it seems to be a 2.8 SP4 issue only. Just wondering that you´ve been involved in that thread too. Are you aware of that it might be the same problem ? At the end of the thread Meinhard seems to have a solution, but the thread ends after his contribution. https://tinyurl.com/lpmox3g regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-03-30 11:27 -0400 |
| Message-ID | <obj85f$c36$1@news.albasani.net> |
| In reply to | #10361 |
Hi Karl, Thanks for pointing out the the old discussion thread. When I logged remotely into client's workstation, it was very slow in communicating with the server; so this seems to be the issue since it was the only causing the error. Jamal "Karl-Heinz" wrote in message news:ek4b83Fpt57U1@mid.individual.net... Hi Jamal > A client of mine has Error Code: 46 [ ] > which I have never seen before errorcode 46 means EG_LOCK_TIMEOUT, and a google group search shows a thread from July 2013 "LOCK Timeout since VO 2.8 SP4". Reading the msgs it seems to be a 2.8 SP4 issue only. Just wondering that you´ve been involved in that thread too. Are you aware of that it might be the same problem ? At the end of the thread Meinhard seems to have a solution, but the thread ends after his contribution. https://tinyurl.com/lpmox3g regards Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Gerhard Bunzel" <g.bunzel@domonet.de> |
|---|---|
| Date | 2017-04-02 21:22 +0200 |
| Message-ID | <obrj25$7q5$1@news-1.m-online.net> |
| In reply to | #10361 |
Jamal,
...but this line has nothing to do with some locking.
AAdd(uRecord, {aoChild[iPos], aoChild[iPos]:RecNo, aoChild[iPos]:BoF,
aoChild[iPos]:EoF}) // *** ERROR HERE - LINE 24 ****
I would check all Child-Servers of SELF:oDCbBrowser1:Server:Children.
Write some Infos of all the Child-Servers to a Logfile - one line before
your
SELF:oDCbBrowser1:Server:SetSelectiveRelation(SELF:oDCbBrowser2:Server,#KEYID)
Maybee that slow network is losing the connection to one of the
Child-Servers.
HTH
Gerhard Bunzel
"Karl-Heinz" schrieb im Newsbeitrag
news:ek4b83Fpt57U1@mid.individual.net...
Hi Jamal
> A client of mine has Error Code: 46 [ ]
> which I have never seen before
errorcode 46 means EG_LOCK_TIMEOUT, and a google group search shows a thread
from July 2013 "LOCK Timeout since VO 2.8 SP4". Reading the msgs it seems to
be a 2.8 SP4 issue only. Just wondering that you´ve been involved in that
thread too. Are you aware of that it might be the same problem ? At the end
of the thread Meinhard seems to have a solution, but the thread ends after
his contribution.
https://tinyurl.com/lpmox3g
regards
Karl-Heinz
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-04-04 23:51 -0400 |
| Message-ID | <oc1pko$3i2$1@news.albasani.net> |
| In reply to | #10366 |
Hi Gerhard,
I ended up removing the SetSelectiveRelation(..) and used bBrowser
RowSelect( ) event. So, I will not have child servers.
I think this should lessen the burden on slow networks and bBrowser's auto
refresh.
Jamal
"Gerhard Bunzel" wrote in message news:obrj25$7q5$1@news-1.m-online.net...
Jamal,
...but this line has nothing to do with some locking.
AAdd(uRecord, {aoChild[iPos], aoChild[iPos]:RecNo, aoChild[iPos]:BoF,
aoChild[iPos]:EoF}) // *** ERROR HERE - LINE 24 ****
I would check all Child-Servers of SELF:oDCbBrowser1:Server:Children.
Write some Infos of all the Child-Servers to a Logfile - one line before
your
SELF:oDCbBrowser1:Server:SetSelectiveRelation(SELF:oDCbBrowser2:Server,#KEYID)
Maybee that slow network is losing the connection to one of the
Child-Servers.
HTH
Gerhard Bunzel
"Karl-Heinz" schrieb im Newsbeitrag
news:ek4b83Fpt57U1@mid.individual.net...
Hi Jamal
> A client of mine has Error Code: 46 [ ]
> which I have never seen before
errorcode 46 means EG_LOCK_TIMEOUT, and a google group search shows a thread
from July 2013 "LOCK Timeout since VO 2.8 SP4". Reading the msgs it seems to
be a 2.8 SP4 issue only. Just wondering that you´ve been involved in that
thread too. Are you aware of that it might be the same problem ? At the end
of the thread Meinhard seems to have a solution, but the thread ends after
his contribution.
https://tinyurl.com/lpmox3g
regards
Karl-Heinz
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web