sqlite update works but application exit out after the update

Hi, 

I am new to use the corona with sqlite.  I wrote the update statement for update the sqlite db, it works, I saw the data changes in the database. but the app exit out automatically after ran another two database select statements in the code.  I am not sure what is the issue.  there is no error in the log.  Here is the order i ran the queries:

Update table A; -> select from table B; -> select from table C;.  

Thanks

Hi @hk_chang3.  Can you provide some more information?  How are you looking at your log?  If the app is exiting abnormally, there will be something there useful.  

What version of Corona SDK are you using?

Can you post some code?   Is this happening on a device or in the simulator?

Thanks

Rob

Hi Rob,

Thanks you for respond.  My co-worker helped me and found out the issue.  I develop the app in mac, in the preference setting, under “Relaunch simulator after modify” it set to always.  So when the database file changed, the simulator relaunch again.

Thanks

Hi @hk_chang3.  Can you provide some more information?  How are you looking at your log?  If the app is exiting abnormally, there will be something there useful.  

What version of Corona SDK are you using?

Can you post some code?   Is this happening on a device or in the simulator?

Thanks

Rob

Hi Rob,

Thanks you for respond.  My co-worker helped me and found out the issue.  I develop the app in mac, in the preference setting, under “Relaunch simulator after modify” it set to always.  So when the database file changed, the simulator relaunch again.

Thanks