Re: [Mono-dev] How to access XplatUI for custom controls?

2010-10-15 Thread Miguel de Icaza
Hello, Right now, I'm using only a very limited subset: > GetFocus, > ResetMouseHover > ScrollWindow > > So obviously, I could manage it manually. But I was thinking about porting > various opensource controls, available on Internet and which uses > GUI-related win32 calls (such as the ecellent D

Re: [Mono-dev] Optimization for SystemResPool (managed windows form)

2010-10-15 Thread Miguel de Icaza
Hello Lionel, > Here is the modified code (sorry, I'm sending this code on the fly as I'm > not on a computer right now, and so has no access to any diff program nor > can run the Mono's unit tests). > Looks interesting, please resend the code when you get to your computer that has a diff tool a

Re: [Mono-dev] Optimization for SystemResPool (managed windows form)

2010-10-15 Thread Stifu
Note that doing such changes wasn't possible until Mono 2.8, as your patch relies on generics, which were introduced in .NET 2.0. With the .NET 1.1 profile no longer supported, we can now go generic happy. Talking about WinForms optimizations, I noticed a few things that could be improved back th

[Mono-dev] Optimization for SystemResPool (managed windows form)

2010-10-15 Thread Lionel Cuir
The SystemResPool class (in Theme.cs) is quite heavily used across managed windows forms. Yet, it still use the old Hashtable (instead of Dictionary) and mainly some of its internal caching dictionary uses strings as key (ex: to get the cached pen for a given color, it converts the color to a strin

Re: [Mono-dev] libgdiplus linecap issue

2010-10-15 Thread Dick Porter
On Mon, 2010-10-04 at 18:43 -0700, Francis A. Bausch wrote: > unfortunately i was not carefui enough in my analysis. > > this is my crash: > > [Error, 10/4/2010, 9:21:22 PM] UNHANDLED EXCEPTION: > System.ArgumentException: A null reference or invalid value was found [GDI+ > stat > us: InvalidPar

Re: [Mono-dev] Problems with System.ServiceModel.Web

2010-10-15 Thread Atsushi Eno
Hello, OK, I have checked in your patch in almost identical form in git master. I found that GET operation does not pass on .NET when GetRequestClientFormatter() is invoked, so I split it into another contract and marked the test as NotWorking (it haven't passed earlier anyways). Thanks a lot f

Re: [Mono-dev] TR: How to access XplatUI for custom controls?

2010-10-15 Thread Stefanos A.
2010/10/15 Lionel Cuir > "To encapsulate common methods" is exactly what I mean, and that's what > provides XplatUT. Kind of things (GetFocus, Show/GetWindows, etc.) that so > few .NET developpers know how to do on linux. So why not an external > library > giving access to some of XplatUI methods

Re: [Mono-dev] TR: How to access XplatUI for custom controls?

2010-10-15 Thread Lionel Cuir
"To encapsulate common methods" is exactly what I mean, and that's what provides XplatUT. Kind of things (GetFocus, Show/GetWindows, etc.) that so few .NET developpers know how to do on linux. So why not an external library giving access to some of XplatUI methods? -Message d'origine- De

Re: [Mono-dev] Mono and WCF support

2010-10-15 Thread Chakotey STME
ok, thanks for your answer Atsushi 2010/10/13 Atsushi Eno : >  Hello, > > On 2010/10/10 18:33, Chakotey STME wrote: >> >> Hello, >> >> thanks for your answer. >> >> But I don't know in which version wcf is implemented in mono. >> Is it for example implemented in mono 2.4 or only in 2.6 and 2.8? >

Re: [Mono-dev] TR: How to access XplatUI for custom controls?

2010-10-15 Thread Stifu
It's up to the developer to make his/her own interface for native calls. Or an external library could be made to encapsulate common methods, that would work too, and wouldn't break compatibility with .NET WinForms. At some point, there were also plans to turn native Windows calls into managed cal

Re: [Mono-dev] TR: How to access XplatUI for custom controls?

2010-10-15 Thread Stefanos A.
You can use reflection to access XplatUI methods. This is evil and may break between Mono versions. Just make sure you test your code whenever a new Mono version comes out. 2010/10/15 Lionel Cuir > To go a little further: many good .NET controls, opensource or not, use > win32 calls. Many deve

Re: [Mono-dev] Process problem

2010-10-15 Thread Charles Esterbrook
On Fri, Oct 15, 2010 at 1:01 AM, Charles Esterbrook wrote: > I found another problem with Process and this time was able to distill > it to minimal code. It's an interesting one! > ... One more thing. I did a "make install" on the Mono 2.6.7 source directory and the problem goes away. So definite

[Mono-dev] Process problem

2010-10-15 Thread Charles Esterbrook
I found another problem with Process and this time was able to distill it to minimal code. It's an interesting one! I'm running Mono 2.8 built and installed from source on a fully updated Arch Linux x86 (32-bit) with GNOME desktop. Overall things are working well as evidenced by Mono's complete bu

[Mono-dev] TR: How to access XplatUI for custom controls?

2010-10-15 Thread Lionel Cuir
To go a little further: many good .NET controls, opensource or not, use win32 calls. Many developpers I have met only know the win32 APIs and nor their equivalent in Linux. Typically, many well-known commercial GUI toolkits (componentOne, devexpress, infragistics, ...) use Win32 calls and so cannot