Android Question Application ends suddently while filling edittexts from a query

Discussion in 'Android Questions' started by DanteS, Jul 20, 2015.

  1. DanteS

    DanteS Member Licensed User

    I am developing an application to show sales. You enter the invoice number and send a query to the data base and you receive the customer data and the products sold.
    I started bringing 3 fields and all ran fine, but when I increased the number of fields to 6, the application ends suddenly. If I insert a msgbox between the loop that fills the edittexts with the customer data and the loop that fills a table with the products sold, it runs fine.
    It seems as if the filling rate was too high. It's posible?
    How can I avoid this?
    Is there something like Visual Basic DOEVENTS command to deal with such problems?

    Thanks in advance
  2. walterf25

    walterf25 Well-Known Member Licensed User

    Yes there is.


    Good luck!
    lemonisdead likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    DoEvents is almost all cases is not the proper solution. You should check the logs and see why your app crashed.
  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