Hello René,

On Mon, Apr 9, 2012 at 5:43 AM, René Ruppert
<[email protected]> wrote:
> Thanks. What's your recommendation for now? Use 5.2.x? I went to 5.3 because 
> of the possibility to detect UI threading problems.

Here's my personal opinion as this really depend on your work/project,
your time table and your tolerance to risk.

You can always use stable for your all your work. The only thing you
need to take care is updating your OSX, Xcode, iOS SDK versions since
it can takes a few days for us to test them (they will be available to
you at the same time they are available to us) and issue a new
beta/stable release(s) that supports them (if any changes are
required).

You might want/need to use 'beta' releases, e.g. when you need some
features / latest fixes. It's even easier/safer to do so if you're not
planning to ship very soon, i.e. the beta(s) will likely become stable
before then so you're actually testing the code base you'll
(eventually) ship with.

The 'alpha' are previews of the (many) new features [1] that will be
available in the next major release. Other new features are still
being added (or could be removed from previous alphas), large changes
can still occurs [2]... So you might want to try them (since they can
prove useful [1] and your feedback on them is much appreciated) but
you should always have a backup plan to go back (to stable) if
anything fails or block you.

Regards,
Sebastien

[1] like the UI thread checks
[2] that seems to be the case for the crash you're experiencing


> Grüße, René
>
> Am 09.04.2012 um 00:09 schrieb Sebastien Pouliot <[email protected]>:
>
>> Hello René,
>>
>> This (generated) Trampoline* code is new (well changed) in 5.3.x so
>> you might be (the first) to hit a bug on it.
>>
>> I'll try to reproduce this and ensure it get fixed in the next
>> alpha/beta releases.
>>
>> Regards,
>> Sebastien
>>
>> On Sun, Apr 8, 2012 at 10:15 AM, René Ruppert
>> <[email protected]> wrote:
>>> Does not help. As I said there are two exceptions. Other one is crashing at 
>>> the constructor. Randomly. Same input data(same calendar events).
>>>
>>> Grüße, René
>>>
>>> Am 08.04.2012 um 12:56 schrieb Nic Wise <[email protected]>:
>>>
>>>> Try it without this
>>>>
>>>> BackgroundColor = new UIColor (oEvent.Calendar.CGColor)
>>>>
>>>> And/or report (log) what oEvent.Calendar.CGColor is.
>>>>
>>>>
>>>>
>>>> On Fri, Apr 6, 2012 at 19:16, René Ruppert <[email protected]> 
>>>> wrote:
>>>>> Hi,
>>>>>
>>>>>
>>>>>
>>>>> I have posted the exception before, but now I can add the piece of code 
>>>>> that
>>>>> is causing it.
>>>>>
>>>>> This is what gets executed ViewDidLoad(). I want to get all events in a 
>>>>> one
>>>>> month range:
>>>>>
>>>>>
>>>>>
>>>>> EKEventStore oStore = new EKEventStore ();
>>>>>
>>>>> NSPredicate oPredicate = oStore.PredicateForEvents (this.EventRangeStart,
>>>>> this.EventRangeEnd, oStore.Calendars);
>>>>>
>>>>> oStore.EnumerateEvents (
>>>>>
>>>>>   oPredicate,
>>>>>
>>>>>   delegate(EKEvent oEvent, ref bool bStop)
>>>>>
>>>>>   {
>>>>>
>>>>>     LocalEventItem oLocalEvent = new LocalEventItem ()
>>>>>
>>>>>     {
>>>>>
>>>>>       ID = -1,
>>>>>
>>>>>       Name = oEvent.Title,
>>>>>
>>>>>       StartDate = oEvent.StartDate,
>>>>>
>>>>>       EndDate = oEvent.EndDate,
>>>>>
>>>>>       Description = oEvent.Notes,
>>>>>
>>>>>       EventType = LocalEventItem.EVENT_TYPE.Local,
>>>>>
>>>>>       Location = oEvent.Location,
>>>>>
>>>>>       BackgroundColor = new UIColor (oEvent.Calendar.CGColor)
>>>>>
>>>>>     } ;
>>>>>
>>>>>     aEvents.Add (oLocalEvent); bStop = false; } );
>>>>>
>>>>>   }
>>>>>
>>>>> );
>>>>>
>>>>>
>>>>>
>>>>> And these are the exceptions I’m getting randomly (for same input
>>>>> parameters!) when the above gets executed. I pasted two variations of the
>>>>> exception below.
>>>>>
>>>>> Both crash in the search callback. One when accessing the start date, the
>>>>> other when trying to get the color of the event.
>>>>>
>>>>>
>>>>>
>>>>>> CRASH @ 06.04.2012 11:28:53
>>>>>> MONOTOUCH VERSION: 5.3.2
>>>>>> TERMINATING:True
>>>>>> EXCEPTION:
>>>>>> System.NullReferenceException: Object reference not set to an instance of
>>>>>> an object
>>>>>>  at MonoTouch.Foundation.NSObject.InitializeObject (Boolean alloced)
>>>>>> [0x00000] in
>>>>>> /Developer/MonoTouch/Source/monotouch/src/Foundation/NSObject.cs:122
>>>>>>  at MonoTouch.Foundation.NSObject..ctor 
>>>>>> (MonoTouch.Foundation.NSObjectFlag
>>>>>> x) [0x0000d] in
>>>>>> /Developer/MonoTouch/Source/monotouch/src/Foundation/NSObject.cs:54
>>>>>>  at MonoTouch.UIKit.UIColor..ctor (MonoTouch.CoreGraphics.CGColor color)
>>>>>> [0x00000] in <filename unknown>:0
>>>>>>  at
>>>>>> BrainloopMobile.Calendar.BaseCalendarViewModeController+<GetEventsInRange>c__AnonStorey38.<>m__AA
>>>>>> (MonoTouch.EventKit.EKEvent oEvent, System.Boolean& bStop) [0x00000] in
>>>>>> /Users/rene/Documents/Develop/Projects/BrainloopMobile/210/BrainloopMobile/BrainloopMobile/Controllers/Calendar/ViewModes/BaseCalendarViewModeController.cs:48
>>>>>>  at MonoTouch.EventKit.EKEventStore.TrampolineEKEventSearchCallback
>>>>>> (IntPtr block, IntPtr theEvent, System.Boolean& stop) [0x0004d] in
>>>>>> /Developer/MonoTouch/Source/monotouch/src/EventKit/EKEventStore.g.cs:477
>>>>>>  at (wrapper native-to-managed)
>>>>>> MonoTouch.EventKit.EKEventStore:TrampolineEKEventSearchCallback
>>>>>> (intptr,intptr,int&)
>>>>>
>>>>>
>>>>>
>>>>> CRASH @ 06.04.2012 11:42:25
>>>>>
>>>>> MONOTOUCH VERSION: 5.3.2
>>>>>
>>>>> BRAINLOOP MOBILE VERSION: 2.1.0.120405
>>>>>
>>>>> TERMINATING:True
>>>>>
>>>>> EXCEPTION:
>>>>>
>>>>> System.NullReferenceException: Object reference not set to an instance of 
>>>>> an
>>>>> object  at MonoTouch.ObjCRuntime.Runtime.ConstructNSObject (IntPtr ptr,
>>>>> IntPtr klass) [0x0000d] in
>>>>> /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:205
>>>>>
>>>>> at MonoTouch.ObjCRuntime.Runtime.GetNSObject (IntPtr ptr) [0x0001f] in
>>>>> /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:254
>>>>>
>>>>> at MonoTouch.EventKit.EKEvent.get_StartDate () [0x0000b] in
>>>>> /Developer/MonoTouch/Source/monotouch/src/EventKit/EKEvent.g.cs:159
>>>>>
>>>>> at
>>>>> BrainloopMobile.Calendar.BaseCalendarViewModeController+<GetEventsInRange>c__AnonStorey38.<>m__AA
>>>>> (MonoTouch.EventKit.EKEvent oEvent, System.Boolean& bStop) [0x00000] in
>>>>> /Users/rene/Documents/Develop/Projects/BrainloopMobile/210/BrainloopMobile/BrainloopMobile/Controllers/Calendar/ViewModes/BaseCalendarViewModeController.cs:48
>>>>>
>>>>> at MonoTouch.EventKit.EKEventStore.TrampolineEKEventSearchCallback (IntPtr
>>>>> block, IntPtr theEvent, System.Boolean& stop) [0x0004d] in
>>>>> /Developer/MonoTouch/Source/monotouch/src/EventKit/EKEventStore.g.cs:477
>>>>>
>>>>> at (wrapper native-to-managed)
>>>>> MonoTouch.EventKit.EKEventStore:TrampolineEKEventSearchCallback
>>>>> (intptr,intptr,int&)=
>>>>>
>>>>>
>>>>>
>>>>> Any ideas what’s going on? Are there alternatives to the code above that I
>>>>> could try?
>>>>>
>>>>>
>>>>>
>>>>> René
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> MonoTouch mailing list
>>>>> [email protected]
>>>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Nic Wise
>>>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>>>> b. http://www.fastchicken.co.nz/
>>>>
>>>> Earnest: Self-employed? Track your business expenses and income.
>>>> http://earnestapp.com
>>>> Nearest Bus: find when the next bus is coming to your stop. 
>>>> http://goo.gl/Vcz1p
>>>> mobileAgent (for FreeAgent): get your accounts in your pocket.
>>>> http://goo.gl/IuBU
>>>> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>>>> London Bike App: Find the nearest Boris Bike, and get riding! 
>>>> http://goo.gl/Icp2
>>> _______________________________________________
>>> MonoTouch mailing list
>>> [email protected]
>>> http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to