iOS Question iRandoAccessFile issue

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.
 

Markos

Active Member
Licensed User
False alarm the issue was a local variable memory not being released upon leaving a sub. Issue resolved
 

emexes

Well-Known Member
Licensed User
False alarm the issue was a local variable memory not being released upon leaving a sub. Issue resolved
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.

:)
 

davemorris

Active Member
Licensed User
Why the answer always becomes obvious immediately after posting, and not before, I don't know.
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
 

tzfpg

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.
may i know how to solve the problem?
 

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
 
Top