Re: [mono-android] Problem with SQLite and a managed code function

2014-04-06 Thread Vladimir Dimitrov
Maybe it is worth thinking about that case as other users may experience the same runtime problems in production with their clients while everything seems to work in debug mode. On 6.4.2014 г. 00:32 ч., Jonathan Pryor wrote: On Apr 5, 2014, at 4:50 PM, Vladimir Dimitrov wrote: The question s

Re: [mono-android] Problem with SQLite and a managed code function

2014-04-05 Thread Jonathan Pryor
On Apr 5, 2014, at 4:50 PM, Vladimir Dimitrov wrote: > The question still have is why was everything working in debug mode while the > support for x86 was turned off? Debug .apk's contain libmonodroid.so for all ABIs, as this makes deployment easier. Rephrased: Debug builds ignore the $(Androi

Re: [mono-android] Problem with SQLite and a managed code function

2014-04-05 Thread Vladimir Dimitrov
It was SDK only. Also I put a Preserve attribute on the class just in case. But I think I got the problem to some extent. This particular tablet seems to actually be using x86 architecture somehow. The moment I enabled the x86 abi for the package the application started working with SQLite. Th

Re: [mono-android] Problem with SQLite and a managed code function

2014-04-04 Thread Jonathan Pryor
On Apr 4, 2014, at 12:54 PM, Vladimir Dimitrov wrote: > The problem gets even stranger as if I run the code in debug mode then > everything works fine and I don't get the exception. But the problem happens > only when I run the release code...!!! What link mode does your project have? Is it Sdk

[mono-android] Problem with SQLite and a managed code function

2014-04-04 Thread Vladimir Dimitrov
Hello guys, I am hitting a pretty strange problem right now. Since SQLite does not support regular expressions I added a custom function with the following declaration: [SqliteFunction (Name = "REGEXP", Arguments = 2, FuncType = FunctionType.Scalar)] public class RegexpFunction : Sq