سلام من از کتابخانه آقای شاهدی عزیز نسخه ی 6.00 استفاده می کنم که مشکل داره
کد های من
Sub Process_Globals
End Sub
Sub Globals
Dim thread As AriaThread
Private Button1 As Button
Private Button2 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
End Sub
Sub thread_ChangeUI (Arg As Object)
End Sub
Sub thread_ThreadEnd (Successful As Boolean)
Log(Successful)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button2_Click
End Sub
Sub Button1_Click
thread.Initialize("thread")
thread.Priority=thread.MaxPriority
thread.StartThread(MyWork,Null)
End Sub
Sub MyWork
Dim List1 As List
List1.Initialize
List1.Clear
For i=0 To 1000
List1.Add(i)
Next
End Sub
که این خطا را در لاگ میده و برنامه بسته میشه
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
main_button1_click (java line: 359)
java.lang.RuntimeException: AriaThread : Sub : not found!
at ariagp.amin.shahedi.asyncytask.AriaThread.StartThread(AriaThread.java:51)
at b4a.examplethered.main._button1_click(main.java:359)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
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:5045)
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)
سوال
hosseinkarimian 100
سلام من از کتابخانه آقای شاهدی عزیز نسخه ی 6.00 استفاده می کنم که مشکل داره
کد های من
Sub Process_Globals End Sub Sub Globals Dim thread As AriaThread Private Button1 As Button Private Button2 As Button End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("1") End Sub Sub thread_ChangeUI (Arg As Object) End Sub Sub thread_ThreadEnd (Successful As Boolean) Log(Successful) End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Button2_Click End Sub Sub Button1_Click thread.Initialize("thread") thread.Priority=thread.MaxPriority thread.StartThread(MyWork,Null) End Sub Sub MyWork Dim List1 As List List1.Initialize List1.Clear For i=0 To 1000 List1.Add(i) Next End Sub
که این خطا را در لاگ میده و برنامه بسته میشه
** Service (starter) Create ** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** main_button1_click (java line: 359) java.lang.RuntimeException: AriaThread : Sub : not found! at ariagp.amin.shahedi.asyncytask.AriaThread.StartThread(AriaThread.java:51) at b4a.examplethered.main._button1_click(main.java:359) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78) at android.view.View.performClick(View.java:4438) at android.view.View$PerformClick.run(View.java:18422) 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:5045) 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)
لینک ارسال
به اشتراک گذاری در سایت های دیگر
3 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.