New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Setting Serialized Mode in PCL #35
Comments
searching through the code I have found that in SQLite.Net.Interop.ISQLiteApi the following line.
so the ability to set the config is not implemented. Is there a reason why? With the non-PCL I had to set Serialized to avoid getting SIGSEVC errors on multi thread access. |
I'm not sure why this is, it might simply be a mistake. |
unfortunately not! it seems all of these are not implemented in the Internal, or defined in the interface.
I'll see what I can do to test the implementation of these, but I do not have an environment to build for all platforms unfortunately. |
I have attempted to make the necessary changes to add in this functionality. As mentioned I cannot do all platforms, and some I have no ability to test. I am testing for Xamarin iOS and Android. the changes I have made to source are
++++++++++++++++++ Ok, so I have only done some limited testing so far, but seems to solve my problem which was on Android. I have not touched WindowsPhone8 as I cannot load it into VisualStudio. What would you like me to do with the files I have modified? I could (try) and create a fork on Git hub and commit them up? (note: I am not very familiar with Git, but am willing to try this), or zip them up and send them to you, or maybe you don't need/want them anyway. |
tried to contribute my changes by creating a pull request, but it did not work as I expected. |
Have now forked and committed the files I have changed. let me know what to do next? |
Hi, to create a pull request you should create a new branch on your repo and then you can use github to create a PR. Regarding this change, I think it's a good idea to add it back, but I fear there are some platforms that do not support/implement the necessary sqlite3 functions.
|
So has this been merged? @oysteinkrog , throwing a NotSupportedException is the right thing in this case, as the operation IS really not supported on that platform. Thanks a lot for the great effort everybody :) |
Hi @has-taiar, nothing has been merged yet. |
I have attempted to do all neccessary changes, and created a pull-request #39. |
Hi, in non PCL version of SQLite.Net I was able to do this for Android and iOS:
and this would stop the threading error.
I cannot see how to set serailize mode with the PCL. Can you explain please.
The text was updated successfully, but these errors were encountered: