new bug xBrowse 20.02 [solved]

new bug xBrowse 20.02 [solved]

Postby MOISES » Sun Apr 19, 2020 9:30 am

Hello,

ISome customers are reporting me this error in xBrowse:

Event description: Problem BASE/1004 There is no method: SORT
Args:
[ 1] = U

Code: Select all  Expand view


//----------------------------------------------------------------------------//

METHOD AdoIncrSeek( uSeek ) CLASS TXBrowse

   local lFound   := .f.
   this line-> local cCol     := CharRem( "[]", StrToken( ::oRs:Sort, 1 ) )
 


Thank you
Last edited by MOISES on Tue Apr 28, 2020 11:14 am, edited 1 time in total.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: new bug xBrowse 20.02

Postby MOISES » Wed Apr 22, 2020 7:13 am

Up
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: new bug xBrowse 20.02

Postby Silvio.Falconi » Wed Apr 22, 2020 10:16 am

perhaps ::oRs:Sort() ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm

Re: new bug xBrowse 20.02

Postby nageswaragunupudi » Wed Apr 22, 2020 4:48 pm

Code: Select all  Expand view
Event description: Problem BASE/1004 There is no method: SORT
Args:
[ 1] = U
 


This error indicates that the value of oBrw:oRs is NIL.
Please check your application why oBrw:oRs is becoming nil.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: new bug xBrowse 20.02

Postby MOISES » Wed Apr 22, 2020 5:27 pm

Thank you for your reply. I hope you're in good health.

Some customers reported this error, but they are working with Access in a local pc, with no lan or Internet involved.

Can you please, as a safety precaution, check that oBrw:oRs is not nil before contunuing with this method?
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: new bug xBrowse 20.02

Postby MOISES » Wed Apr 22, 2020 7:27 pm

Probably the user has an active oBrowse:oSeek, and he deletes the record, so oRs becomes to nil.

How can we handle it?

Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: new bug xBrowse 20.02

Postby nageswaragunupudi » Mon Apr 27, 2020 6:21 am

Probably the user has an active oBrowse:oSeek, and he deletes the record, so oRs becomes to nil.

Deleting one record does not close the RecordSet.
Deleting a record using oBrw:Delete() is always safe.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: new bug xBrowse 20.02

Postby MOISES » Mon Apr 27, 2020 8:09 am

Thank you very much for your attention.

We have not been able to reproduce the generation of the error, in which case we could have provided you with a more precise solution. It could even be an ADO error itself.

So, as an additional security measure, could you please modify the code of xbrowse, something like that:

Code: Select all  Expand view

METHOD AdoIncrSeek( uSeek ) CLASS TXBrowse

   local lFound   := .f.
   local cCol     := ""
   local cExpr    := ''
   local cType, d, uVal, lSoft, cSaveFilt

   if hb_isnil( ::oRs )
      return .f.
   endif
   
   cCol     := CharRem( "[]", StrToken( ::oRs:Sort, 1 ) )


 
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: new bug xBrowse 20.02

Postby nageswaragunupudi » Tue Apr 28, 2020 10:12 am

done
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: new bug xBrowse 20.02 [solved]

Postby MOISES » Tue Apr 28, 2020 11:14 am

Thank you very much!
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: new bug xBrowse 20.02 [solved]

Postby MOISES » Thu May 07, 2020 2:57 pm

I am afraid you undid the changes in FW 20.04:

Code: Select all  Expand view
METHOD AdoIncrSeek( uSeek ) CLASS TXBrowse

   local lFound   := .f.
   local cCol     := CharRem( "[]", StrToken( ::oRs:Sort, 1 ) )
   local cExpr    := ''
   local cType, d, uVal, lSoft, cSaveFilt

   if ::oRs == nil
      return .f.
   endif


cCol will fail because it should be after if ::oRs == nil:

Code: Select all  Expand view
 

   if ::oRs == nil
      return .f.
   endif
   
   cCol     := CharRem( "[]", StrToken( ::oRs:Sort, 1 ) )


Thank you.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: new bug xBrowse 20.02 [solved]

Postby nageswaragunupudi » Thu May 07, 2020 3:21 pm

You are right
Sorry
Please make the proper modification in your copy.
We will incorporate it for next release.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests