Uniface User Forum

 View Only
  • 1.  fileload/lfileload and locked files

    Posted 01-02-2023 11:19
    Edited by Gianni Sandigliano 01-03-2023 05:22

    Hi Unifacers,

    I've developed a functionality to fileload/lfileload and analyze Uniface C/S log files; unfortunately log files, related to Uniface sessions still opened, cannot be read with Uniface itself.

    Question 1: is the lock applied from Uniface runtime "exclusive" type?

    Question(s)  2: being an old Unifacer I remember when file_load (old version!) when trying to load file in read-write mode was getting an error, it was switching to readonly mode and reading it, exactly like any text editor would do (notepad++ as an example). I am almost sure this was the file_load standard behaviour until U7. If this behaviour is changed lately could I ask the specific reason for it? Could it be considered a regression bug?

    Thanks in advance for any reply and happy 2023!

    Regards,
    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------


  • 2.  RE: fileload/lfileload and locked files

    Posted 01-03-2023 15:02
    Hi Gianni - and Happy New Year to you too!

    One quick thought - I believe you can 'copy' the open file - and then work with the copied file...
    I do this on UF web app server log files - it works a charm.

    Regards,
    Knut

    ------------------------------
    Knut Dybendahl
    ------------------------------



  • 3.  RE: fileload/lfileload and locked files

    Posted 01-04-2023 07:03
    Edited by Gianni Sandigliano 01-04-2023 07:03

    Ciao Knut,

    nice to hear from you... long long time no see each other... Thanks for your suggestion!

    You have more or less same experience: what about question 2?
    Am I starting to be too old or you remember something as well? :-)

    Best Regards,
    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------



  • 4.  RE: fileload/lfileload and locked files

    ROCKETEER
    Posted 01-04-2023 07:08
    Edited by Daniel Iseli 01-04-2023 07:09
    Hi Gianni,

    I did a quick test in Uniface 6.1.du and it behaves in the same way as current Uniface versions. I guess you could say that this specific behavior has not changed in the last 25+ years.

    I hope this helps.

    ------------------------------
    Daniel Iseli
    Principal Technical Support Engineer
    Uniface Services
    Rocket Software, Switzerland
    ------------------------------



  • 5.  RE: fileload/lfileload and locked files

    Posted 01-04-2023 07:37

    Hi Daniel,

    thanks for your effort... I am definitively becoming (too) old! :-)

    Regards,
    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------