Re: [Mono-list] C# builder with Mono

2016-04-27 Thread David Curylo
This isn’t something the C# language supports. https://msdn.microsoft.com/en-us/library/0feaad6z.aspx The C# #define does not allow a symbol to be given a value, as in languages such as C++. For example, #define cannot be used to create

Re: [Mono-list] libmono-2-0.a in libmono-dev CentOS package?

2016-02-19 Thread David Curylo
I’m not sure if this is an option for you, but if you control the host for your containers, then supplying mono to your container via data volume works for me to keep the images small: https://docs.docker.com/v1.8/userguide/dockervolumes/#adding-a-data-volume

Re: [Mono-list] Problem with mono and HtttpWebRequest (ssl)

2015-06-16 Thread David Curylo
On Jun 16, 2015, at 9:42 AM, MkProc matthias.r...@mars-engineering.de wrote: The Server is running nginx/1.6.2. According to certmgr, the comodo cert is in the Trust store. If you’re on linux and run `curl https://your-server`, do you get any errors about missing intermediate

Re: [Mono-dev] SIGSEGV from bad generic type (bug 30085)

2015-05-28 Thread David Curylo
is that returning NULL there has a slightly different meaning. So the complete fix is to restructure some of the code. https://github.com/mono/mono/pull/1817 Miguel On Thu, May 28, 2015 at 4:25 PM, David Curylo cury...@asme.org wrote: Found the issue and created PR 1839: https://github.com

Re: [Mono-dev] SIGSEGV from bad generic type (bug 30085)

2015-05-28 Thread David Curylo
Found the issue and created PR 1839: https://github.com/mono/mono/pull/1839 Please take a look and let me know if you have any concerns with the fix. Thanks, Dave On May 28, 2015, at 3:51 PM, David Curylo cury...@asme.org wrote: I’m researching an issue reported by a colleague of mine

Re: [Mono-dev] SIGSEGV from bad generic type (bug 30085)

2015-05-28 Thread David Curylo
is that returning NULL there has a slightly different meaning. So the complete fix is to restructure some of the code. https://github.com/mono/mono/pull/1817 Miguel On Thu, May 28, 2015 at 4:25 PM, David Curylo cury...@asme.org wrote: Found the issue and created PR 1839: https://github.com

[Mono-dev] SIGSEGV from bad generic type (bug 30085)

2015-05-28 Thread David Curylo
I’m researching an issue reported by a colleague of mine. The error is rather serious as the use of a bad type name causes a native SIGSEGV and kills the runtime, when it really should just return a null because it can’t find the type. This code reproduces the issue:

[Mono-list] Using PCL's causes parser errors in Xamarin Studio

2015-05-26 Thread David Curylo
If I start a new project in Xamarin Studio, change the project compiler to Mono/.NET 4.5, add a package reference to Microsoft.TPL.Dataflow (a PCL), and then try to use anything from that reference, I get parser errors like the following: “Parser Error: The type ‘Object’ is required here and

Re: [Mono-list] just installed mono, most basic test failed.

2015-05-13 Thread David Curylo
It’s not like Java where you can blindly expect your code to run across platforms. More like Python or Erlang or numerous other languages and runtimes where most of the code will work across platforms, but some libraries are platform-specific. WCF’s TCP binding isn’t going to work in it’s

Re: [Mono-dev] Regression in XmlSerializer Specified fields since PR 1257

2015-04-01 Thread David Curylo
I created PR 1672 for this. It’s a really minor fix - seems like it was an oversight in the prior PR. Please review and comment. On Apr 1, 2015, at 1:04 AM, David Curylo cury...@asme.org wrote: PR #1257 seems to be causing a new regression for me since upgrading from 3.8.0 to 3.12.1

[Mono-dev] Regression in XmlSerializer Specified fields since PR 1257

2015-03-31 Thread David Curylo
PR #1257 seems to be causing a new regression for me since upgrading from 3.8.0 to 3.12.1 (this PR was merged before 3.10.0). Xml serialization from SOAP responses where {V}Specified values would need to be set are no longer reliably set. The only way to get them to work reliably seems to be

Re: [Mono-list] Mono in the mainstream

2015-03-23 Thread David Curylo
On Mar 23, 2015, at 3:14 PM, Jonathan Shore jonathan.sh...@gmail.com wrote: It should be mentioned that popular Linux distributions (such as ubuntu) have very dated versions of mono available as packages (often default to 2.x) They are kind of old, but not unusable 2.x versions anymore.

Re: [Mono-list] Mono in the mainstream

2015-03-23 Thread David Curylo
It's in a much better state than a few years ago, and even in the last 6 months with the CI and all the official packaging, I think it's easier than ever to get mono running. That said, I think it's really difficult to get service providers to include and advertise their servers with mono

Re: [Mono-dev] ToolStripManager.RevertMerge

2015-02-24 Thread David Curylo
It sounds like a bug if it’s specified to have different behavior. The Windows Forms code isn’t as actively maintained as other parts of mono. It sounds like you have a failing test and know what to fix…all the makings for a PR on Github. I’m not familiar with that particular WinForms code,

[Mono-dev] IndexOutOfRangeException in UriTemplate.Match

2015-01-30 Thread David Curylo
I ran into a small problem with UriTemplate on mono vs. .NET. The code below works on .NET, but raises an IndexOutOfRangeException on mono: var uriTemplate = new System.UriTemplate(/{mystuff}/*, true); uriTemplate.Match(new Uri(http://server;), new Uri(http://server/mystuff/path?blah;)); The

Re: [Mono-dev] Status for PR-1489 - AppSettings File attribute symlink

2015-01-23 Thread David Curylo
to the application’s .config file, which I do so that I can keep userland applications in /usr and configuration in /etc. Any more feedback would be welcome, and if this approach is unacceptable, a suggested alternative would be much appreciated. Thanks, Dave On Jan 21, 2015, at 1:08 AM, David Curylo cury

[Mono-dev] Status for PR-1489 - AppSettings File attribute symlink

2015-01-20 Thread David Curylo
I have a pull request that’s been complete for a few weeks for adding symlink support to the path reference in the AppSettings File attribute. There was a little discussion and seems to be in good shape to merge, but it’s still waiting. Any status on this one?

Re: [Mono-list] Sandbox

2015-01-11 Thread David Curylo
The first thing that comes to mind for this sort of thing on Posix environments is using chroot to isolate the process and then communicate with it via some dedicated IPC channel, although I’m not so sure about how to set chroot up from managed code. On Jan 11, 2015, at 7:54 AM, Ollhax

Re: [Mono-dev] Mono.Posix Cross Compiling

2015-01-06 Thread David Curylo
, at 8:39 AM, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list- boun...@lists.ximian.com] On Behalf Of David Curylo If you edit the .csproj file, you can have a platform-specific reference Mono.Posix like

Re: [Mono-dev] Mono.Posix Cross Compiling

2015-01-06 Thread David Curylo
On Jan 6, 2015, at 2:57 PM, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: Previously, you had a value 'Windows_NT' and now you have a value 'Unix' in there. How do you figure out what values are valid? I presume there's no such thing as setting a breakpoint inside

Re: [Mono-dev] Mono.Posix Cross Compiling

2015-01-06 Thread David Curylo
On Jan 6, 2015, at 11:12 AM, Edward Ned Harvey (mono) edward.harvey.m...@clevertrove.com wrote: The reason it works is because of the #if __MonoCS__ which eliminates any calls to the missing assembly. You’re right…I didn’t realize that was what’s going on. It looks like conditional

Re: [Mono-dev] Mono.Posix Cross Compiling

2015-01-05 Thread David Curylo
Greg, If you edit the .csproj file, you can have a platform-specific reference Mono.Posix like this: Reference Include=Mono.Posix Condition= '$(OS)' != 'Windows_NT' / On Windows with Visual Studio or msbuild, the reference will be ignored. Building under mono with Xamarin Studio,

[Mono-list] Mono compatible code coverage tools

2014-10-27 Thread David Curylo
Does anyone have any recommendations for code test coverage or analysis tools that are mono-compatible? I’ve read this: http://www.mono-project.com/docs/debug+profile/profile/code-coverage/ but I’m looking for something that will provide a little more comprehensive that can run with my CI

Re: [Mono-list] Xamarin Open Source License

2014-06-12 Thread David Curylo
This is a mailing list for the mono community and isn’t the right place to ask questions pertaining to Xamarin’s business and licensing. Probably you should contact them via one of the methods here: http://xamarin.com/faq. On Jun 12, 2014, at 7:40 AM, lytico lyt...@users.sourceforge.net

Re: [Mono-list] recommended http server

2014-05-20 Thread David Curylo
You can use the HttpListener (http://msdn.microsoft.com/en-us/library/vstudio/system.net.httplistener) directly since you really aren’t trying to run any sort of web server. If you need a nice REST HTTP application server, ServiceStack is very nice, but I think you just want a low level

Re: [Mono-list] MONO_CONFIG not working

2014-05-08 Thread David Curylo
The only way I could get this to work was to either create a copy of the .exe file to match the other config or to create a hard link where the name of the link matches the other config, link. For example, if MyExe.exe has MyExe.exe.config then for my alternate config, named

[Mono-dev] Fix for AppSettings file attribute to use relative path

2014-05-02 Thread David Curylo
I was really hoping to get this pull request merged as it’s a thorn in my side on every deployment. I haven’t had any more feedback since a few changes earlier this week. Anyone have any issues? https://github.com/mono/mono/pull/1007 The fix addresses this: Per the 'appSettings'

Re: [Mono-dev] NFS mounts ignored on Linux

2014-04-09 Thread David Curylo
Just checking on this, as I didn’t really get any feedback. Do I need to open a defect to have this pull request merged or is there something else I need to do so the maintainer of io.c notices it? On Apr 9, 2014, at 12:19 AM, David Curylo cury...@asme.org wrote: I came across the behavior

[Mono-dev] NFS mounts ignored on Linux

2014-04-08 Thread David Curylo
I came across the behavior that on Linux, any NFS mounts are ignored when calling System.IO.DriveInfo.GetDrives(). On OS X, the NFS mounts are included, but on Linux, they are ignored, since they don’t start with ‘/‘. To fix, in io.c, I am checking the LinuxMountInfoParseState-fstype to see

Re: [Mono-list] Mono builds for Linux

2014-04-04 Thread David Curylo
On Apr 4, 2014, at 4:55 AM, Andrés G. Aragoneses kno...@gmail.com wrote: This is indicative of the problem that there aren’t any official packages, parallel or otherwise. Why should people have to dig for mono packages? Because if their distro doesn't provide up-to-date versions of mono,

Re: [Mono-list] Mono builds for Linux

2014-04-03 Thread David Curylo
Most distributions are slow at introducing updates to runtimes such as mono, python or java, and as a result, people have to package these runtimes themselves. If there were official builds and repositories available for the opt-mono packages as you’ve done, I expect most would be very happy

Re: [Mono-list] Mono builds for Linux

2014-04-03 Thread David Curylo
Andrés, On Apr 3, 2014, at 11:16 AM, Andrés G. Aragoneses kno...@gmail.com wrote: Do your packages install somewhere below /opt ? If yes, then I will not recommend them because it's not a standard prefix. AFAIU /opt is an ideal prefix for parallel mono installations. These effectively are

Re: [Mono-list] Do good practices and performance tips in .NET apply to Mono too?

2014-03-28 Thread David Curylo
Much of that book still applies, as they are good techniques to optimize your code, regardless of the implementation specifics of the runtime. Not 100%, though. Several things that will be different: * Profiling - you should become familiar with the mono framework profiler. Quick guide is

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread David Curylo
If you pass the —debug option to mono, you should get the full stack trace. http://www.mono-project.com/Debugging On Dec 29, 2013, at 11:16 PM, Andrei Faber andrei.fa...@gmail.com wrote: Why doesn't Mono include full stack trace information into exception?

Re: [Mono-list] Why doesn't Mono include full stack trace information into exception?

2013-12-30 Thread David Curylo
You need to tell mono to create the debugging symbols when building. mcs -debug ConsoleApplication2.cs You should see ConsoleApplication2.exe.mdb in the output directory, and now when you run with the --debug option you should see line numbers in the stack trace. Please keep in mind you are

Re: [Mono-list] Mono builds that works in major linux distros

2013-12-02 Thread David Curylo
In any case, thank you very much for posting these, as they save me from needing to build mono and monodevelop from source to run on Ubuntu and CentOS. On Dec 2, 2013, at 4:13 PM, Timotheus Pokorra timotheus.poko...@solidcharity.com wrote: Hello, This link was posted here in recent weeks by

Re: [Mono-list] To access database

2013-12-02 Thread David Curylo
I would really recommend looking at the ServiceStack OrmLite as an ORM solution that runs well under mono. Except for the cases where you need to write DB-specific SQL (and these will likely come up so just learn to isolate them), you will not need to deal with database specifics in your code:

[Mono-list] MONO_CONFIG not working

2013-10-27 Thread David Curylo
I'm trying to load an application with an alternative config file under mono 3.2.3. It appears from the mono-config man page that you can use the MONO_CONFIG environment variable to specify the path to a config file, but it still doesn't seem to work. Here is how I'm trying to specify my own

[Mono-list] sgen error when using large SOAP proxy

2013-09-26 Thread David Curylo
I have an application that must load a very large SOAP proxy with hundreds of classes. Under boehm GC, I'm able to load the application, but when running under sgen my application crashes immediately with a SIGABRT. I'm able to get a stack trace under sgen to this effect: * Assertion: should

Re: [Mono-list] Deploying Mono

2013-08-13 Thread David Curylo
I create an RPM of the runtime the quick and dirty way, with FPM, and then it is installed into a path of my choosing, basically as a private runtime for my application: http://loosexaml.wordpress.com/2013/07/27/creating-a-mono-3-rpm-on-centos/ You could do basically the same to package up an

Re: [Mono-list] [WCF] Are these parts implemented?

2013-08-13 Thread David Curylo
Mono WCF support is very incomplete. Recommend looking at ServiceStack: http://servicestack.net On Aug 6, 2013, at 4:12 AM, alexzhu imth...@gmail.com wrote: Mono version: 3.3.0 (master/568e0bc) Service: Self-hosted RESTful service I found a few things ain't compatible with .NET, may be

Re: [Mono-list] Unit tests load a different configuration file under mono

2013-08-12 Thread David Curylo
This is the exact same problem, yes. So from your last comment on the pull request: when running inside a unit test, Mono.Web.Util.SettingsMappingManager.Init() doesn't manage to make the _instance not null, because mapper.HasMappings ends up being false (and this doesn't happen when

Re: [Mono-list] Unit tests load a different configuration file under mono

2013-08-12 Thread David Curylo
I've looked quite a bit more into this today. It can be reproduced simply with this (nothing to do with unit tests or shadow copies as you said, just happens when something in System.Web tries to read the configuration): class MainClass { public static void Main

[Mono-list] Unit tests load a different configuration file under mono

2013-08-09 Thread David Curylo
I ran into an issue several months back where my code could not find ConnectionStrings while running my code in NUnit under mono, however, I was having trouble making a simple reproducible test case. Now I have one, and I suspect that it is not an NUnit issue, as the same thing happens under