Announcement

Collapse
No announcement yet.

file IO

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • file IO

    Hi there,

    are there any known errors in PB's file IO functions ?
    I only know the freefile() multithread bug.
    Have some problems with files > 2 GB.

    Sometimes parts of my data are written to the file header. errClear is zero.
    Run it on different PC's ( w95 to w2k ). Same error.

    After placing all file IO in a C DLL ( fopen, .. ) everthing works.
    That's why i ask for PB errors.

    rgds
    Ralph


    ------------------

  • #2
    I've never had any problems with any PB file verbs.

    When you say files > 2000 Mb, are you trying to load the whole file to a string? If that's the case, check your string creation.

    If that's not the problem, what specifically is returning "bad" data?

    MCM


    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      There are definitely no known problems, even with files of that size.

      Are you using Quad integers for all your record/seek code?

      Can you send over some code to Tech Support than demonstrates the problem please? Thanks!

      JFYI, R&D have advised that FREEFILE is likely to become thread-safe in the next version of the compiler.

      ------------------
      Lance
      PowerBASIC Support
      mailto:[email protected][email protected]</A>
      Lance
      mailto:[email protected]

      Comment


      • #4
        I am working with files as large as 9GB with no problems...

        Comment


        • #5
          Thanks for the reply.
          Using PB's file fcts in a seperate DLL the error is gone.

          rdgs
          Ralph

          ------------------

          Comment


          • #6
            Hi there,

            sorry for posting. It's a hardware error not a PB error.
            If you're using a AMD CPU with VIA Chipset and
            82C686B southbridge you'll get problems. http://www.via.com.tw

            rgds
            Ralph

            ------------------

            Comment


            • #7
              > sorry for posting

              Don't be!

              We all learn things when problems like this are solved and documented on line. If one of my programs has a problem with files >2gig at a customer site, now I'll know where to start.

              -- Eric


              ------------------
              Perfect Sync Development Tools
              Perfect Sync Web Site
              Contact Us: mailto:[email protected][email protected]</A>
              "Not my circus, not my monkeys."

              Comment


              • #8
                There's a list of all affected manufactorers at : http://www.via-cyrix.de/viaboardlist.html

                Ralph

                ------------------

                Comment


                • #9
                  Lance,

                  knowing it's not a PB err there are only 2 qs.
                  What does JFYI stand for ? Who are R&D ?
                  Are they Ron & Don the 2 guys with the Las Vegas tiger show ?

                  Ralph

                  ------------------

                  Comment


                  • #10
                    JFYI is a variation on FYI, meaning Just For Your Information.

                    R&D is Research and Development.

                    HTH.

                    -- Eric
                    "Not my circus, not my monkeys."

                    Comment


                    • #11
                      JFYI is a variation on FYI...
                      R&D...
                      HTH
                      Enough TLA's already!

                      MCM

                      Michael Mattias
                      Tal Systems (retired)
                      Port Washington WI USA
                      [email protected]
                      http://www.talsystems.com

                      Comment

                      Working...
                      X