iOS Question iRandoAccessFile issue

Discussion in 'iOS Questions' started by Markos, Aug 9, 2019.

  1. Markos

    Markos Active Member Licensed User

    Hi All

    I have iRandomAccess v1.72 on b4i 5.81 using latest MacBuilder and I have an issue with the library failing to read files larger than 70kbytes it crashes the app if attempts to read beyond a 70th loop of reading 1024bytes. I have an App using same library for B4a and it is fine reading beyond 70kbytes.

    If there is a fix for this already great! If not I will like to raise this issue for analysis and resolution. I have exhausted 2 days and isolated the problem to the library.

    Thanks in advance for your assistance.
     
  2. Markos

    Markos Active Member Licensed User

    False alarm the issue was a local variable memory not being released upon leaving a sub. Issue resolved
     
    emexes likes this.
  3. emexes

    emexes Well-Known Member Licensed User

    My debugging too is often accelerated by publicly describing the problem I am chasing down ;-)

    Why the answer always becomes obvious immediately after posting, and not before, I don't know.

    Such is life.

    :)
     
  4. davemorris

    davemorris Member Licensed User

    Hi all

    I have an answer for that
    "We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time."
    T. S. Eliot

    Such is development - I have been at it for a lifetime.

    Dave
     
    emexes likes this.
  5. tzfpg

    tzfpg Member Licensed User

    may i know how to solve the problem?
     
  6. Markos

    Markos Active Member Licensed User

    I am not sure what issue you are experiencing but for me my Sub to fill the buffer with a read I locally declared two buffer variable arrays and only one was being returned. It seems the memory wasnt being released for the array I used to transpose data.

    If you want you can globally declare the buffer array and remove the local dim declaration.

    Hope this helps you
     
    emexes likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice