For some strange reason I am getting this error only in Release mode. It works if I compile in Release mode and run it but when I end it and start it from the icon I get this error.
b4xmainpage$ResumableSub_GetGameNameresume (java line: 5820)
java.text.ParseException: Unparseable date: "05/14/2025"
at java.text.DateFormat.parse(DateFormat.java:362)
at anywheresoftware.b4a.keywords.DateTime.DateParse(DateTime.java:148)
at AA.Adjunct.b4xmainpage$ResumableSub_GetGameName.resume(b4xmainpage.java:5820)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:275)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:215)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at anywheresoftware.b4a.keywords.Common$15.run(Common.java:1804)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:247)
at android.app.ActivityThread.main(ActivityThread.java:8676)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
The date looks just fine in the error message. I am almost positively it is something I am doing wrong in my code to create the error but can't seem to figure it out. Also not able to find any good hits on this error in the Forum.
I can either delete this code fragment or hopefully get this fixed by Tuesday because that is when me and the boys continue our current Axis & Allies game!
b4xmainpage$ResumableSub_GetGameNameresume (java line: 5820)
java.text.ParseException: Unparseable date: "05/14/2025"
at java.text.DateFormat.parse(DateFormat.java:362)
at anywheresoftware.b4a.keywords.DateTime.DateParse(DateTime.java:148)
at AA.Adjunct.b4xmainpage$ResumableSub_GetGameName.resume(b4xmainpage.java:5820)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:275)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:215)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
at anywheresoftware.b4a.keywords.Common$15.run(Common.java:1804)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:247)
at android.app.ActivityThread.main(ActivityThread.java:8676)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
The date looks just fine in the error message. I am almost positively it is something I am doing wrong in my code to create the error but can't seem to figure it out. Also not able to find any good hits on this error in the Forum.
B4X:
Else ' Restart an old game
Dim t As Long
strTempName = strTempName.Replace("*", "")
t = DateTime.DateParse(strTempName) <=== Errors out on this line
DateTime.DateFormat = "EEE, MMM d, yyyy"
strTempName = DateTime.Date(t)
End If
Speak("Playing game started on " & strTempName) ' When it works strTempName has "Wed, May 5, 2025"
I can either delete this code fragment or hopefully get this fixed by Tuesday because that is when me and the boys continue our current Axis & Allies game!