[mono-android] change to a Java cast after 4.2.2

John Murray john at murray.gb.com
Wed Jun 13 15:00:53 UTC 2012


Since installing 4.2.2 I now get an unhandled exc on this code 

Which I've probably been lucky to get away with before... trouble is I don't
know what to do next to solve it 

Its a dialog click method 

 

public void garlistclick(object sender, DialogClickEventArgs ee)

        {

            AlertDialog send = (AlertDialog)sender;

            

            JavaList selitem3 =
(JavaList)send.ListView.GetItemAtPosition(ee.Which);

 

The unhandled happens on the third line and say 'invalid cast' cannot cast
from source...

 

Seemed to work just fine before 

 

Any suggestions ?

 

Thanks in advance

 

JM 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120613/4fabe9ae/attachment.html>


More information about the Monodroid mailing list