Android Question Debug does not show cast error

nvickery

New Member
Licensed User
The application runs when in debug mode, but not in Release mode.
I am using the Xml2Map and DBUtils to update a records in sqlite db.
In Debug mode the DB is updated and the records are displayed,
in Release Mode the Debug log show the following.
"java.lang.ClassCastException: java.util.ArrayList cannot be cast to anywheresoftware.b4a.objects.collections.Map$MyMap"

I would have expected the Debug to have show a error at least and not complete the process code. !

Any inputs appreciated, as this has me perplexed.
 

Erel

Administrator
Staff member
Licensed User
Debug mode can be more lenient in some cases. If you clean the project (Ctrl + P) and remove any breakpoints from the relevant sub then it should behave exactly like in release mode.

Anyway, there is a bug in your code which you need to fix.
 

nvickery

New Member
Licensed User
Thanks for the reply, and yes to confirm once i did the clean project. All was shown in Debug Thanks Again Erel
 
Top