SqliteFunction error with real device

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SqliteFunction error with real device

eternalbard

Greetings,

 

Yesterday I filed a bug that I think is interesting to all here to follow, related to Sqlite functions that can be created with C#.

If you create a simple function on Sqlite and execute the application on iOS Simulator, all runs ok. But if you executes it on an iPad (no iPhone or iPod here), it will fail on sqliteConnection.Open(), where the framework creates all custom functions.

 

https://bugzilla.novell.com/show_bug.cgi?id=679561

 

 

Karl Heinz Brehme


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SqliteFunction error with real device

David Moles
It's not really a bug per se -- I ran into the same thing invoking some method on Dictionary through LINQ and IEnumerable. It looks like you need to trick Mono into AOT-compiling those Sqlite methods, but offhand -- not knowing the library -- I don't know the best way to do that. 

On Tue, Mar 15, 2011 at 2:29 PM, Karl Heinz Brehme Arredondo <[hidden email]> wrote:

Greetings,

 

Yesterday I filed a bug that I think is interesting to all here to follow, related to Sqlite functions that can be created with C#.

If you create a simple function on Sqlite and execute the application on iOS Simulator, all runs ok. But if you executes it on an iPad (no iPhone or iPod here), it will fail on sqliteConnection.Open(), where the framework creates all custom functions.

 

https://bugzilla.novell.com/show_bug.cgi?id=679561

 

 

Karl Heinz Brehme


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch




--
David Moles

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RES: SqliteFunction error with real device

eternalbard

Hi David, but you get this just in device? I mean, on Simulator it ran ok?

 

Karl

 

De: David Moles [mailto:[hidden email]]
Enviada em: terça-feira, 15 de março de 2011 18:40
Para: Karl Heinz Brehme Arredondo
Cc: [hidden email]
Assunto: Re: [MonoTouch] SqliteFunction error with real device

 

It's not really a bug per se -- I ran into the same thing invoking some method on Dictionary through LINQ and IEnumerable. It looks like you need to trick Mono into AOT-compiling those Sqlite methods, but offhand -- not knowing the library -- I don't know the best way to do that. 

On Tue, Mar 15, 2011 at 2:29 PM, Karl Heinz Brehme Arredondo <[hidden email]> wrote:

Greetings,

 

Yesterday I filed a bug that I think is interesting to all here to follow, related to Sqlite functions that can be created with C#.

If you create a simple function on Sqlite and execute the application on iOS Simulator, all runs ok. But if you executes it on an iPad (no iPhone or iPod here), it will fail on sqliteConnection.Open(), where the framework creates all custom functions.

 

https://bugzilla.novell.com/show_bug.cgi?id=679561

 

 

Karl Heinz Brehme


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch




--
David Moles

 


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RES: SqliteFunction error with real device

David Moles
I don't remember whether it happened on the simulator or not. Possibly simulator builds don't use --aot-only? Somebody more knowledgeable than me will have to weigh in on that.

On Tue, Mar 15, 2011 at 4:33 PM, Karl Heinz Brehme Arredondo <[hidden email]> wrote:

Hi David, but you get this just in device? I mean, on Simulator it ran ok?

 

Karl

 

De: David Moles [mailto:[hidden email]]
Enviada em: terça-feira, 15 de março de 2011 18:40
Para: Karl Heinz Brehme Arredondo
Cc: [hidden email]
Assunto: Re: [MonoTouch] SqliteFunction error with real device

 

It's not really a bug per se -- I ran into the same thing invoking some method on Dictionary through LINQ and IEnumerable. It looks like you need to trick Mono into AOT-compiling those Sqlite methods, but offhand -- not knowing the library -- I don't know the best way to do that. 

On Tue, Mar 15, 2011 at 2:29 PM, Karl Heinz Brehme Arredondo <[hidden email]> wrote:

Greetings,

 

Yesterday I filed a bug that I think is interesting to all here to follow, related to Sqlite functions that can be created with C#.

If you create a simple function on Sqlite and execute the application on iOS Simulator, all runs ok. But if you executes it on an iPad (no iPhone or iPod here), it will fail on sqliteConnection.Open(), where the framework creates all custom functions.

 

https://bugzilla.novell.com/show_bug.cgi?id=679561

 

 

Karl Heinz Brehme


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch




--
David Moles

 


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch




--
David Moles

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Loading...