[Mono-bugs] [Bug 589825] wrapper managed-to-native crash
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Mar 19 14:35:58 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=589825
http://bugzilla.novell.com/show_bug.cgi?id=589825#c1
--- Comment #1 from Rick Gross <rickgross at mac.com> 2010-03-19 18:35:58 UTC ---
Here is the code I think is causing the problem:
using(var alert = new UIAlertView("Schedule Updates", "Do you
want to download?", new CallAlert (this), "No", "Yes"))
{
alert.Show();
}
public class CallAlert : UIAlertViewDelegate
{
private AppDelegate _appd;
public CallAlert (AppDelegate appd)
{
Debug.WriteLine("CallAlert enter");
_appd = appd;
}
public override void Clicked (UIAlertView alertview, int
buttonIndex)
{
Debug.WriteLine("Clicked enter");
AppDelegate appDelegate = (AppDelegate)
UIApplication.SharedApplication.Delegate;
if (buttonIndex == 1)
{
appDelegate.copyFile.SyncData("day");
}
}
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list