1
I am trying to insert 864 objects in the mobile database. I can enter up to 450, but then generates an exception: System.Argumentexception: Busy.
Does anyone have any idea what might be going on?
1
I am trying to insert 864 objects in the mobile database. I can enter up to 450, but then generates an exception: System.Argumentexception: Busy.
Does anyone have any idea what might be going on?
Browser other questions tagged android sqlite
You are not signed in. Login or sign up in order to post.
There may be a lack of synchronicity.
– Reginaldo Rigo
Have you examined what you have at position 450 to generate the exception? Have you reached any space limit? Have you tried debugging the process? Have you tried using
try-catch
and then treat the exception?– Rene Freak
Yes, I found the error, it is synchronization problem. In Sqliteconnection has a property "Busytimeout", I set a reasonable value and it worked. Thank you!
– Sr Max
You are using bulkInsert to make this load or a loop with multiple Inserts?
– Márcio Oliveira