Android Question Debug does not show cast error

Discussion in 'Android Questions' started by nvickery, Jul 9, 2019.

  1. nvickery

    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.
  2. Erel

    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.
  3. nvickery

    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
  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