Bug? Random Access Library

Scantech

Well-Known Member
Licensed User
Longtime User
Using RandomAccess Library with the encrypted method it will lead to error. It occurs when you open a file which was not encrypted or any file not created with RandomAccess encryption method. It crashes the app and might want to add a catch error in the random access library.

B4X:
bible_initmapnotes (B4A line: 118)
MapNotes = raf.ReadEncryptedObject("My Key...this was edited
java.lang.OutOfMemoryError
    at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.readHelper(RandomAccessFile.java:408)
    at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.ReadEncryptedObject(RandomAccessFile.java:403)
    at scantech.hewbrewbibletools.bible._initmapnotes(bible.java:4724)
    at scantech.hewbrewbibletools.bible._activity_create(bible.java:436)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at scantech.hewbrewbibletools.bible.afterFirstLayout(bible.java:102)
    at scantech.hewbrewbibletools.bible.access$000(bible.java:17)
    at scantech.hewbrewbibletools.bible$WaitForLayout.run(bible.java:80)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5017)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    at dalvik.system.NativeStart.main(Native Method)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…