[Mono-dev] Expression Tree building exception

2011-12-01 Thread Giacomo Tesio
I opened the bug http://bugzilla.xamarin.com/show_bug.cgi?id=2304

I'm getting an ArgumentExpression from a specific Expression.Call that
should work (at least it works on Microsoft CLR)


System.ArgumentException: arguments
  at System.Linq.Expressions.Expression.CheckMethodArguments
(System.Reflection.MethodBase method, IEnumerable`1 args) [0x0] in
filename unknown:0
  at System.Linq.Expressions.Expression.Call
(System.Linq.Expressions.Expression instance, System.Reflection.MethodInfo
method, IEnumerable`1 arguments) [0x0] in filename unknown:0
  at System.Linq.Expressions.Expression.Call
(System.Linq.Expressions.Expression instance, System.Reflection.MethodInfo
method, System.Linq.Expressions.Expression[] arguments) [0x0] in
filename unknown:0

The bug has an attachment that rapidly show the bug.


Giacomo
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] bugzilla.novell.com

2011-12-01 Thread Mathias Tausig
Hello!

Are the bug reports on the novell site bugzilla.novell.com still beeing
processed, or only those found on the xamarin site?

regards
Mathias
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] bugzilla.novell.com

2011-12-01 Thread Stifu
Hi,

From what I saw, both are being processed.
But if you feel like a Novell-only bug is important and shouldn't be
overlooked, feel free to report it again on Xamarin (giving a link to the
old bug while we're there).

That's just my opinion, I'm not on the Mono team. :)


argemt wrote
 
 Hello!
 
 Are the bug reports on the novell site bugzilla.novell.com still beeing
 processed, or only those found on the xamarin site?
 
 regards
 Mathias
 ___
 Mono-list maillist  -  Mono-list@.ximian
 http://lists.ximian.com/mailman/listinfo/mono-list
 


--
View this message in context: 
http://mono.1490590.n4.nabble.com/bugzilla-novell-com-tp4127696p4127801.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Getting the milliseconds of a file's stat information

2011-12-01 Thread Mathias Tausig
Hello!

I want to read the creation/modify date information of a file and want
to use the Mono.Unix.Native.Stat structure for it.
I create the Stat variable either via UnixFileSystemInfo.ToStat or
directly with Mono.Unix.Native.Syscall.stat, both methods have the same
issue.
My problem is, that the information I get from that, is only precice up
to the second, but the 'stat' command issued on the linux command line
shows me a more precise information, for instance:
Modify: 2011-12-01 14:37:18.586409216 +0100

Is there any way to acces this infomation from within mono (apart from
parsing the command line output of stat)?

regards
Mathias
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Options of the project Mono for Net Framework 2.0

2011-12-01 Thread Stifu
I guess we need more info.
Did you use MonoDevelop, or tried to compile through command lines?


tumanovalex wrote
 
 In Ubuntu 11.10 has established Mono from repository, has transferred
 project Visual Studo 2008 for Net Framework 2.0 and has tried to compile
 it. I receive an error the compiler isn't found though the compiler for
 CLI 2 (mono-mcs) is established. Prompt how correctly to adjust, please,
 the project that it was compiled.
 


--
View this message in context: 
http://mono.1490590.n4.nabble.com/Options-of-the-project-Mono-for-Net-Framework-2-0-tp4128665p4128705.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Options of the project Mono for Net Framework 2.0

2011-12-01 Thread Bojan Rajkovic
Ubuntu 11.10 ships a Mono that only supports 4.0. The compiler, libraries, etc. 
are all 4.0 only in Ubuntu 11.10. If you need 2.0 support, you can try 
compiling manually and using csc /sdk:2, but I don't guarantee it will work.

—Bojan

On Dec 1, 2011, at 9:42 AM, Stifu wrote:

 I guess we need more info.
 Did you use MonoDevelop, or tried to compile through command lines?
 
 
 tumanovalex wrote
 
 In Ubuntu 11.10 has established Mono from repository, has transferred
 project Visual Studo 2008 for Net Framework 2.0 and has tried to compile
 it. I receive an error the compiler isn't found though the compiler for
 CLI 2 (mono-mcs) is established. Prompt how correctly to adjust, please,
 the project that it was compiled.
 
 
 
 --
 View this message in context: 
 http://mono.1490590.n4.nabble.com/Options-of-the-project-Mono-for-Net-Framework-2-0-tp4128665p4128705.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Options of the project Mono for Net Framework 2.0

2011-12-01 Thread Ian Norton
Or you can add a shell script in /usr/local/bin containing :

#!/bin/sh

$0 /sdk:2 $@


And save it as mcs and/or gmcs


On Thu, Dec 01, 2011 at 02:55:35PM +, Bojan Rajkovic wrote:
 Ubuntu 11.10 ships a Mono that only supports 4.0. The compiler, libraries, 
 etc. are all 4.0 only in Ubuntu 11.10. If you need 2.0 support, you can try 
 compiling manually and using csc /sdk:2, but I don't guarantee it will work.
 
 ?Bojan
 
 On Dec 1, 2011, at 9:42 AM, Stifu wrote:
 
  I guess we need more info.
  Did you use MonoDevelop, or tried to compile through command lines?
 
 
  tumanovalex wrote
 
  In Ubuntu 11.10 has established Mono from repository, has transferred
  project Visual Studo 2008 for Net Framework 2.0 and has tried to compile
  it. I receive an error the compiler isn't found though the compiler for
  CLI 2 (mono-mcs) is established. Prompt how correctly to adjust, please,
  the project that it was compiled. 
 
 
  --
  View this message in context: 
  http://mono.1490590.n4.nabble.com/Options-of-the-project-Mono-for-Net-Framework-2-0-tp4128665p4128705.html
  Sent from the Mono - General mailing list archive at Nabble.com.
  ___
  Mono-list maillist  -  Mono-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Getting the milliseconds of a file's stat information

2011-12-01 Thread Robert Jordan
Hi Matthias,

On 01.12.2011 15:01, Mathias Tausig wrote:
 I want to read the creation/modify date information of a file and want
 to use the Mono.Unix.Native.Stat structure for it.
 I create the Stat variable either via UnixFileSystemInfo.ToStat or
 directly with Mono.Unix.Native.Syscall.stat, both methods have the same
 issue.
 My problem is, that the information I get from that, is only precice up
 to the second, but the 'stat' command issued on the linux command line
 shows me a more precise information, for instance:
 Modify: 2011-12-01 14:37:18.586409216 +0100

 Is there any way to acces this infomation from within mono (apart from
 parsing the command line output of stat)?

The nanosecond resolution fields are not exposed by Mono.Posix's
stat (). Maybe because they are non-standard and a PITA to map...

Robert

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] gettting process that have a UI

2011-12-01 Thread Leonel Florin Selles
Hi, I will like to get a list of the process that have a user interface
running on Gnome or Kde.

I use the System.Diagnostic.Process.GetProcess() method but with this I
can not know that, so I try with UnixProcess and that one one have two
methods, do you know an other way.



Algunos suelen hayar su destino en el sendero que toman para evitarlo.

Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero
si dejas que se calme, la respuesta se vuelve clara.

El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio,
por eso se llama presente.



Algunos suelen hayar su destino en el sendero que toman para evitarlo.

Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero
si dejas que se calme, la respuesta se vuelve clara.

El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio,
por eso se llama presente.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list



Algunos suelen hayar su destino en el sendero que toman para evitarlo.

Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero
si dejas que se calme, la respuesta se vuelve clara.

El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio,
por eso se llama presente.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] gettting process that have a UI

2011-12-01 Thread Ian Norton
This isn't going to be easy in a .net/mono portable way, this is very specific
to the windowing system used.

For x11 ( linux ) you can get a list of all the windows on the current display
by running xwininfo -root -children and parsing the output.

You might have some luck using wnck-sharp too but I've not been able to find
any documentation to point you at ( but it is part of gnome-desktop-sharp in
github )

Not sure that will easily get you to a process ID if you need to.#

Ian


On Thu, Dec 01, 2011 at 04:46:13PM +, Leonel Florin Selles wrote:
 Hi, I will like to get a list of the process that have a user interface
 running on Gnome or Kde.
 
 I use the System.Diagnostic.Process.GetProcess() method but with this I
 can not know that, so I try with UnixProcess and that one one have two
 methods, do you know an other way.
 
 
 
 Algunos suelen hayar su destino en el sendero que toman para evitarlo.
 
 Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero
 si dejas que se calme, la respuesta se vuelve clara.
 
 El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio,
 por eso se llama presente.
 
 
 
 Algunos suelen hayar su destino en el sendero que toman para evitarlo.
 
 Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero
 si dejas que se calme, la respuesta se vuelve clara.
 
 El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio,
 por eso se llama presente.
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 
 
 Algunos suelen hayar su destino en el sendero que toman para evitarlo.
 
 Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero
 si dejas que se calme, la respuesta se vuelve clara.
 
 El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio,
 por eso se llama presente.
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Options of the project Mono for Net Framework 2.0

2011-12-01 Thread Stifu
As others told you: Mono now supports .NET 4.0 by default.

Rather than trying to compile your project using .NET 2.0, it seems much
easier to me to upgrade your project to 4.0 instead, no?


tumanovalex wrote
 
 I  use MonoDevelop
 


--
View this message in context: 
http://mono.1490590.n4.nabble.com/Options-of-the-project-Mono-for-Net-Framework-2-0-tp4128665p4129697.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Options of the project Mono for Net Framework 2.0

2011-12-01 Thread Chorn Sokun
I compile monodevelop from source, one thing I notice when create new
project it refer to old version of Mono runtime.
I am new to monodevelop code base so I am not sure where I can change that
setting before I issue `make`  `make install` command.

Any advice are much appreciate.

~~~
Chorn Sokun
+855 12 222718

http://chornsokun.wordpress.com
http://twitter.com/csokun




On Fri, Dec 2, 2011 at 1:00 AM, Stifu st...@free.fr wrote:

 As others told you: Mono now supports .NET 4.0 by default.

 Rather than trying to compile your project using .NET 2.0, it seems much
 easier to me to upgrade your project to 4.0 instead, no?


 tumanovalex wrote
 
  I  use MonoDevelop
 


 --
 View this message in context:
 http://mono.1490590.n4.nabble.com/Options-of-the-project-Mono-for-Net-Framework-2-0-tp4128665p4129697.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list