I've been testing my Xamarin.Forms on iOS and ran into an error with the WithChildren
methods in SQLiteNetExtensions
.
My code seems to get stuck in lines containing GetAllWithChildren
and GetWithChildren
, as if there's some deadlock issue in the library. I'd like to believe this is wrong, since this works well in Android and the problem is only in iOS. However, it's important to note that this doesn't happen every time I start the app, only once every few runs...
Code Example:
try
{
return DB.GetAllWithChildren<T>().ToArray();
}
catch (Exception ex)
{
return null;
}
DB
is of type SQLiteConnection
and has an instance.
Ideas on what's going on or help on solving this will be very appreciated.
The issue on Github: https://github.com/media-tools/sqlite-net-extensions/issues/5