load record metod post
When i load multiple list making simultaneous requests, I get this error, and can avoid this problem.
Thank
B4X:
Dim sh As String = "http://www.mysite.com/myUsersList"
HttpAgent.Initialize("getuserslist", Me)
HttpAgent.PostString(sh,"pagindex=" & page)
Utils.SetAuthCookie(HttpAgent.GetRequest)
When i load multiple list making simultaneous requests, I get this error, and can avoid this problem.
B4X:
main_jobdone (B4A line: 186)
Log(Job.GetString)
java.lang.OutOfMemoryError
at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:94)
at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:114)
at java.lang.StringBuilder.append(StringBuilder.java:249)
at anywheresoftware.b4a.objects.streams.File$TextReaderWrapper.ReadAll(File.java:568)
at anywheresoftware.b4a.samples.httputils2.httpjob._getstring2(httpjob.java:159)
at anywheresoftware.b4a.samples.httputils2.httpjob._getstring(httpjob.java:144)
at b4a.example.main._jobdone(main.java:977)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:958)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
at dalvik.system.NativeStart.main(Native Method)
Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 17355 (samsungani)
Thank