Hi,
Although it runs much quicker, there's definitely something a bit buggy with the new version in Debug(Rapid) mode. I'm getting a lot of "null pointer" exceptions, with varying locations in the code, the first time I interact with the screen. The following is typical:
Error occurred on line: 941 (main)
java.lang.NullPointerException
at anywheresoftware.b4a.shell.Shell.setStateBeforeUserSub(Shell.java:425)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:357)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:237)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:116)
at anywheresoftware.b4a.BA$2.run(BA.java:284)
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:4921)
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:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
The offending code is allegedly the last line of the following, which should be no issue:
lstMenu.Initialize("lstMenu")
lstMenu.Color = Colors.DarkGray
sMenuMode = "Edit"
If bSelectMode Then
lstMenu.AddSingleLine("Select Off")
Else
lstMenu.AddSingleLine("Select On")
End If
(sMenuMode is a simple string, and bSelectMode is a simple boolean).
The next time I ran the same code I got an error traced to a completely different line of code, essentially the end of the sub.
I've re-installed V3.2, and the problems have gone away (although I am suffering "cold turkey" because it's much slower
).
Please let me know if there's anything I can do to help track this down, because otherwise the new version is a definite improvement.
Thanks
Andrew