[mono-android] Monodroid and LINQ ?!

Carlo Bolz cb at dm-edv.de
Fri Mar 18 12:12:37 EDT 2011


Hello,

 

sometimes my application  restarts while executing the following LINQ
expression (it behaves always on the same data):

 

                Log.Info("DMMobile", "Start query");
                entities = (from Klient k in Siaq
                            join Adresse a in Siaq on k.AdresseXadrId equals
a.XadrId
                            orderby a.XadrName1
                            select new ListItem() { ItemText = a.XadrName1,
ItemDescription = String.Format("{0} {1}", a.XadrName1, a.XadrName2), OID =
k.OID, ItemDescription2 = a.XadrStrasse, ItemDescription3 = a.XadrTelefon
}).ToList<ListItem>();

   Log.Info("DMMobile", "Query executed");

 

 

Log:

 

I/DMMobile(  679): Start query

D/dalvikvm(  679): GetMethodID: method not found:
Landroid/widget/EditText;.monodroidAddReference:(Ljava/lang/Object;)V

D/dalvikvm(  679): GetMethodID: method not found:
Landroid/widget/EditText;.monodroidAddReference:(Ljava/lang/Object;)V

D/dalvikvm(  679): GC_EXPLICIT freed 24K, 54% free 3158K/6727K, external
2958K/3339K, paused 55ms

D/webviewglue(  679): nativeDestroy view: 0x5185c0

E/mono    (  679): 

E/mono    (  679): Unhandled Exception: System.NullReferenceException:
Object reference not set to an instance of an object

E/mono    (  679):   at System.String.memcpy2 (System.Byte* dest,
System.Byte* src, Int32 size) [0x00000] in <filename unknown>:0 

E/mono    (  679):   at System.String.CharCopy (System.Char* dest,
System.Char* src, Int32 count) [0x00000] in <filename unknown>:0 

E/mono    (  679):   at System.String.CharCopy (System.String target, Int32
targetIndex, System.String source, Int32 sourceIndex, Int32 count) [0x00000]
in <filename unknown>:0 

E/mono    (  679):   at System.Text.StringBuilder.Append (System.String
value) [0x00000] in <filename unknown>:0 

E/mono    (  679):   at System.Exception.ToString () [0x00000] in <filename
unknown>:0 

D/Zygote  (   33): Process 679 exited cleanly (1)

 

Any suggestions?

 

Mit freundlichem Gruß / With kind regards

Carlo Bolz

E-Mailfooter

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110318/7b7ed8d8/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 12034 bytes
Desc: not available
Url : http://lists.ximian.com/mailman/private/monodroid/attachments/20110318/7b7ed8d8/attachment-0001.jpe 


More information about the Monodroid mailing list