Bug? ARGB Value lets Method not found

Discussion in 'Bugs & wishlist' started by xunwichtig, Jan 27, 2015.

  1. xunwichtig

    xunwichtig Member Licensed User

    Hi,

    i have written a class (XList). This Class has a sub what i call from a activity.

    sub in class
    Code:
    Public Sub List_Item_SetUnselectedBackgroundColorByIndex(V_Index As Int, V_Color As Int) As Int
    '...
    End Sub

    activity
    Code:
    'globals
    Dim G_XList as XList '(Class)
    Dim T_XList as Object = G_XList

    sub foo()
    Dim TTXList As XList = T_XList
    TTXList.List_Item_SetUnselectedBackgroundColorByIndex(
    1Colors.ARGB(124255155155))
    End Sub
    If i call the "foo" source, the function works with:
    Code:
    TTXList.List_Item_SetUnselectedBackgroundColorByIndex(1Colors.ARGB(124255255255))
    but, if i change the ARGB Value to like:
    Code:
    TTXList.List_Item_SetUnselectedBackgroundColorByIndex(1Colors.ARGB(124255155155))
    the execution will crash with:
    Code:
    Error occurred on line: 384 (xlist)
    java.lang.RuntimeException: Method: _list_item_setunselectedbackgroundcolorbyindex 
    not found in: java.lang.Object
       at anywheresoftware.b4a.shell.Shell$MethodCache.getMethod(
    Shell.java:895)
       at anywheresoftware.b4a.shell.Shell.getMethod(
    Shell.java:549)
       at anywheresoftware.b4a.shell.Shell.runMethod(
    Shell.java:635)
       at anywheresoftware.b4a.shell.Shell.raiseEventImpl(
    Shell.java:302)
       at anywheresoftware.b4a.shell.Shell.raiseEvent(
    Shell.java:238)
       at java.lang.reflect.Method.invokeNative(Native Method)
       at java.lang.reflect.Method.invoke(Method.java:
    511)
       at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:
    121)
       at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:
    863)
       at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:
    820)
       
    '...
       at java.lang.reflect.Method.invokeNative(Native Method)
       at java.lang.reflect.Method.invoke(Method.java:
    511)
       at anywheresoftware.b4a.shell.Shell.runMethod(
    Shell.java:636)
       at anywheresoftware.b4a.shell.Shell.raiseEventImpl(
    Shell.java:305)
       at anywheresoftware.b4a.shell.Shell.raiseEvent(
    Shell.java:238)
       at java.lang.reflect.Method.invokeNative(Native Method)
       at java.lang.reflect.Method.invoke(Method.java:
    511)
       at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:
    121)
       at anywheresoftware.b4a.BA$
    3.run(BA.java:320)
       at android.os.Handler.handleCallback(Handler.java:
    725)
       at android.os.Handler.dispatchMessage(Handler.java:
    92)
       at android.os.Looper.loop(Looper.java:
    176)
       at android.app.ActivityThread.main(ActivityThread.java:
    5279)
       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:
    1102)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    869)
       at dalvik.system.NativeStart.main(Native Method)
    "Error occurred on line: 384 (xlist)" is this line:
    Code:
    Public Sub List_Item_SetUnselectedBackgroundColorByIndex(V_Index As Int, V_Color As Int) As Int

    JimJim
    XUN
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload a small project that demonstrates this issue?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice