Re: [Mono-dev] ToString() performace in Mono

2007-11-25 Thread Andreas Nahr
There seem to be some low-hanging fruit there. Actually I did some optimizations some years ago, but some were rejected because of possible code bloat. Here are some things in the current implementation that could likely be improved: 1) ToString calls FormatGeneral, which is the most complex

[Mono-dev] [PATCH] Fix of Parsing Uri path on Windows

2007-11-25 Thread Arina Itkes
Hi all, Please review this fix. SystemUri.patch Description: SystemUri.patch SystemTestUri.patch Description: SystemTestUri.patch ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] Remoting Server Events problem

2007-11-25 Thread Robert Jordan
[EMAIL PROTECTED] wrote: Hi: I know that is very possible that this is a basic remoting question, but I read some info about the native .NET approach used with remoting and I think that my code is supose it to work: I write a class with a method to trigger some event (this is the object

[Mono-dev] [PATCH] Case-insensitive comparison in HybridDictionary

2007-11-25 Thread Konstantin Triger
Please review the patch for default case insensitive comparison in HybridDictionary. (Should be ordinal and not invariant). Index: Test/System.Collections.Specialized/HybridDictionaryTest.cs === ---

[Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Antti S. Lankila
The Dictionary.CopyTo appears to miss the public qualifier, thus making it impossible for client code to make use of this method. -- Antti ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Valentin Sawadski
Hello, On Sun, 2007-11-25 at 14:45 +0200, Antti S. Lankila wrote: The Dictionary.CopyTo appears to miss the public qualifier, thus making it impossible for client code to make use of this method. It explicitly implements copy to in line 643 and 653. So CopyTo is publicly available. If you

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Antti S. Lankila
Valentin Sawadski wrote: It explicitly implements copy to in line 643 and 653. So CopyTo is publicly available. If you refer to the CopyTo at line 275, this is being called by the explicit implementation of it. *Sigh*. Let this test program demonstrate: [EMAIL PROTECTED]:~/mono-hacks%

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Alan McGovern
Thats invalid code. If you want to access the 'CopyTo' method, you have to cast the dictionarystring, object as an ICollectionKeyValuePairstring, object. Alan. *Sigh*. Let this test program demonstrate: [EMAIL PROTECTED]:~/mono-hacks% gmcs bug.cs -o bug.exe warning CS8029: Compatibility:

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Leszek Ciesielski
On Nov 25, 2007 2:14 PM, Alan McGovern [EMAIL PROTECTED] wrote: Thats invalid code. If you want to access the 'CopyTo' method, you have to cast the dictionarystring, object as an ICollectionKeyValuePairstring, object. As MSDN states: http://msdn2.microsoft.com/en-us/library/1e8ecdh9.aspx

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Antti S. Lankila
Alan McGovern wrote: Thats invalid code. If you want to access the 'CopyTo' method, you have to cast the dictionarystring, object as an ICollectionKeyValuePairstring, object. Alan. Oh. Thanks for enlightening me. Sorry for troubling you. -- Antti

Re: [Mono-dev] Remoting IplImage/Bitmap return type problem

2007-11-25 Thread [EMAIL PROTECTED]
Is posible to create a binary representation of an object in memory with some serialization and transmit the bytes[] of the object with remoting and in the other side re-build the object with his bytes?, or I crazy :-S . Euan MacInnes wrote: Hi Mauricio, One option to do this is to

Re: [Mono-dev] Remoting Server Events problem

2007-11-25 Thread [EMAIL PROTECTED]
Thanks Robert, I very confuse with this, becouse I read a lote of diferent approach (event broadcast engines, shared objects, etc) to do this, but most of them don't work :-S , I wondore if you have a simple working example of the correct way to do this? in advance, thank you very much.

Re: [Mono-dev] Remoting Server Events problem

2007-11-25 Thread Robert Jordan
Hi, [EMAIL PROTECTED] wrote: Thanks Robert, I very confuse with this, becouse I read a lote of diferent approach (event broadcast engines, shared objects, etc) to do this, but most of them don't work :-S , I wondore if you have a simple working example of the correct way to do this?

Re: [Mono-dev] Remoting IplImage/Bitmap return type problem

2007-11-25 Thread Euan MacInnes
Assuming you're doing something similar to the following (pixel depth may vary, this assumes 32 bit): IplImage* img=cvCreateImage(cvSize(640,480),IPL_DEPTH_32F,3); Then you can access the image as an array like so: RgbImageFloat imgA(img); imgA[i][j].b = 111; imgA[i][j].g = 111; imgA[i][j].r