Page 1 of 1

XPJ and comment

Posted: Mon Nov 11, 2024 9:18 am
by slobodan1949
Alaska Xbase++ 2.0
If you accidentally place a comment at the beginning of the XPJ file: /* BUG.XPJ */
the application cannot be compiled and an error message is reported:

Error BASE/2266;Description : Receiver of message is not an object.;Operation : getDefineCollection;Thread ID : 1
Called from STANDARDEH(69)
Called from (B)ERRORSYS(23)
Called from TREEFACTORY:GENROOTFROMLINES(137)
Called from TREEFACTORY:GENROOTFROMFILE(260)
Called from RUNPBUILD(86)
Called from MAIN(47)


(226x - Classes/Objects, Lifetime)

When you post a comment: // BUG.XPJ
everything works correctly. XPJ file does not accept comment with /* */
and the error message is completely incomprehensible and does not indicate where the error is.

Re: XPJ and comment

Posted: Mon Nov 11, 2024 11:27 pm
by Tom
So, don't do that. 8-)

Re: XPJ and comment

Posted: Tue Nov 12, 2024 6:43 am
by rdonnay
So, don't do that. 8-)
But accidents happen. :oops: