Problems in latest build with LISP engine ?

I have several customers reporting same error after installation latest build of BricsCAD (but using same app version).

; ----- LISP : Call Stack -----
;
; ----- Error around expression -----
(OPEN LOG-FILE$ "W")


I wanted to create a support request but i'm unable to (error making new request...)


Comments

  • Hi Dirk,

    your using 12.2.6 ?

    looks like the open function arguments have become case sensitive. I tried the following:
    [code](setq log-file$ (strcat (getenv "appdata") "\\mylogfile.log"))
    [/code]
    this was to set log-file$ to point to a file. Then tried:
    [code](setq myfile (OPEN LOG-FILE$ "W")) ; caps don't work in V12.2.6, works ok in V1111.4.6[/code]
    followed by trying again, but this time using lowercase for argument:
    [code](setq myfile (OPEN LOG-FILE$ "w")) ; lowercase works ok in either
    (write-line "test line" myfile)
    (close myfile)[/code]

    Fix would be to change all arguments to lower case, or step back to a previous version until a fix is provided.

    Can you confirm whether this solves the issue you're having, as I can file a support request if you're having difficulty.

    Regards,

    Jason Bourhill

    CAD Concepts

  • Dear Dirk, Dear Jason,

    I will immediately check, why (and whether) the "mode" flag is now case-sensitive ...
    not intended at all, for sure.

    So no need to file a support request, I will immediately check and fix ...
    but great, that Jason found the lowercase/uppercase reason + workaround here.

    Will keep you updated quickly ...
    Many greetings & a nice day, Torsten
  • Dear Dirk, Dear Jason,

    indeed, this issue was introduced with V12.2. - sorry for the trouble :-(
    Just fixed here, and marked to be included in next Bricscad version.

    As Jason remarked, the best and compatible waqy is to use lowercase letters/strings
    for the "mode" argument in (open).

    Many thanks for finding this issue !
    Wish you a nice day, Torsten
  • hello,

    Is it also the case for other arguments ? like "A" for append...

    thx
  • Yes, the entire "mode" string was (is) incorrectly accepted only when in lowercase,
    also for "A".

    Best workaround is to use (open filename (strcase mode T)) ... at least, unti fixed
    version is published.
This discussion has been closed.