Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

App Closes Immediately when Deployed to Device (iPhone 4.0.2)

Hi. I've got an application, runs fine when in simulator. When I load to device, it closes immediately upon on open. It seems to be related to having NO data in the local database. If fails on adding data to picker.

<script src='http://pastie.org/1113801.js'></script>

Last line, is where the failure happens.

Any suggestions? What am I missing?

— asked August 24th 2010 by Jennifer Bonnett
  • database
  • iphone
  • picker
0 Comments

1 Answer

  • check if the paidwith_data has any rows in it ( length >0 ) or the picker will try to add an empty array and die ofcourse

    — answered August 25th 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.