Re: [Mono-dev] Bugs

2015-07-17 Thread Marek Safar
Hi, > > I've got a bit of a sticky error. I don't have any native code in this > particular application, but what I'm seeing is after some time of running > (this is a server-side app running via upstart on Ubuntu), I get this nasty > error. > > * Assertion at metadata.c:965, condition `idx < t->r

Re: [Mono-dev] XmlSerialization Issues

2015-05-27 Thread Marek Safar
Hi, Can you try if it happens with the latest Mono 4.0 release as well ( > http://www.mono-project.com/docs/getting-started/install/linux/)? > xml-serialization was really only fixed in mono master. You could test earlier versions but it's unlikely the code will work. Marek > > > > ---

Re: [Mono-dev] Is operator behavior with mono version

2015-05-26 Thread Marek Safar
Hi, > > I am facing one problem while using 'is' operator with mono.When i run my > test with mono version(2.10.8) it works fine but when i run with mono > (3.2.8) it caught under infinite loop. > This looks like a regression in some of version between but I can still reproduce it with Mono maste

Re: [Mono-dev] ReferenceSource of System.Text.UnicodeEncoding breaks System.Data.Odbc.OdbcDataReader.GetColumn(int)

2015-05-04 Thread Marek Safar
Hi, > > We use the attached patch for Mono 4.0.1 which changes the > implementation of System.Data.Odbc.OdbcDataReader.GetColumn(int) to make > it work with either implementation of > System.Text.UnicodeEncoding.GetString. > Could you please send a pull request with the change? > > Does it make

Re: [Mono-dev] Strange enum issue

2015-03-12 Thread Marek Safar
Hi Neale, > > ves_icall_System_Enum_GetEnumValuesAndNames.3229: 0. field=System_Runtime > value=0 > ves_icall_System_Enum_GetEnumValuesAndNames.3229: 1. > field=System_Runtime_InteropServices_WindowsRuntime value=16777216 > ves_icall_System_Enum_GetEnumValuesAndNames.3229: 2. > field=System_Object

Re: [Mono-dev] System.Net and SynchronizationContext

2015-03-06 Thread Marek Safar
Hi, > > I have discovered that the Mono implementation of WebClient doesn't behave > as described in this MSDN article: > > https://msdn.microsoft.com/en-us/magazine/gg598924.aspx > > Specifically all Async methods don't capure the current > SynchronizationContext to later run the event handlers o

Re: [Mono-dev] Problems with 3.12.0

2015-02-05 Thread Marek Safar
Hi, > > After a long gap, we have upgraded our unchanged working ASP code from > 3.0.6 to 3.12.0. > > However we get a new exception which we can't understand or find reference > to in Google. Would anybody know what might be wrong? > This kind of error messages mean you are referencing same ass

Re: [Mono-dev] Plans for new types/methods in .NET 4.6

2015-01-23 Thread Marek Safar
Hi, Hey, I'm wondering what the current plan for new types and methods (like > System.Array.Empty) in .NET 4.6 is? > Will Mono stick to the net_4_5 profile or will a new profile be created? > I think you could use same profile but different define as we'll probably not include such changes in our

Re: [Mono-dev] End line/column information in symbol files

2015-01-05 Thread Marek Safar
Hello, I am seeing the starting line and column numbers, just not the ending ones. > You are saying that the compiler is not providing these values? The place > exists where to put these values in the symbol file but they always seem to > be -1. > Correct, it's one of not implemented compiler fea

Re: [Mono-dev] Heads up: Elimination of the 2.0 and 4.0 profiles

2014-10-25 Thread Marek Safar
Hello Sergey, I'll try to reformulate my question. Do I understand correctly that in > new version of mono it will not be possible to compile assembly for > Mono/.NET 3.5 target and use the compiled assembly in Unity 3D (because > of referencing different corlib libraries in Unity (corlib 2.0) and

Re: [Mono-dev] a set of tests to find out the difference between .Net and Mono implementation

2014-09-16 Thread Marek Safar
Hi, > > > i tried it myself, and find out several issues, which are mainly against > Mono 3.10 from development tree. > Thanks for the analysis more comments inline. > 1. GC > thought GC.Collect() does not guarantee all the inaccessible objects are > finalized and reclaimed, .Net implementation

Re: [Mono-dev] [MonoDevelop] Failing to compile on Linux in last few days - %(Culture)

2014-08-28 Thread Marek Safar
Hellom > > (cross posting to Mono Development list because it seems to be a > problem in Mono git master) > This is indeed mono master issue which should be fixed in latest mono master. Thanks for reporting Marek ___ Mono-devel-list mailing list Mono-d

Re: [Mono-dev] Building Roslyn on OS X

2014-08-13 Thread Marek Safar
Hi, > > > You've mostly done it. We have a bug in xbuild which causes this on > second build. Clean all intermediate obj folders and run xbuild again. > > Unfortunately, that didn’t do it for me. I tried a few different cleaning > options, but I’m still getting the same error: > > (*) rm -fr Binar

Re: [Mono-dev] Building Roslyn on OS X

2014-08-12 Thread Marek Safar
Hello, > > I’m relatively new to Mono and attempting to build Roslyn on OS X (10.9), > but haven’t made much progress. I’m hoping I’m missing something obvious. > So here’s what I’ve done: > > (1) Noting that a recent build from master is required, build mono from > source (from https://github.com

Re: [Mono-dev] Hi System.xml.parse error in compiling mono

2014-07-16 Thread Marek Safar
is error. > That's probably it. Try to clean your code and rebuild again. Marek On Wed, Jul 16, 2014 at 8:26 PM, Marek Safar wrote: > >> Hello, >> >>> >>> >>> *I successfully make & install the mono code in ubuntu 12.04* >>> *wh

Re: [Mono-dev] Hi System.xml.parse error in compiling mono

2014-07-16 Thread Marek Safar
Hello, > > > *I successfully make & install the mono code in ubuntu 12.04* > *when i do the same steps in ubuntu 14.04 i get this error* > > Bootstrap compiler: Mono C# compiler version 3.2.8.0 > MCS [build] System.Xml.dll > System.Xml.XPath/Parser.jay(12,0): error CS1525: Unexpected symbol `u

Re: [Mono-dev] Editing mono in IDE?

2014-06-07 Thread Marek Safar
Hello, You would most likely like to create your own solution from existing > sources... > You don't have to. Opening a csproj file you are interested in will generate sln file for you when you open it in VS/XS and will have all dependencies you need. This is for the case you have working master

Re: [Mono-dev] Patch for NetworkInformation on OSX

2014-06-05 Thread Marek Safar
Hi, Please sent suggested change/fix as a git pull request. Thanks Marek > I just ran into a problem regarding the usage of > System.Net.NetworkInformation.NetworkInterface.cs on OSX. Especially the > Properties „SupportsMulticast“ and „OperationalStatus“ were not implemented > properly (always

Re: [Mono-dev] AssemblyFileVersion

2014-05-25 Thread Marek Safar
Hi, When compiling an assembly , the File version info of the file is set by > reading the AssemblyInfo.AssemblyFileVersion attribute. On mono it seems to > be reading the AssemblyVersion attribute. > At first look this looks like mono bug. Please fill a bug report. Thanks Marek > > As a test,

Re: [Mono-dev] mcs warnings

2014-03-24 Thread Marek Safar
Hello, You can report it as a bug. Thanks Marek On Mon, Mar 24, 2014 at 6:20 AM, Greg Young wrote: > Is this worth reporting as a bug or do you think the people working on mcs > already know about it since its happening in the mono sources? :) > > > On Fri, Mar 21, 2014 at

Re: [Mono-dev] mcs warnings

2014-03-21 Thread Marek Safar
Hello, > > > Also should the line number be pointing to the actual line in the source? > In this case it was pointing at a }catch{} (on the first one). I don't see > how index is not being used there > Yes, in this case the warning location is definitely wrong. Regards, Marek ___

Re: [Mono-dev] [GSoC-2014] Optimizing Switch statements

2014-03-20 Thread Marek Safar
Hello, > > I am interested in doing the "C# Compiler switch statement enhancements" > for this years Google Summer of code. > > The last couple of days I have been going through the sourcecode for the > C# compiler and the JIT compiler. The main question I have is where the > focus of this project

Re: [Mono-dev] Anyone taking care of TPL dataflow?

2014-01-01 Thread Marek Safar
Hi, > > > I know Mono is getting its second life due to the brilliant Mobile idea > (Android/iOS). But it seems that the bcl/server stuff needs some love now. > > We bumped into an issue of TPL dataflow library and submitted an issue > here: > https://bugzilla.xamarin.com/show_bug.cgi?id=16940 >

Re: [Mono-dev] A possible implementation for AssemblyName.ReferenceMatchesDefinition

2013-08-28 Thread Marek Safar
Hi, This API is broken by design and it's not clear what it should really do. It'd probably be better to check with EF devs whether they really intended to use it and for what purposes. Even for naive implementation please write unit test and check whether it passes on .net http://stackoverflow.c

Re: [Mono-dev] How to skip building .net 2.0/3.x and build only 4.x?

2013-06-17 Thread Marek Safar
Hi, One one question please: what is the opposite parameter? Neither of > --without-net20 and --with-net20=no I tried worked for me. > The syntax is mostly in the form --with-{profile}=yes,no. For more details use configure --help Marek > > 2013/6/16 Marek Safar > >>

Re: [Mono-dev] How to skip building .net 2.0/3.x and build only 4.x?

2013-06-16 Thread Marek Safar
Hi, How can I configure the build from source to do not build .NET 2.0/3.5 but > say include MonoDroid? > Explore --with-{profile-name} configure options. Marek ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/m

Re: [Mono-dev] UTF8 encoding/decoding

2013-04-30 Thread Marek Safar
be useful :D > You can find general Mono tests page here http://www.mono-project.com/Test_Suite Marek > On Mon, Apr 29, 2013 at 6:48 PM, Marek Safar wrote: > >> Hi Gerardo, >> >> This is very good Mono improvement. Could change your tests to fit mono >> nunit test style

Re: [Mono-dev] UTF8 encoding/decoding

2013-04-29 Thread Marek Safar
Hi Gerardo, This is very good Mono improvement. Could change your tests to fit mono nunit test style. It should not be too hard if you need guidance let me know or look how it's done for other mono parts. Secondly to make the review and merge easier for us could you send pull request with your ch

Re: [Mono-dev] msgpack-cli causes internal compiler error on 3.x?

2013-02-22 Thread Marek Safar
Hi, I cannot but I only tried xbuild MsgPack.mono.sln which does not cause internal error but does not compile successfully either. If you can fill a bug report with steps you are doing I can try to build it again. Marek On Fri, Feb 22, 2013 at 6:44 PM, Brandon Perry wrote: > Hi, can anyone re

Re: [Mono-dev] Entity Framework - new issues

2013-02-12 Thread Marek Safar
Hi, Could you fill a bug report for the issue. Thanks Marek On Sat, Feb 9, 2013 at 3:30 PM, Олег wrote: > Many thanks to Atsushi Eno for a solution for previous defect in > System.Xml. > > But there are new issues with EF. I tried to create simplest console > application (file Test.zip attach

Re: [Mono-dev] Distinction between generic type and instance type

2013-02-06 Thread Marek Safar
nding to it is only of relevance to the > compiler, or does it have real implications for an application-level > developer? (This relates to the comment Marek Safar made in the previous > thread, namely: "Compiled generic types always exist at least as open > (generic) types, usually Ty

Re: [Mono-dev] Question about LiftedBinaryOperator in mcs source

2013-01-31 Thread Marek Safar
Hi, I'm working on project that uses Mono as its C# parser. It uses the AST > that comes from calling "Resolve". > > I'm having trouble understanding what happens to LiftedBinaryOperator. > > In particular, this code seems strange: > > if (left_orig is NullLiteral) { >

Re: [Mono-dev] Mono.CSharp.Evaluator: x.GetType Bug?

2013-01-31 Thread Marek Safar
Hi, This is regarding Mono 3.0.3: Mono.CSharp.Evaluator > > When I instantiate an Evaluator and then then evaluate following input: > > var context = new CompilerContext(new CompilerSettings(), new > ConsoleReportPrinter()); > var evaluator = new Evaluator(context); > evaluator.Describ

Re: [Mono-dev] Microsoft.Build: The parameter 'FrameworkVersion45Path' was not found for the 'GetFrameworkPath' task

2013-01-31 Thread Marek Safar
Hi, This is most likely Mono bug in how we load Task libraries. It'll load the version from folder where Microsoft.Common.targets is which is incorrect in your case because it's 4.0 version and not 4.5. Some kind of self contained sample how F# is using Microsoft.Build* would be useful. Marek I'

Re: [Mono-dev] ObservableCollection.Reentrant not marked Serializable. Why?

2013-01-31 Thread Marek Safar
Hi, The class ObservableCollection.Reentrant is not marked as Serializable which > causes ObservableCollection to fail binary serialization. Is there any > reason it cannot be made serializable? > > This should be fixed in Mono master. Thanks for the report. Marek > > > -- > View this message i

Re: [Mono-dev] Handling of generics by Mono compiler

2013-01-16 Thread Marek Safar
Hi Stuart, Please do you know if there is a one-to-one correspondence between > InflatedTypeSpec in the Mono code and C# constructed types? Or is > InflatedTypeSpec used for both generic and constructed types? > They are pretty closely matched. Compiled generic types always exist at least as open

Re: [Mono-dev] Beginner's bugs

2013-01-09 Thread Marek Safar
Hi, You can browse all bugs here https://bugzilla.xamarin.com/describecomponents.cgi split by category. We don't have beginners tag or anything similar but you can work on any bugs you think matches your experience. Marek On Thu, Jan 10, 2013 at 5:17 AM, OS wrote: > Is there a way where I cou

Re: [Mono-dev] Upcoming pull request; Generating csproj files and compiling Mono in Visual Studio

2013-01-04 Thread Marek Safar
Hi J-M, > I finally followed up on some upgrades to the build process generating the > visual studio csproj and solution files. For reference prior discussions > are at > http://lists.ximian.com/pipermail/mono-devel-list/2012-May/thread.html#38852 > . > > I have a fork at https://github.com/jmp75

Re: [Mono-dev] DLR with Mono.CSharp.Evaluator: The predefined type Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported

2012-11-23 Thread Marek Safar
Hello, I'm currently implementing REPL functionality in my app that embeds mono > runtime (3.0.1), and I've encountered some issues when evaluating code that > contains dynamic invocation. > > For example, consider this simple dynamic class: > > public class Foo : DynamicObject { > public override

Re: [Mono-dev] Equivalent of csc /link for mcs (COM interop)?

2012-11-13 Thread Marek Safar
Hi Peter, In investigating the ability to drop in mcs as a replacement for csc > (currently trying out mono 2.11.4), I've run into issues in compiling > things from some Microsoft C# 4.0 code samples that involve COM > interop. Here's a simplified example: > COM has never been high on our priori

Re: [Mono-dev] patch to make mcs "bundlable"

2012-10-30 Thread Marek Safar
Hi, Patch applied. Thanks Marek I'm trying to bundle an application that uses the mcs, that's why I need to > bundle mcs as well. > When I tried I've get the following exception: > > [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: > Cannot be negative. > at System.String

Re: [Mono-dev] EF fails with NotImplementedException

2012-10-23 Thread Marek Safar
Hi, I was trying to run a simple EF app using Mono 3.0 on Mac OS X but I got > this error: > > Please fill a bug report. Our System.Data implementation which EF relies on is not complete and there will be issues like yours where underlying code is not implemented or buggy. Thanks Marek > Unhand

Re: [Mono-dev] Namespace System.Data.EntityClient not found mono 2.11.4

2012-10-22 Thread Marek Safar
Hi, I downloaded mono 2.11.4, i have EF code made with VS and .net 4.0, when i > build the project in Linux the result is, the type or namespace names: > System.Data.EntityClient > System.Data.Metadata.Edm > System.Data.Objects.DataClasses > System.Data.Objects > does not exist in the namespace Sy

Re: [Mono-dev] System.TypeLoadExceptions in mono 2.11.4

2012-10-10 Thread Marek Safar
Hi, I am just guessing here but this looks like you are running newly compiled compiler using 2.0 mono (old version?). You are better to check http://www.mono-project.com/Logging_Runtime_Events which should help you find out what is really getting loaded. Marek On Tue, Oct 9, 2012 at 7:00 PM,

Re: [Mono-dev] build problem on head

2012-09-06 Thread Marek Safar
Hello, I was building with the latest LLVM and mono on ubuntu. Got the following > error: > > make[8]: Entering directory > `/home/jshore/Srcs/mono/mcs/class/System.Web.Http.SelfHost' > make[8]: *** No rule to make target > `../../../external/aspnetwebstack/src/System.Web.Http.Selfhost/HttpReque

Re: [Mono-dev] Bug fix for mcs (typo in error message)

2012-08-04 Thread Marek Safar
Hi, There's an error message that says "in not public" when it meant to say "is > not public". > The enclosed patch takes care of it. > Patch applied. Thanks Marek ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.co

Re: [Mono-dev] Stack overflow in Array.Sort for large arrays

2012-08-04 Thread Marek Safar
Hi, I cannot reproduce the issue. Could you fill a bug report with test case how to reproduce it. Thanks Marek On Thu, Aug 2, 2012 at 7:21 PM, Martin Potter wrote: > I am currently working on testing Mono to 2.11 with the hope to ease the > transition to 2.12 when it is release. When testing, I

Re: [Mono-dev] workflow foundation 4

2012-08-02 Thread Marek Safar
Hi, I'm ceo of Natan, software development company in France. We are > interesting in contributing. > > What is the first step we need to take to get started ? > This is good starting point. http://www.mono-project.com/Contributing I don't think anyone is working on WWF4, so you are free to imp

Re: [Mono-dev] Few questions about Linq implementation

2012-07-31 Thread Marek Safar
Hi, > > I have few question regarding linq implementation in mono. > > 1. Afaik current is based on dblinq > (http://code.google.com/p/dblinq2007), which not much active from some > time, so did mono team created a fork of it or using same code? > Mono is using same code as dblinq2007. > 2. Some

Re: [Mono-dev] Mono and Microsoft open sourced Entity Framework

2012-07-24 Thread Marek Safar
Hi, Yes, we are working on EF integration. Marek On Tue, Jul 24, 2012 at 9:09 PM, Daniel Morgan wrote: > Since Microsoft has open sourced the Entity Framework, is anyone working > on getting it to work on Mono? > > ___ > Mono-devel-list mailing list >

Re: [Mono-dev] Initialization of array of enum - trying to not use RuntimeInternals.InitializeArray

2012-07-23 Thread Marek Safar
Hello John, There is a known bug in the Microsoft CLR on the x86_64 platform with regards to initializing an array whose members are enum values (http://connect.microsoft.com/VisualStudio/feedback/details/635365/runtimehelpers-initializearray-fails-on-64b-framework). It appears that the Microso

Re: [Mono-dev] Fail to run aspx web application on mod_mono-2.10 ( .Net 4 framework )

2012-07-18 Thread Marek Safar
Hi, I update the configuration to : MonoPath default "/opt/mono/lib/mono/4.5" but it throw new error : System.NullReferenceException: Object reference not set to an instance of an object Server stack trace: at Mono.WebServer.BaseApplicationHost.EndOfRequest (Mono.WebServer.MonoWorkerRequ

Re: [Mono-dev] Fail to run aspx web application on mod_mono-2.10 ( .Net 4 framework )

2012-07-17 Thread Marek Safar
Hi, > i tried to debug more deeper, got an error : > > "`0169' is not a valid warning number" > > Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' > from assembly 'System.Core'. > at Mono.CSharp.CompilerSettings.SetIgnoreWarning (Int32 code) [0x0] > in :0 > at Mono.

Re: [Mono-dev] Compiling Mono with Visual Studio and .pdb files

2012-05-29 Thread Marek Safar
Hi J-M, I have ironed out most issues I had to get to compiling a large part of the assemblies in VS/msbuild from scratch. What was the scope of the cleanup you are undertaking? I'd like to put in a pull request, but would like to have an idea of the scope of your change to minimise duplicat

Re: [Mono-dev] Compiling Mono with Visual Studio and .pdb files

2012-05-19 Thread Marek Safar
Hi, > ** > > Thanks Miguel, your description helped me figure out a couple of key > things. I’m gradually getting on top of the mcs/class build process and > its translation to VS solutions/projects. There was already a lot of prior > work done by Sebastien Pouliot (I think) a few years ago. >

Re: [Mono-dev] Compiler Error CS1902 in mono/master

2012-05-10 Thread Marek Safar
Hi, You are hitting MonoDevelop bug where it's calling C# compiler with wrong arguments. In this particular case it's -debug:+ which is not valid. I am not sure there has been fix for it in 2.8 version but the latest release should work Marek I am testing current mono/master in Ubuntu Prec

Re: [Mono-dev] InternalsVisibleTo + PublicKey not working on mono..

2012-05-02 Thread Marek Safar
Hi, There is no known bug related to InternalsVisibleTo. The most common case of such error is wrong output file name for assembly using the internal members. Marek I've encountered an issue with mono which is essentially a duplicate of this question in SO.. http://stackoverflow.com/question

Re: [Mono-dev] build error (No rule to make target `../../../external/cecil/Mono.Collections.Generic/Collection.cs')

2012-05-01 Thread Marek Safar
Hi, Try to reconfigure your mono. Marek These days (after 2012/Apr/28) master HEAD of Mono cannot build at my FreeBSD box. Following is error message. gmake[7]: Entering directory `/export/home/ksmakoto/Mono/mono/mcs/class/Mono.Cecil' gmake[7]: Leaving directory `/export/home/ksmakoto/Mono/m

Re: [Mono-dev] Compiling mono? I give up [not proceeding] - if anything obvious i'm doing wrong let me know

2012-05-01 Thread Marek Safar
Hello, Here's the problem copied/pasted directly from command line of both > programs: > mono: symbol lookup error: > /home/robwilkens/mono/lib/libglibsharpglue-2.so: undefined symbol: > g_thread_supported > This is gtk-sharp issue when running on glib >= 2.31. Plenty of info here, https://bugs.

Re: [Mono-dev] high-freq use of compiler as a service or reflection.emit

2012-02-15 Thread Marek Safar
Hello, I have an application where rules are generated (as part of a genetic algorithm). Rather than evaluate the rules in interpreted form (which are 5x or more slower than the equivalent compiled code), thinking to use reflection.emit or the mono compiler as a service. Compiler as a service

Re: [Mono-dev] Build fails: name `AllowReversePInvokeCallsAttribute' does not exist

2012-01-31 Thread Marek Safar
Hello, Just follow what the error message says You need Mono version 2.4 or better installed to build MCS Marek I'm trying to build mono from git sources ./autogen.sh --prefix=/usr/local && make && sudo make install , but unfortunately it fails like this: make[6]: Entering directory `/home

Re: [Mono-dev] DateTime.ParseExact bug ?

2011-09-22 Thread Marek Safar
Hi, Please fill a bug report at http://bugzilla.xamarin.com/ Thanks Marek Nodbody? Anywho, since it's an incompability with .net I guess that I should file a bug somewhere? Best regards, Nicklas On 2011-09-19 00:04, Nicklas Overgaard wrote: Yes, i'm very sure - it's copy-paste from the so

Re: [Mono-dev] Need PutVar method on Mono.CSharp.Evaluator

2011-08-15 Thread Marek Safar
Hello, > Hi, I am new to Mono, but becoming a big fan quickly (more detail > below regarding what I am doing with it). To get right to the point, > however, I would appreciate advice on how to *programmatically* set > the value of a variable that can be seen inside the Evaluator, e.g., > > v

Re: [Mono-dev] Compiler crashes

2011-07-26 Thread Marek Safar
Hi, Could you please fill C# compiler bug report Thanks Marek > $ mono --version > Mono JIT compiler version 2.10.2 (tarball Thu June 30 20:35:21 UTC 2011) > Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com > TLS: __thread > SIGSEGV: al

Re: [Mono-dev] Support for Portable Class Libraries (PCL)

2011-07-03 Thread Marek Safar
Hi, Would you mind sending a link to the relevant issue on bugzilla so I can track it? https://bugzilla.novell.com/show_bug.cgi?id=608069 Marek On Sat, Jul 2, 2011 at 1:32 AM, Marek Safar <mailto:marek.sa...@gmail.com>> wrote: Hello, Microsoft has recently introduce

Re: [Mono-dev] Support for Portable Class Libraries (PCL)

2011-07-02 Thread Marek Safar
Hello, Microsoft has recently introduced support for Portable Class Libraries, allowing the same DLL to be reused for both .Net 4 and Silverlight 4 without recompiling the source. There are restrictions on which APIs are available, and some minor API changes from their non-portable equivalent

Re: [Mono-dev] monodis implemented with Cecil

2011-04-06 Thread Marek Safar
Hello, >> I have named it ildasm to match the managed ilasm. The new name also means >> that it can live alongside monodis for the time being. > Monodis has a major drawback, its dependency on picking up the right > mscorlib.dll to work, your effort will fix that problem and get rid of > one of th

Re: [Mono-dev] Possible QuickSort optimizations for Array.Sort()

2011-04-06 Thread Marek Safar
Hello, >>> public class Sort { public delegate int Comparison (T v0, T v1); You don't need yet another delegate, just use standard Func static readonly int INSERTIONSORT_THRESHOLD = 7; Why not to used const int ? More importantly what is performan

Re: [Mono-dev] Using the generic type `System.Func' requires `10' type argument(s)

2011-04-02 Thread Marek Safar
Hello, Please fill a bug report and provide full xbuild output. Thanks Marek I have a console app which builds and runs under Windows fine. But when I'm trying to build it under Mono, I'm getting next errors: godfather@debian: $ xbuild MyProject.sln Indicator/ADXReader.cs(71,42): error CS03

Re: [Mono-dev] Unable to build neither Mono 2.10.1 nor 2.10

2011-03-12 Thread Marek Safar
Hello, You cannot use parallel build (usually make -j) with Mono 2.10 Marek Hi, I'm trying to build Mono both 2.10.1 and 2.10 from source archive downloaded from http://ftp.novell.com/pub/mono/sources/mono/ OS Debian 6 $ uname -a Linux debian 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC 2

Re: [Mono-dev] Covariance, contravariance and name hiding

2011-02-22 Thread Marek Safar
Hello, Could you please fill a bug report Thanks Marek > Hi! > I have the following code: > ===begin source code=== > interface InterfaceWithCovariance > where TException: Exception > { > TException Error { get; } > } > interface InterfaceWithContravariance: > InterfaceWithCovariance > wher

Re: [Mono-dev] csproj files for Mono's class libraries.

2011-02-14 Thread Marek Safar
Hello, >> You can have the csproj reference the .sources file externally, and use a >> small Task to transform the list of files into Compile elements. This works >> in VS for building, but does not show the sources as files in the csproj via >> the UI. So, depending what you want... Something like

Re: [Mono-dev] csproj files for Mono's class libraries.

2011-02-14 Thread Marek Safar
Hello, >> The newer system should be as convenient as dll.sources model. Without as >> easy step as to add just one line for new Foo.cs in Bar.dll.sources (or more >> importantly for contribution, FooTest.cs in Bar_test.dll.sources), I'm not >> likely enthusiastic to contribute new code. > If all y

Re: [Mono-dev] csproj files for Mono's class libraries.

2011-02-14 Thread Marek Safar
Hello, > project will require NUnit addin (am not sure if it exists for 2010) and > thus excludes Express users. You don't need nunit addin, you can use any internal or external tool which can run nunit including nunit-console. The trouble is to build with correct nunit framework version to be ab

Re: [Mono-dev] Recent C# compiler changes

2011-02-07 Thread Marek Safar
Hello, > I'm having trouble building today's tarball (20110204). 'mod' fails to build: > >make[8]: Entering directory `/xxx/home/baileyj/mono-20110204/mcs/tools/mod' >MCS [net_4_0] mod.exe >error CS0006: Metadata file `./../../class/lib/net_2_0/monodoc.dll' > could not be found >

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello, > I think both ways should be supported. > > If it starts with a number and is a valid constant, use it. (easier > for people building interactively in the command line), but for any > other pattern try to just concat as suggested (easier for makefiles > and to support custom frameworks) Yes

Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello, >> install mono including .net 4.0 support to be able to compile any C# >> program. > What's the lowest Mono version that can be used to bootstrap > the current git version? I have not really tested it but Mono 2.4 or newer should work. Marek ___

[Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello, In the recent weeks I have made several changes to how Mono C# compiler is build and works. With the current master version we no longer use and build System.Reflection based C# compilers (gmcs.exe, smcs.exe, dmcs.exe). The new C# compiler (called mcs.exe) is based on IKVM.Reflection wh

Re: [Mono-dev] build failure on processing NpgsqlState.resx

2011-02-02 Thread Marek Safar
Hello, > The latest Windows build is broken at Npgsql in net_2_0 profile. > Looks like the build change that switched to use "mcs/class/lib/build" > did it. That should be fixed now. Marek ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] Can't build current mono master branch

2011-01-18 Thread Marek Safar
Hello, > Hi folks, I can't build current mono from github master branch on my > linux machine (Ubuntu 11.04, parallel mono environment): Update to the latest master, the issue should have been fixed there. Marek ___ Mono-devel-list mailing list Mono-deve

Re: [Mono-dev] Too many open files when adding many embedded resources

2010-12-15 Thread Marek Safar
Hello, > Building Mono 2.9 from git master, we're encountering an issue where > an assembly with lots of embedded resources (approx 4000), where gmcs > is throwing "Too many open files exception". > > The culprit seems to be that a new file handle is opened for every > embedded resource when it'

Re: [Mono-dev] CS0584 Internal compiler error in gmcs.exe (master)

2010-12-15 Thread Marek Safar
Hello, > In membercache.cs.AddBaseType () line 219, if entry.Value.Count == 1, > entry.Value is a MemberSpec[] which will cause the list.Add(ce) on > Line 234 to fail. > > Gmcs.exe fails with "CS0584: Internal compiler error: Collection is > read-only" (in ecore.cs:433) when this case is encount

Re: [Mono-dev] [PATCH] Add async to dmcs

2010-11-22 Thread Marek Safar
Hello, > As a starting point, I've added the "async" method modifier to dmcs, > which will be recognized when "-langversion:Future" is passed. This is > my first foray into the mcs codebase and I just want to make sure I'm > on the right track before going much further. > > The patch is attached

Re: [Mono-dev] C# source-to-source compiler

2010-11-16 Thread Marek Safar
Hello, I just noticed this thread, and I'm curious, when you say: The async/await is about asynchrony and spawn/sync is about parallelism. These are 2 different things which should not be mixed together. Do you mean they should not be confused, or do you literally mean that these

Re: [Mono-dev] Generic Constraints Regression in 2.8

2010-11-15 Thread Marek Safar
Hello, Could you please fill a bug report. Thanks Marek Except that Y is constrained to be of type Z and so is guaranteed to be a reference type. On Mon, Nov 15, 2010 at 12:30 AM, Bojan Rajkovic mailto:severedcr...@gmail.com>> wrote: On Nov 14, 2010, at 10:16 PM, Tom Philpot wrote:

Re: [Mono-dev] C# source-to-source compiler

2010-11-05 Thread Marek Safar
Hello, > Thanks! Raphael said exactly the same thing to me. Now I have two > questions: > > - How much does the async stuff in C# 5.0 resemble the Cilk spawn-sync > model? And how much async stuff is implemented in the mono trunk? The async/await is about asynchrony and spawn/sync is about par

Re: [Mono-dev] async / await / Task

2010-11-01 Thread Marek Safar
Hello, > Do you know about this stuff? This should be available with C# 5, but > I understand that this has nothing new on the CLR. Do you have any > plan? We are very aware of this feature. However, we usually start working on new features when at least Beta1 is released as there are generally ma

Re: [Mono-dev] Bug in mono or our code?

2010-10-21 Thread Marek Safar
Hello, Could you please fill a bug report with all details how to reproduce the issue and actual error message? Thanks Marek > When compiling our code > (http://github.com/davidiw/brunet/blob/master/src/Brunet/Concurrent/ExclusiveServer.cs) > using 2.8 and git master head, I receive a very long

Re: [Mono-dev] Does anyone know why the c# type "dynamic" does not work in mono c# REPL 2.8?

2010-09-13 Thread Marek Safar
Hello, > Does anyone know why the c# type "dynamic" does not work in mono c# REPL 2.8? > > Enter statements below. > csharp> dynamic x = 4; > {interactive}(1,10): error CS8088: Your .NET Runtime does not support > ``void' or > `void*' field type'. Please use the latest Mono runtime instead. >

Re: [Mono-dev] Generic Variance Bug

2010-09-10 Thread Marek Safar
Hello, > using mono from trunk, the following code compiles fine: > > ==> buggy.cs<== > namespace Buggy > { > public interface ITest > { > } > > public interface ITestSpecialized : ITest > { > } > > public interface IGeneric where TTest : ITest > { >

Re: [Mono-dev] Confusion between float and System.Single (pt 2)

2010-08-26 Thread Marek Safar
Hello Charles, > Sorry, I mistakenly pressed Ctrl-S before I was finished > > Gmcs from the version of mono I git cloned yesterday (25th August) has > produced an error where there was no error using mono 2.6.7 > You have found a bug which I just fixed, please update to the newest git version.

Re: [Mono-dev] base call hoisting (error) and MonoDevelop w/Moonlight

2010-07-09 Thread Marek Safar
Hello, > I ran into this last weekend. It's a regression in the compiler. I > was going to send a patch in Monday, but somebody on the mono team > already did. I believe it's on monobin. They posted it on IRC, but I > guess nobody has applied it yet. > It's not really regression, gmcs

Re: [Mono-dev] Porting mcs to IKVM.Reflection

2010-06-24 Thread Marek Safar
Hi Kornél > Can you please tell when are MakeExpression methods used and whether > are they required for code generation by mcs? The problem is that SLE > MakeExpression methods require System.Reflection types. I was unable > to find out when are MakeExpression methods used so I cannot come up

Re: [Mono-dev] Porting mcs to IKVM.Reflection

2010-06-24 Thread Marek Safar
lude the >> attributes as regular attributes) to be compatible with .NET >> - Why are all the stack height asserts commented out in ILGenerator, >> do you think they are wrong? >> >> Thanks, >> Jeroen >> >>> -Original Message- >>> Fro

Re: [Mono-dev] Getting rid of SRE CompilerContext

2010-06-24 Thread Marek Safar
Hi, > [1]Actually not all compiler context hacks can go away, but only those > strictly required to compile corlib will remain. gmcs no longer sets the flag so from gmcs perspective all CC hacks can go. Marek ___ Mono-devel-list mailing list Mono-devel

Re: [Mono-dev] Porting mcs to IKVM.Reflection

2010-06-24 Thread Marek Safar
Hi, > > I'm trying to keep differences minimal, and I have no intention to > drop System.Reflection support: > > #if IKVM_REF_EMIT > using IKVM.Reflection; > using IKVM.Reflection.Emit; > using Type = IKVM.Reflection.Type; > #else > using System.Reflection; > using System.Reflection.Emit; > #endif

Re: [Mono-dev] Patch to corlib that causes compile to segfault

2010-06-22 Thread Marek Safar
Hi Chris, > > Attached is the patch that causes compiling corlib to segfault on the > default profile. It does not segfault with PROFILE=net_4_0 > The code is not final, and is a bit of a mess. I have applied the patch with few cleanups. Thanks Marek

Re: [Mono-dev] Patch 2/2 - Tests for System.Diagnostics.Contracts in corlib

2010-06-18 Thread Marek Safar
Hello Chris, Only a few small issues +#define CONTRACTS_FULL +#define DEBUG + Undefined these at the end of each file. They perhaps should be inside #if NET_4_0 too. +// Required when compiling/running under .NET3.5 +delegate void Action (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5

Re: [Mono-dev] Patch 1/2 - System.Diagnostics.Contracts in corlib

2010-06-18 Thread Marek Safar
stop the shutdown). Good work, you can commit the patch after the minor fixes. Thanks Marek > > Kind regards > Chris > > Marek Safar wrote: >> Hello, >> >> Few comments from me >> >> - All code is #if NET_4_0 there is no need for further nested #

Re: [Mono-dev] Patch 1/2 - System.Diagnostics.Contracts in corlib

2010-06-17 Thread Marek Safar
ilto:mono-devel-list- >>> boun...@lists.ximian.com] Im Auftrag von Chris Bacon >>> Gesendet: Mittwoch, 16. Juni 2010 12:03 >>> An: Marek Safar >>> Cc: mono-devel-list@lists.ximian.com >>> Betreff: Re: [Mono-dev] Patch 1/2 - System.Diagnostics.Contracts in &

  1   2   3   4   >