Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Troubles with DBF 27 Nov 2021 22:00 #20562

  • Horst
  • Horst's Avatar
  • Topic Author


  • Posts: 246
  • Hallo

    I updated to XS 2.9 from 2.7 and as a first i reindex the dbf's as it was written.

    And now i have a problem with one DBF i know.
    In the Zip's attachments you will see 2 Log file 's . one was running under 2.9 30! seconds and one with a old one XS2.6 Version not even one second .
    if you look into the code its a append , witch needs a lot of time.

    Also, when i wanna make a copy with dbAdministrator 3.27 the copy process stops after 34 Records.
    Maybe my DBF is corrupt ?

    How compatible is XS with Cavo dbf's ????
    Is my DB broke ? Its in the Zip file

    I am realy confused.
    Horst

    ps: before i was also trying to add a field to the DBF , but allways it crashed because a corrupt FTP. so i was making a VO prg to copy the file record by record like -> oDBnew:Fieldput(#XY , odbOld:Fieldget (#XY))
    then it was possible to add a field with dbAdministrator.

    Please Log in or Create an account to join the conversation.

    Troubles with DBF 28 Nov 2021 00:23 #20566

    • Chris
    • Chris's Avatar


  • Posts: 2957
  • Hi Horst,

    Sorry to hear about those problems, but we will need to better understand them in order to fix them.
    Could you please send a compilable sample reproducing the issues?

    Regarding VO compatibility with dbfs, almost always if you see a behavior in X# that is different than the one in VO, then this must be a considered a bug in X# that we must fix. Except fot a few occasions where there is a problem with VO itself, but usually VO with dbfs is correct.

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Troubles with DBF 28 Nov 2021 10:16 #20567

    • Horst
    • Horst's Avatar
    • Topic Author


  • Posts: 246
  • Hallo Chris
    While i was preparing a sample for you i found the bug.
    oDbServer := _CryptServer { cFile, DBSHARED, DBREADONLY } ReadOnly.
    and later i wanna make a Append and this append never works. In XS 2.9 its stops some seconds in XS 2.7. not.

    Horst

    Please Log in or Create an account to join the conversation.

    Troubles with DBF 29 Nov 2021 01:12 #20573

    • Chris
    • Chris's Avatar


  • Posts: 2957
  • Hi Horst,

    Ah, ok, glad you found the problem!

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Troubles with DBF 02 Dec 2021 17:37 #20671

    • Horst
    • Horst's Avatar
    • Topic Author


  • Posts: 246
  • I changed from 2.6a to 2.9
    Now an error like (dbf does not exist, or before the READONLY) opens a window and writes a voerror.log
    before i was writing this error into a html and send it as response to the client and sends a mail to me.
    like

    CATCH ex AS Exception
    cEmail := ex:ToString()
    cEmail := cEmail + CRLF+Time ()+CRLF+ DeCryptIvo ( SubStr (cInputString,11, at ("&" ,cInputString)-1))
    ologfile:WriteLog(cEmail)
    cString := WriteErrorHtml (cCrash, {StrTran (cEmail,CRLF,"<br>")})
    END TRY


    how can i change back to the behavior of 2.6a in this case ? Because the window opens only on my develop pc

    Horst

    Please Log in or Create an account to join the conversation.

    Troubles with DBF 02 Dec 2021 20:54 #20674

    • Chris
    • Chris's Avatar


  • Posts: 2957
  • Hi Horst,

    For the error dialog to show, you must have included a reference to XSharp.VO.dll, because the dialog is defined in there.

    To handle the errors yourself, you can do something like this

    ErrorBlock({|error|HandleError(error)})
    
    PROCEDURE HandleError(oError AS Error)
    // you can get info about the error and handle it here

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Troubles with DBF 03 Dec 2021 08:57 #20677

    • robert
    • robert's Avatar


  • Posts: 2593
  • Horst,
    In addition to what Chris said:
    We changed this to make the error handling work a bit more like it did in Visual Objects,

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1