[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-28 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c6


Ethan Nagel ena...@nageltech.com changed:

   What|Removed |Added

 CC||ena...@nageltech.com

--- Comment #6 from Ethan Nagel ena...@nageltech.com 2010-07-28 21:58:00 UTC 
---
I'm having the same problem.   I understand that the ActionSheet is getting
GC'ed prematurely, but shouldn't it be retained automatically while it's not
displayed?  This is how it would work in straight ObjC.

It is a pain to maintain a class variable just ti keep this object  from
getting collected to early.  It's not perfect and I'm getting pretty used to
perfection in MT ;)

 - Ethan

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-02 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c


Michael Hutchinson mhutchin...@novell.com changed:

   What|Removed |Added

  Component|IPhone add-in   |Runtime
Version|2.4 |unspecified
 AssignedTo|mhutchin...@novell.com  |gnor...@novell.com
Product|MonoDevelop |MonoTouch
  QAContact|monodevelop-b...@lists.ximi |mono-bugs@lists.ximian.com
   |an.com  |

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-02 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c


Michael Hutchinson mhutchin...@novell.com changed:

   What|Removed |Added

 CC||mhutchin...@novell.com
  Component|Runtime |Class Libraries

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-02 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c1


Geoff Norton gnor...@novell.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

--- Comment #1 from Geoff Norton gnor...@novell.com 2010-07-02 20:45:04 UTC 
---
You are letting the UIActionSheet get garbage ocllected as soon as you return
from Purge (), but you are telling objc to call back on it to
HandleActionSheetClicked.  Keep a reference to the UIActionSheet until you have
dismissed it / or the user does.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-02 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c2


--- Comment #2 from Neal Culiner n...@nc-software.com 2010-07-02 20:51:12 UTC 
---
Can you provide suggested code as I'm not sure I'm following or agree with your
comment.  This is the code I've always used and it works fine on the device,
just not the SIM now in 3.0.10.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-02 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c3


--- Comment #3 from Geoff Norton gnor...@novell.com 2010-07-02 20:56:05 UTC 
---
The code never worked fine, you just got lucky because a GC didn't happen.

public class Foo {
  UIActionSheet sheet;

  private void Show () {
  sheet = new UIActionSheet (...);
  sheet.Dismissed += delegate { sheet = null; }
  }
}

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-02 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c4


--- Comment #4 from Neal Culiner n...@nc-software.com 2010-07-02 21:05:20 UTC 
---
I tried your code and it still crashes the simulator

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 619658] UIActionSheet causes crash

2010-07-02 Thread bugzilla_noreply
http://bugzilla.novell.com/show_bug.cgi?id=619658

http://bugzilla.novell.com/show_bug.cgi?id=619658#c5


--- Comment #5 from Geoff Norton gnor...@novell.com 2010-07-02 21:07:23 UTC 
---
Then you are also letting the container crash get collected.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs