Page 1 of 1

Error in dc_arrayview() in build 255?

Posted: Fri Jul 29, 2011 4:06 am
by reganc
On calling dc_arrayview I get the following error:

------------------------------------------------------------------------------
ERROR LOG of "H:\XBprog\rbawin\prog\RBA32.EXE" Date: 29/07/2011 11:23:52

Xbase++ version:Xbase++ (R) Version 1.90.355
Operating system:Windows Vista 06.01 Build 07601 Service Pack 1
------------------------------------------------------------------------------
oError:args :-> VALTYPE: C - VALUE: Caption
oError:canDefault :.T.
oError:canRetry :.F.
oError:canSubstitute:.T.
oError:cargo :NIL
oError:description :Unknown name.
Object has no member with this name
oError:filename :NIL
oError:genCode :NIL
oError:operation :getProperty
oError:osCode :-2147352570 (Unknown name.)
oError:severity :2
oError:subCode :6500
oError:subSystem :Automation
oError:thread :5
oError:tries :NIL
------------------------------------------------------------------------------
CURRENT DATABASE:
------------------------------------------------------------------------------
Alias(): WEB_CTRL Record: 1 Index: None
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------

Called from _ARRAYVIEW(1015)
Called from DC_ARRAYVIEW(676)
Called from (B)FULL_PRODUCT_ENTRY(1354)
...etc
------------------------------------------------------------------------------

This has only started happening since I added a DCHTMLVIEWER item to the getlist, so I guess it cannot interrogate the object correctly if it's an ActiveX object.

Re: Error in dc_arrayview() in build 255?

Posted: Sat Jul 30, 2011 6:36 am
by John Hohensee
Silly question did you forget the array you wanted to view? DC_ArrayView( aData ) ?

Re: Error in dc_arrayview() in build 255?

Posted: Sun Jul 31, 2011 8:50 am
by rdonnay
Regan -

I dealt with this issue with Automatic objects in Xcodejock by creating a bunch of .DEF files (one for each class group).
I had never noticed this to be a problem with DCHTMLVIEWER because it uses an Xbase class.

I will look into this and fix it.

Roger

Re: Error in dc_arrayview() in build 255?

Posted: Sun Jul 31, 2011 9:31 am
by rdonnay
Here is a fix. This is a bug in Xbase++ because IsMemberVar( oHtml, 'caption' ) returns a .TRUE. and there is no 'caption' memvar in the XbpHtmlViewer() class.

Copy the attached file to your \exp19\source\dclipx directory and run build19_sl1.bat to rebuild dclipx.dll.
This fix will be in build 256.

Re: Error in dc_arrayview() in build 255?

Posted: Mon Aug 01, 2011 3:56 am
by reganc
Many thanks for the quick fix. I will put it into use straight away...