Android Question App runs in debug, throws error in release: Object should first be initialized

tufanv

Expert
Licensed User
Longtime User
Hello,

I can run my app in debug mode but in release mode I get following lines:

B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (B4XView).
    at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1710)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:227)
    at android.app.ActivityThread.main(ActivityThread.java:7822)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
Caused by: java.lang.RuntimeException: Object should first be initialized (B4XView).
    at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
    at anywheresoftware.b4a.objects.B4XViewWrapper.getViewObject(B4XViewWrapper.java:102)
    at anywheresoftware.b4a.objects.B4XCanvas.Initialize(B4XCanvas.java:54)
    at ct.canliborsa.anotherdatepicker$ResumableSub_DesignerCreateView.resume(anotherdatepicker.java:412)
    at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1708)
    ... 7 more

How can I debug this problem when no error occurs on debug mode?

Thnaks
 

tufanv

Expert
Licensed User
Longtime User
I missed the line:
B4X:
 at ct.canliborsa.anotherdatepicker$ResumableSub_DesignerCreateView.resume(anotherdatepicker.java:412)

It is obivously a problem with the anoterdatepicker. Problem solved
 
Upvote 0
Top