Hi ! I'm facing a similar issue... How can we avoid GC when a connection or cursor is opened ? How can we improve database access to be threaded-safe ?
It's very difficult to avoid crash. Le mardi 25 août 2015 18:21:26 UTC+2, Shai Almog a écrit : > > It had me a bit stumped so I consulted with Steve since I don't use the > SQLite API myself and he does use it in his apps. > He says that the thread sensitivity of the API is really great and this > becomes a problem since the GC might finalize a connection that wasn't > closed properly for you. If it does it on the GC thread then you might > physically crash. > > I don't like that one bit but I'm not sure how we can workaround it. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b3a23afb-92a8-4bcf-bb0f-0247ce25d8f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
