- Jun 6, 2020
- 11,559
- 4,422
How does B4A handle the momory consumption of arrays? I often ReDIM my main array inside a SUB. Until now I had no problems with this. But now I got this error message:
main_OftenUsedSub (java line: 955)
java.lang.OutOfMemoryError: Failed to allocate a 399516560 byte allocation with 25165824 free bytes and 242MB until OOM, target footprint 308217512, growth limit 536870912
at midimaster.multitrack.main._OftenUsedSub(main.java:955)
at midimaster.multitrack.main$ResumableSub_NeueSumme.resume(main.java:3802)
at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1704)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8016)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at...
Click to expand...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید