[Mono-dev] Mono 1.2.5 Preview 2

pablosantosluac pablosantosluac at terra.es
Fri Aug 3 11:53:03 EDT 2007


Yes, because I'm looking for an specific element into an array, I'm looking 
by index. Instead of creating an object of this type I just send the ID... 
ok, ok, ok... I'll change it... :-(
----- Original Message ----- 
From: "Miguel de Icaza" <miguel at novell.com>
To: "pablosantosluac" <pablosantosluac at terra.es>
Cc: "Rolf Bjarne Kvinge" <rolflists at ya.com>; "'Wade Berrier'" 
<wberrier at novell.com>; <mono-devel-list at lists.ximian.com>
Sent: Friday, August 03, 2007 5:43 PM
Subject: Re: [Mono-dev] Mono 1.2.5 Preview 2


>
>>
>> And I was assuming (probably it is wrong) that the parameter X was always
>> the itemId (which is a long). It used to work, but now I realize it can 
>> be
>> wrong
>
> This does look very wrong.   All the values in the binary search must be
> of the same type and you are casting it to two different types.
>
>>
>> public int Compare(object x, object y)
>>
>> {
>>
>>    long itemId = (long)x;
>>
>>    ObjectInfo objInfo = y as ObjInfo;
>>
>>    // compare here objInfo.item and itemId
>>
>>
>>
>> }
>>
>>
>>
>> ----- Original Message ----- 
>> From: "Rolf Bjarne Kvinge" <rolflists at ya.com>
>> To: "'pablosantosluac'" <pablosantosluac at terra.es>; "'Wade Berrier'"
>> <wberrier at novell.com>; <mono-devel-list at lists.ximian.com>
>> Sent: Friday, August 03, 2007 5:09 PM
>> Subject: RE: [Mono-dev] Mono 1.2.5 Preview 2
>>
>>
>> >
>> >
>> >> -----Original Message-----
>> >> From: mono-devel-list-bounces at lists.ximian.com 
>> >> [mailto:mono-devel-list-
>> >> bounces at lists.ximian.com] On Behalf Of pablosantosluac
>> >> Sent: viernes, 03 de agosto de 2007 15:02
>> >> To: Wade Berrier; mono-devel-list at lists.ximian.com
>> >> Subject: Re: [Mono-dev] Mono 1.2.5 Preview 2
>> >>
>> >> Hi,
>> >>
>> >> I've just run Plastic with preview 1.2.5 and:
>> >>
>> >> - I got a "Comparer threw an exception" in a ArrayList BinarySearch
>> >> which was working with 1.2.4. It looks like the list is sending a 
>> >> wrong
>> >> parameter to the Compare(object x, object y) method. The "x" is 
>> >> expected
>> > to be a
>> >> long but an objects arrives.
>> >>
>> >> It looks like the order in which objects are sent to the Comparer are
>> >> switched.
>> >>
>> >
>> > Could you provide some more information on this issue (stacktraces, 
>> > maybe
>> > sample code)?
>> >
>> > Rolf
>> >
>> >> pablo
>> >>
>> >> ----- Original Message -----
>> >> From: "Wade Berrier" <wberrier at novell.com>
>> >> To: <mono-devel-list at lists.ximian.com>
>> >> Sent: Thursday, August 02, 2007 1:30 AM
>> >> Subject: [Mono-dev] Mono 1.2.5 Preview 2
>> >>
>> >>
>> >> > Hi,
>> >> >
>> >> > Mono 1.2.5 preview 2 sources, packages, and installers are available
>> >> at:
>> >> >
>> >> > http://mono.ximian.com/monobuild/preview/download-preview/
>> >> >
>> >> > At some point, the release notes for 1.2.5 will be available at:
>> >> >
>> >> > http://go-mono.com/archive/1.2.5/
>> >> >
>> >> > If no critical bugs are found after the preview period, these same
>> >> > downloads will be posted on mono-project.com for general 
>> >> > consumption.
>> >> >
>> >> > If there are critical bugs found, only those packages/sources will 
>> >> > be
>> >> > updated before publishing to mono-project.com.
>> >> >
>> >> > Since this release hasn't been pushed to our main download server,
>> >> some
>> >> > sources may be retagged if critical bugs are found.  Those tags are
>> >> not
>> >> > final until we publish to mono-project.com.
>> >> >
>> >> > Changes with preview 2 over preview 1:
>> >> >
>> >> > MonoDevelop 0.15
>> >> > IPCE r6
>> >> > cocoa-sharp 0.9.4
>> >> > redcarpet/opencarpet support dropped (all the distros we support can
>> >> > install packages via yast or yum)
>> >> > Several critial bugs fixed that were found in preview1 (Thanks for
>> >> > testing!!)
>> >> > ikvm 0.34.0.2
>> >> >
>> >> > Wade
>> >> >
>> >> > _______________________________________________
>> >> > Mono-devel-list mailing list
>> >> > Mono-devel-list at lists.ximian.com
>> >> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> >>
>> >> _______________________________________________
>> >> Mono-devel-list mailing list
>> >> Mono-devel-list at lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> >>
>> >>
>> >> --
>> >> No virus found in this incoming message.
>> >> Checked by AVG Free Edition.
>> >> Version: 7.5.476 / Virus Database: 269.11.2/933 - Release Date:
>> >> 02/08/2007 14:22
>> >
>> >
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list 




More information about the Mono-devel-list mailing list