Re: [Mono-list] AOT viable option for deployment

2011-10-21 Thread Jonathan Pryor
On Oct 21, 2011, at 1:09 AM, Trimble, Nathan G wrote: I would like to know how viable an option AOT (full) is for deploying a command line program (or possibly a service) on Linux. I’m re-writing an in-house app and need to determine the best platform. I’ve some existing C# and Python

Re: [Mono-list] generating html docs

2011-10-19 Thread Jonathan Pryor
On Oct 11, 2011, at 4:40 PM, Ian Norton wrote: I'd like, given all of the above to be able to generate html docs for all of the assemblies, rather like the mono-docs website. The mono-docs website doesn't use `mdoc export-html`, it uses the ASP.NET front-end:

Re: [Mono-list] generating html docs

2011-10-19 Thread Jonathan Pryor
On Oct 19, 2011, at 12:48 PM, Ian Norton wrote: This is all very cool except it seems that webdoc will only let me serve docs installed in my mono prefix rather than an arbitrary folder, this means I've had to give my script that generates nightly docs has to have an entry in sudoers. Not

Re: [Mono-list] Support libMonoPosixHelper

2011-09-23 Thread Jonathan Pryor
On Sep 22, 2011, at 11:18 PM, R U Local wrote: I’m having problems persuading the support files libMonoPosixHelper and libMonoSupportW to be built during the cross-compile phase. Look at $(topdir)/Makefile.am, the $(SUBDIRS) variable. If CROSS_COMPILING is set, then the `support` directory

Re: [Mono-list] Package Importieren

2011-09-09 Thread Jonathan Pryor
On Sep 8, 2011, at 3:58 AM, Kuehner wrote: So, to the very beginning question: How can I implement a *.java-File into a Mono .NET Projekt for Android? You can add it to the project, and set its build action to AndroidJavaSource. (This can also be done with .jar files.) This will cause the

Re: [Mono-list] Monitor: Pluse() and Wait() - alternative ?

2011-08-09 Thread Jonathan Pryor
On Aug 9, 2011, at 9:34 AM, mwessendorf wrote: However I need to ensure this runs on the PCL (Portable Class Library) and therefore the above implementation does not work, since Pluse() / Wait() aren't supported in PCL Where can I find a listing of the types and members in the PCL? I

Re: [Mono-list] using namespace in C++ projects

2011-07-28 Thread Jonathan Pryor
On Jul 26, 2011, at 5:29 PM, hessam wrote: I just want to add I'm having the same C# and C++ projects in .Net under windows and using namepace works without any problem in C++ project. And also my C++ code will be on the same namespace as C# codes and the main reason is I want to call the

Re: [Mono-list] Encoding Issue .Net vs. Mono

2011-07-21 Thread Jonathan Pryor
On Jul 21, 2011, at 2:47 PM, Pablo Ruiz wrote: Mono uses UTF8 as default encoding. .Net uses UTF16 Note quite. Encoding.Default is ANSI, which is…~anything on .NET (latin1, Shift-JIS, Big-5, whatever), but _not_ Unicode or UTF-8. On Mono, Encoding.Default is always UTF-8.

Re: [Mono-dev] Mixed Mode Assemblies

2011-07-07 Thread Jonathan Pryor
On Jul 7, 2011, at 11:55 AM, arkain wrote: I understand the reasons why the developers chose to leave out support for developing mixed-mode assemblies using mono: the lack of cross-platform compatibility in such assemblies. However, I would argue that such things are not a consideration for

Re: [Mono-list] Render PDF to Image on PC, OSX and iOS?

2011-06-19 Thread Jonathan Pryor
[DllImport] isn't restricted to .dll files; it can use any shared library, e.g. .so files on Linux and .dylib files on OSX. HOWEVER, this doesn't help much on iOS as iOS doesn't allow you to distribute .dylib files with your app; everything must be statically linked. As a Mono extension, you

Re: [Mono-list] C to Mono interop passing a byte array

2011-05-20 Thread Jonathan Pryor
On May 20, 2011, at 5:00 AM, Mike D wrote: I am trying to pass a byte array (image data) from C/Obj-C to managed using mono_runtime_invoke. I can get a hold of the MonoMethod which has a byte[] as a parameter and I can call the method but when I try to use the byte[] in any way on the C# end

Re: [Mono-dev] Platform independence of mono assemblies

2011-05-19 Thread Jonathan Pryor
The perfect is the enemy of the good - Voltaire On May 18, 2011, at 5:53 PM, Christian Krause wrote: In Fedora, the assemblies are treated as architecture-dependent and so they (including the GAC) are put into %{_libdir} which is /usr/lib64 on x86_64 systems. However, it seems to be

Re: [Mono-list] Opening a form on a new thread, called from C API

2011-05-03 Thread Jonathan Pryor
On May 3, 2011, at 2:59 PM, valdiorn wrote: I confirmed that it's the act of opening a form on the new thread that is causing the trouble. In System.Windows.Forms (and WPF, and SL, and iOS, and Android, and Java Swing, and Qt, and...), UI objects are tied to the thread running the message

Re: [Mono-list] How to distribute Mono application

2011-04-22 Thread Jonathan Pryor
On Apr 16, 2011, at 4:38 AM, zealkaiser wrote: Similarly, If we distribute the application developed with mono, does the user need to have .Net framework or he/she should have same mono framework. Maybe. :-) See below. Is there any redistribution package for mono including just the run-time

Re: [Mono-dev] how to fix TextWriterTraceListener disposal problem

2011-04-14 Thread Jonathan Pryor
On Apr 13, 2011, at 4:06 AM, Atsushi Eno wrote: Do you have any ideas how to solve this problem? Is it actually a problem? :-) The reason I ask is that I vaguely recall testing the same behavior under .NET at the time (circa 2002?), and .NET behaved the same way -- the stream was not flushed.

Re: [Mono-dev] Faster

2011-03-24 Thread Jonathan Pryor
On Mar 24, 2011, at 12:00 PM, Miguel de Icaza wrote: Plenty of our class library code has code like this: void Foo (Something x) { if (x == null) throw new ArgumentNullException (x); x.DoSomething (); x.AndThenMore (); } ... But what if we changed our code in Foo across

Re: [Mono-list] Using Windows DLL in Linux

2011-03-19 Thread Jonathan Pryor
On Mar 18, 2011, at 8:10 PM, Francisco M. Marzoa Alonso wrote: One customer has sent me a request to create an application that must work on an Ubuntu host and handle certain device. As Tim H suggested, the _real_ question is this: what kind of file is device-sdk-1.0.dll? Specifically, is it

Re: [Mono-dev] AppActivate and System.Windows.Forms.SendKeys on Ubuntu 10.10

2011-03-16 Thread Jonathan Pryor
On Mar 16, 2011, at 4:07 PM, Quandary wrote: What, only SendKeys to WinForms, are you serious ? That doesn't make much sense. It makes perfect sense. It sends KeyEvents to the Windowing system, which happens to be the WinAPI on Windows, or X11 on Linux for all intents and purposes. GTK has

Re: [Mono-dev] Process.Start and WaitForExit on MacOS X

2011-03-15 Thread Jonathan Pryor
On Mar 15, 2011, at 2:57 PM, Tom Philpot wrote: I've discovered that Process.Start(ProcessStartInfo info) leaves child processes hanging around until the parent process dies, unless you call WaitForExit() on the child process. ... Is this a bug or by design? The problem is the

Re: [Mono-list] compiler errors in XMLDoc

2011-03-15 Thread Jonathan Pryor
On Mar 15, 2011, at 1:03 AM, Steve Lessard wrote: The comment doesn't start with three slashes. Why does the compiler think that's an XMLDoc comment? Because XML Documentation Comments can also start with `/**` (slash-star-star):

Re: [Mono-list] Mono.Posix

2011-02-02 Thread Jonathan Pryor
On Feb 2, 2011, at 5:54 AM, Steve Lessard wrote: ... This tool basically checks a file's permissions to see if the file is executable by any or all of user, group, other. Windows is supposed to have a Posix compliant layer. Does Mono.Posix assembly work on Windows's Posix layer?

Re: [Mono-dev] [PATCH] Incorrect signal handling for Sys V signal handler

2011-01-27 Thread Jonathan Pryor
I can't speak to the rest of the patch, but the mono/support patch can't go in as-is, as mono/support/signal.c is also built for Windows (it's part of MPH_C_SOURCE in mono/support/Makefile.am, which is included in the HOST_WIN32 build). MSVCRT.DLL DOES contain signal(3); it does NOT contain

Re: [Mono-list] dlopen problem on Mono 2.4.4

2011-01-27 Thread Jonathan Pryor
No idea about the SIGSEGV, but your code could use some improvement... On Jan 27, 2011, at 1:43 AM, batuakan wrote: c# source code - using System; using System.ComponentModel; using System.Runtime.InteropServices; namespace swi { class MainClass {

Re: [Mono-dev] [mono-packagers] Mono 2.10 RC1

2011-01-24 Thread Jonathan Pryor
On Jan 23, 2011, at 2:56 PM, Jo Shields wrote: Preliminary notes: * mdoc is still a 2.0 app. Is this intentional? This doesn't need to be per-profile, as it uses Cecil to read IL (and Cecil will read ~any version). By the same logic it could be a 4.0 app; it really doesn't matter. It's

Re: [Mono-list] Computer-readable Mono documentation

2011-01-24 Thread Jonathan Pryor
On Jan 23, 2011, at 2:35 PM, Cauê Waneck wrote: I am finishing a C# target for haXe ( haxe.org ), and I need some way to automate the generation of externs. I'm not entirely sure what this means... If there is a way to get all mono documentation ( it would be best if it contained info of

Re: [Mono-list] [Mono-dev] [mono-packagers] Mono 2.10 RC1

2011-01-24 Thread Jonathan Pryor
On Jan 23, 2011, at 2:56 PM, Jo Shields wrote: Preliminary notes: * mdoc is still a 2.0 app. Is this intentional? This doesn't need to be per-profile, as it uses Cecil to read IL (and Cecil will read ~any version). By the same logic it could be a 4.0 app; it really doesn't matter. It's

Re: [Mono-list] Is there any way to load *.cs code file dynamiclly?

2011-01-24 Thread Jonathan Pryor
On Jan 24, 2011, at 9:35 AM, xoyojank wrote: I want to use C# as a script language, and my host language is C++. How I can directly run C# string with the help of mono? I donnot want to compile the script into dll. You want Mono.CSharp.dll:

Re: [Mono-list] Command line parameters with spaces

2011-01-20 Thread Jonathan Pryor
On Jan 20, 2011, at 3:42 PM, karolo84 wrote: I have tried to figure out the following by myself but so far I wasn't lucky: I have a .NET program that takes a SQL query as command line argument. If I now run that program under Windows, I simply quote the string and everything is fine:

Re: [Mono-dev] File not found error when using Activator.CreateInstanceFrom()

2011-01-19 Thread Jonathan Pryor
On Jan 18, 2011, at 4:52 PM, mike wrote: Hey Jonathan P, I noticed that u wrote the 'Interop with Native Libraries' article on the mono web site. Very good stuff. I have a question, can mono link or inter op to a Linux static library instead of a shared object? (i.e mylib.a) _Maybe_. :-)

Re: [Mono-dev] Dynamic bootstrapping

2011-01-13 Thread Jonathan Pryor
I don't fully understand your scenario, but I _suspect_ that what you want is a hypervisor,[0] which is basically a nano-kernel (of sorts) that other OS kernels run atop as peers to one another. There are several commercial and open-source versions, such as Xen [1], Kernel Based Virtualization

Re: [Mono-list] Operator overloading

2011-01-08 Thread Jonathan Pryor
On Jan 8, 2011, at 12:17 AM, David Henderson wrote: Would have been nice if I could have found some documentation leading me to that solution. Is there a good site or text I should be using? http://msdn.microsoft.com. :-) The relevant starting point in the stack trace is ListT.Sort():

Re: [Mono-dev] File not found error when using Activator.CreateInstanceFrom()

2011-01-07 Thread Jonathan Pryor
On Jan 6, 2011, at 5:13 PM, mike wrote: Thanks for the reply. Not sure what you mean as I'm not doing a LoadLibrary(). Yes, you are: it's implicit to P/Invoke. (OK, so .NET is doing it on your behalf under the covers, but a LoadLibrary() is still occurring.) Since you're on Windows,

Re: [Mono-dev] mono linker - mscorlib.dll

2011-01-07 Thread Jonathan Pryor
On Jan 7, 2011, at 12:36 PM, Guillaume Pouillet wrote: Isn't AppDomain's security useable to sandbox the application ? If Mono had a fully implemented Code Access Security (CAS) mechanism? Yes. Unfortunately, Mono doesn't, so AppDomain sandboxing doesn't work. The only sandboxing/security

Re: [Mono-list] Minimum element of a list

2011-01-07 Thread Jonathan Pryor
On Jan 7, 2011, at 4:40 PM, David Henderson wrote: I have a list and I would like to find the minimum element in the array from the current iterator in a foreach loop to the end, not the minimum element overall. This isn't strictly possible, as there's no way of knowing the index of the

Re: [Mono-list] Operator overloading

2011-01-07 Thread Jonathan Pryor
On Jan 7, 2011, at 8:35 PM, David Henderson wrote: OK. I have been trying to no avail to overload the and operators on a struct I wrote. This is extremely easy in C++, but seems to not work in C#. You have properly overloaded operator and operator; they are not the problem. Here is the

Re: [Mono-dev] Modifying and compiling mono source code

2010-12-25 Thread Jonathan Pryor
On Dec 25, 2010, at 5:40 PM, Tomi bosak.to...@gmail.com wrote: Let's say that I modify mono sources with Visual Studio 2010 on my Windows machine and I want to test it on linux (with parallel mono environments) hosted at VPS. Is it normal to just overwrite old dll on linux machine with a new

Re: [Mono-list] using 'unsafe struct *' instead of IntPtr with PInvoke..

2010-12-23 Thread Jonathan Pryor
On Dec 22, 2010, at 6:35 PM, jeske wrote: Is there anything wrong with this pattern? That depends on how you define wrong. :-) In theory, this is safe (safer, really, as you get more type checking). In practice, it's more iffy for social reasons: unsafe code requires 'csc /unsafe', and some

Re: [Mono-dev] File not found error when using Activator.CreateInstanceFrom()

2010-12-20 Thread Jonathan Pryor
On Dec 19, 2010, at 4:57 PM, mike wrote: For some reason, I thought we chose this CreateInstance() approach over the P/Invoke for performance reasons. If you have concerns about P/Invoke performance, you might consider looking into the System.Security.SuppressUnmanagedCodeSecurityAttribute

Re: [Mono-list] Call C# .dll from java on linux using mono ?

2010-12-20 Thread Jonathan Pryor
On Dec 20, 2010, at 6:38 AM, AngeReveur wrote: I have a C# .dll which I would like to call from a java application on linux ? Is this thing possible using Mono ? Yes, but it isn't easy. You'd basically need to write a JNI library that uses the mono embedding API to invoke managed code. It

Re: [Mono-dev] File not found error when using Activator.CreateInstanceFrom()

2010-12-17 Thread Jonathan Pryor
On Dec 16, 2010, at 3:24 PM, mike wrote: Thanks for the reply. Here is an example attached driver (test.cs) which calls the Activator.CreateInstanceFrom(). Runs fine under NET 2.0 but bombs under mono 2.8 with the 'implement type compare for 1b!' error message. You will need to construct

Re: [Mono-list] Mono's bin directory

2010-12-17 Thread Jonathan Pryor
On Dec 16, 2010, at 8:40 PM, Steve Lessard wrote: Loading the man page for each of these tools wouldn't be very efficient. Why isn't reading the man pages efficient? They're online: http://www.go-mono.com/docs/index.aspx?link=root:/man Of course, if you're on a Unixy platform you can

Re: [Mono-dev] libffi

2010-12-13 Thread Jonathan Pryor
On Dec 13, 2010, at 7:08 PM, Charles Strahan wrote: If I understand correctly, we'd have two options for using DLLImport: I am missing some important context, so I don't understand what you want to accomplish, what the problems are, and thus what the best way to do it is. As per my original

Re: [Mono-list] SqlMetal custom DataContext name

2010-12-07 Thread Jonathan Pryor
On Dec 7, 2010, at 6:00 AM, Daniel Hughes wrote: By default the generated DataContext class name is Main. This causes problems for obvious reasons (really, I couldn't think of a default more likely to conflict) What obvious reasons? Type names don't conflict with method names (unless the

Re: [Mono-list] Using the syslog [Mono.Unix.Native.Syscall] with own identifier

2010-12-01 Thread Jonathan Pryor
On Dec 1, 2010, at 2:37 PM, ma...@manfbraun.de ma...@manfbraun.de wrote: If I use: Syscall.syslog(SyslogFacility.LOG_DAEMON, SyslogLevel.LOG_NOTICE, myMsg); this appears with identifier mono: in the syslog. To make syslog more evaluable, I need to define my own identifier instead. You

Re: [Mono-list] porting from .NET to Mono

2010-11-18 Thread Jonathan Pryor
On Thu, 2010-11-18 at 09:29 -0800, jmalcolm wrote: 1) Windows is not case sensitive but both Linux and Mac are. If you have not been careful, you will need to fix any case mismatches as part of your port. The default Mac OSX filesystem (HFS+) is case-insensitive and case preserving, much like

Re: [Mono-list] porting from .NET to Mono

2010-11-18 Thread Jonathan Pryor
On Thu, 2010-11-18 at 08:06 -0800, Steve Lessard wrote: I would like to get your advice on porting code from .NET to Mono. I have a class library that I wrote for .NET 3.5 on Windows. In addition to working in .NET on Windows I want to get it working in Mono on non-Windows platforms

Re: [Mono-dev] Mono.Options

2010-11-16 Thread Jonathan Pryor
On Tue, 2010-11-16 at 08:44 +, Paul F. Johnson wrote: Is Mono.Options switched off in the 2.8 tarball? I'm not seeing it getting packaged at the end of the build (either with a RPM script or as a direct build) I'm unable to reproduce; specifically, I built and installed the sources from

Re: [Mono-dev] xbuild - ** ERROR **: shm_semaphores_init: semget error: No space left on device.

2010-11-12 Thread Jonathan Pryor
On Fri, 2010-11-12 at 13:11 -0800, Arne Claassen wrote: Right, that's why I'm confused. That release states Users seeking absolute stability should stay on Mono 2.6, but my impression is that all bug fixes are just going into 2.8. Stability generally means minimal changes. The bug fixes

Re: [Mono-dev] Deadlock Detection in Mono Libraries

2010-11-08 Thread Jonathan Pryor
On Mon, 2010-11-08 at 07:35 +0530, Arun K wrote: I am performing a static analysis on the mono 2.4.x libraries. 2.4.x? How old! (We're up to 2.8 now...) The aim of this analysis is to detect potential deadlock scenarios within the libraries. As a first step, I wanted to find if any

Re: [Mono-list] Multiple issues with sqlmetal and MySql

2010-11-04 Thread Jonathan Pryor
On Thu, 2010-11-04 at 11:12 -0700, st0p wrote: 2) When I create an instance of the generated DataContext, using a MySql connection object, I´m getting the following generated sql: SELECT [t0].[Email], [t0].[Id] AS [ID], [t0].[Password] FROM [rss].[user] AS [t0] -- Context:

Re: [Mono-list] Create a shared library

2010-10-28 Thread Jonathan Pryor
On Thu, 2010-10-28 at 12:07 -0400, Matt Calder wrote: Is it possible to compile a C# library, using mono, into a native shared library on a linux system? I would like to then call that shared library from other languages (python and R). Short answer: No. Workaround answer: you can create a

Re: [Mono-list] How to protect a mono application from reverse engineering?

2010-10-25 Thread Jonathan Pryor
On Mon, 2010-10-25 at 15:08 +0200, Stéphane C wrote: What I want to protect the most is the algorithms used in the application, they represent many years of research and development and we don't want them to fall into the hands of a competitor who is just running an IL disassembler. Again, if

Re: [Mono-list] Errors with XML Comments during build

2010-10-24 Thread Jonathan Pryor
On Oct 24, 2010, at 4:19 PM, Ryan Boggs rmbo...@gmail.com wrote: I have a project that I am trying to build on Mono-2.8 but it is erroring out with the following message: error CS1574: XML comment on 'full method name here' has cref attribute 'System.String' that could not be resolved It's a

Re: [Mono-list] How to protect a mono application from reverse engineering?

2010-10-24 Thread Jonathan Pryor
On Sun, 2010-10-24 at 18:42 +0200, Stéphane C wrote: I am currently evaluating mono as a replacement of Qt/C++ for a commercial application but I'm a bit worried about the way it compiles. Extracting the source code from an IL assembly seems a very easy task, in fact I found it quite alarming,

Re: [Mono-list] FW: Is this a viable platform?

2010-10-14 Thread Jonathan Pryor
On Fri, 2010-10-15 at 10:51 +1000, David Younger wrote: I have an existing .Net job management application running on a Windows Mobile device. What are my realistic chances of using Mono to port this application to run on iPhone and Android? Depends on what you mean by port. For iPhone

Re: [Mono-dev] UnixUserInfo issues in OpenBSD

2010-10-13 Thread Jonathan Pryor
I have no idea why it's failing. Sorry. What I can do is send you a C program which closely mirrors what Mono.Unix is doing. Could you compile and run it, and see if it fails in the same ways? The program source is attached. - Jon On Wed, 2010-10-13 at 10:43 +0200, pablosantosl...@terra.es

Re: [Mono-dev] UnixUserInfo issues in OpenBSD

2010-10-13 Thread Jonathan Pryor
On Wed, 2010-10-13 at 16:38 +0200, pablosantosl...@terra.es wrote: This is what I get: $ ./a.out tester # checking return value 1; errno=13 That's...horribly wrong. First, what's errno=13? (i.e. what EVALUE is 13? I'm sure OpenBSD has different values than Linux does.) Regardless,

Re: [Mono-list] Passing UTF-8 to a method that takes a .Net string - not possible right?

2010-10-13 Thread Jonathan Pryor
On Tue, 2010-10-12 at 22:33 -0700, nev wrote: So I've been using Mono.Cairo.Context.ShowText() which takes a string. On Linux everything is good, never had a problem. But running my assemblies on Windows with the Mono assemblies from the Windows Mono installer everything works - except that

Re: [Mono-list] Command Line Options on Windows and Linux

2010-10-05 Thread Jonathan Pryor
On Mon, 2010-10-04 at 19:47 -0700, Charlie Poole wrote: I'm using Mono.Options for nunit-console 3.0 and I'm running into a bit of a conflict of philosophy about chars that start options. NUnit has historically NOT recognized args starting with '/' as options on Linux, although it does allow

Re: [Mono-dev] System.PlatformID

2010-09-20 Thread Jonathan Pryor
On Mon, 2010-09-20 at 18:06 -0400, Nicholas Salerno wrote: When I query System.Environment.OSVersion.Platform on Linux I get a value that will equate to 128. Yet, this is not in the source code definition for the PlatformID enum. It means you're running in the 1.0 profile. If you were

Re: [Mono-dev] Stability regression on recent git head

2010-09-16 Thread Jonathan Pryor
On Thu, 2010-09-16 at 18:38 +0100, Dick Porter wrote: It still crashes with the same stack trace, even with git master as of a couple of minutes ago. I double-checked, and your change is there. Unfortunately, I think we're rapidly hitting the point of needing to suspect/assume a horrible GC

Re: [Mono-dev] Stability regression on recent git head

2010-09-15 Thread Jonathan Pryor
I committed a workaround for this in commit 8cdb685. Could you see if that works for you? Thanks, - Jon On Wed, 2010-09-15 at 11:55 +0100, Dick Porter wrote: Hi all We've been testing the sgen GC with our server, as part of the effort to stabilise it. Recently however we've noticed that

Re: [Mono-dev] mono-Interop with Native Libraries

2010-09-04 Thread Jonathan Pryor
On Fri, 2010-09-03 at 09:13 -0300, Rafael Teixeira wrote: The highest risk is that without the [StructLayout(LayoutKind.Sequential)] the compiler is free to rearrange the order of the fields to make things as compact as possible but obeying to the alignment requirements of the architecture

Re: [Mono-dev] libffi

2010-08-19 Thread Jonathan Pryor
On Thu, 2010-08-19 at 10:35 -0700, Ryan Riley wrote: Has anyone created or investigated Mono support for libffi? Once upon a time, Mono used libffi directly. It was removed in r724 (git SHA1 ID d0cd6059c1b2edad12eb67cb8e64b3cd187be1b1) on 2001-09-05 (and earlier). Unfortunately, the commit

Re: [Mono-list] Call managed from unmanaged code?

2010-08-18 Thread Jonathan Pryor
On Wed, 2010-08-18 at 21:27 -0400, kroge...@aol.com wrote: Is it possible to call into a managed DLL from an unmanaged C/C++ application with the facilities within Mono? Yes, using the Mono embedding API: http://www.mono-project.com/Embedding_Mono

Re: [Mono-dev] Options needed for imported Linux libraries.

2010-08-12 Thread Jonathan Pryor
On Thu, 2010-08-12 at 16:49 +0200, Omar Siam wrote: I compiled a C so lib on Linux to do ioctl calls and tried to use it with DllImport but when I pass structures by ref or StringBuilder for returning char* buffers to my library everything is behaving strange.

Re: [Mono-list] Pure wrapper calling native code

2010-08-05 Thread Jonathan Pryor
Short [0] version: http://www.mono-project.com/dllimport Brendon Chung wrote: I need this program to access an unmanaged C++ dll. Which prompts the single most important question: do you have a version of this C++ DLL built for the Mac platform? (For example, if the C++ DLL is `foo.dll`, do

Re: [Mono-list] String comparisons slow

2010-07-21 Thread Jonathan Pryor
On Wed, 2010-07-21 at 15:30 -0400, David S wrote: Ok. Now I'm confused. How come CurrentCulture for US/ENG doesn't just run the Ordinal? This may be hard to believe, but en-US (and en-UK) are more than just ASCII. Consider the word rèsumè, an English loan word from French. Or the long s [0]

Re: [Mono-dev] Updated DateTime.

2010-07-14 Thread Jonathan Pryor
On Jul 14, 2010, at 2:19 AM, Miguel de Icaza mig...@novell.com wrote: This works on my system, but I am unable to run the test suite currently. You might not be able to run the full unit tests, but you should be able to run a subset of them: make FIXTURE=System.DateTimeTests run-test

Re: [Mono-dev] Referring to libraries on the command line

2010-07-14 Thread Jonathan Pryor
On Wed, 2010-07-14 at 07:16 +0100, Russell Wallace wrote: I'm trying to compile a program with gmcs, which wants references to all libraries in the current directory. Normally one would specify this with *.dll, but because gmcs wants a prefix of -r: in each case, this breaks. Is there any way

Re: [Mono-dev] diff: bug-438454.exe.stdout.expected: No such file or directory

2010-07-10 Thread Jonathan Pryor
Should be fixed in r160202. - Jon On Wed, 2010-07-07 at 21:20 +0900, KISHIMOTO, Makoto wrote: Hello, In my FreeBSD box, make check of Mono svn trunk failed. log is follow. $ gmake check Making check in po gmake[1]: Entering directory `/export/home/ksmakoto/Mono/BUILD/po' Making check

Re: [Mono-dev] Adding documentation for new namespace

2010-07-01 Thread Jonathan Pryor
) at Gtk.Application.gtk_main() at Gtk.Application.Run() at Monodoc.Driver.Main(System.String[] args) ch...@ubuntupc:~/Mono/mcs/class/corlib$ It doesn't crash when selecting a namespace that isn't new. Thanks Chris Jonathan Pryor wrote: On Wed, 2010-06-30 at 14:58 +0100, Chris

Re: [Mono-dev] Standard name for mcs

2010-06-30 Thread Jonathan Pryor
On Sun, 2010-06-27 at 21:29 +0100, Russell Wallace wrote: On Sun, Jun 27, 2010 at 9:22 PM, Mark de Bruijn | Dykam kram...@gmail.com wrote: The problem is that not all version of C# are completely backwards compatible themselves. I was under the impression Microsoft were being very careful

Re: [Mono-dev] Porting .NET application (Namespaces)

2010-06-30 Thread Jonathan Pryor
On Wed, 2010-06-30 at 06:40 -0700, djdeveloper wrote: I'm asking myself how to port a C#.NET app to mono. Do i have to replace all the usual namespaces like e.g. System.Data with Mono.Data and so on? No. Mono implements most of the .NET System.* namespaces using the same assembly names,

Re: [Mono-dev] Adding documentation for new namespace

2010-06-30 Thread Jonathan Pryor
On Wed, 2010-06-30 at 14:58 +0100, Chris Bacon wrote: I would like to add some documentation for the System.Diagnostics.Contracts namespace, for which there is currently no documentation. I cannot see a way to add a new namespace using the Mono Documentation Library. Please could someone

Re: [Mono-dev] Standard name for mcs

2010-06-28 Thread Jonathan Pryor
There are efforts to make mcs a multi-target compiler (probably under a new name and with script wrappers for mcs, gmcs, smcs, dmcs), but even then you'll have to specify the target runtime version via a command like switch (or resort to the aforementioned wrappers). This already exists via

Re: [Mono-list] How to Start Concatenated Processes by Using System.Diagnostics.Process?

2010-06-18 Thread Jonathan Pryor
Inline... On Fri, 2010-06-18 at 11:13 +0200, Jacek Rużyczka wrote: Am Donnerstag 17 Juni 2010 16:25:04 schrieb Robert Jordan: This. Or pass the commands to a shell process (untested): ProcessStartInfo info = new ProcessStartInfo(); info.UseShellExecute = false; info.FileName =

Re: [Mono-dev] Altering our build system.

2010-05-20 Thread Jonathan Pryor
On Thu, 2010-05-20 at 12:52 -0400, Miguel de Icaza wrote: I would like to move to a setup where by default we assume we have a working mcs/runtime and we build the configured profiles (defaulting to 2.0 and 4.0). ... A final wish-list item would be to split up the *core* libraries

Re: [Mono-list] NotImlementedException when sqlite connection passed to DataContext constructor.

2010-05-09 Thread Jonathan Pryor
Do you mean Mono 2.4.4 (not MonoDevelop [0]) and System.Data.Linq.DataContext? If so, that's because DataContext wasn't implemented until the Mono 2.6 series. - Jon [0] MonoDevelop just released their beta for 2.4; there is no MonoDevelop 2.4.4. On May 9, 2010, at 2:35 AM, TaffyDownUnder

Re: [Mono-list] Possible to use a Linux .so program in Mono?

2010-04-26 Thread Jonathan Pryor
On Mon, 2010-04-26 at 11:58 -0700, Steve Ricketts wrote: I'm looking at the various alternatives to processing audio files and just wondered if it would be possible to pass information to a Linux .so file written in c? Specifically, I'd like to pass a byte array of PCM audio data and get back

Re: [Mono-dev] [PATCH] Android Support [3/4]

2010-04-20 Thread Jonathan Pryor
On Tue, 2010-04-20 at 11:16 +0200, Paolo Molaro wrote: We must use feature checks and not platform checks as much as possible. The changes you outlined were commited to trunk (r155826) and the mono-2-6 branch (r155825). Thanks, - Jon ___

[Mono-dev] [PATCH] Android Support [4/4]

2010-04-19 Thread Jonathan Pryor
(working copy) @@ -1,3 +1,13 @@ +2010-04-19 Jonathan Pryor jpr...@novell.com + + * configure.in: Use AC_CHECK_LIB() to check for pthread instead of + just blindly linking to -lpthread, as Android includes pthread + support within libc and doesn't provide a separate libpthread. + Add header

[Mono-dev] [PATCH] Android Support [1/4]

2010-04-19 Thread Jonathan Pryor
=== --- eglib/ChangeLog (revision 155735) +++ eglib/ChangeLog (working copy) @@ -1,3 +1,11 @@ +2010-04-19 Jonathan Pryor jpr...@novell.com + + * src/glib.h: Rebase g_return_if_fail(), g_return_val_if_fail() in + terms of g_critical() instead of printf

[Mono-dev] [PATCH] Android Support [2/4]

2010-04-19 Thread Jonathan Pryor
*) AC_DEFINE(GC_LINUX_THREADS) Index: libgc/ChangeLog === --- libgc/ChangeLog (revision 155735) +++ libgc/ChangeLog (working copy) @@ -1,3 +1,11 @@ +2010-04-19 Jonathan Pryor jpr...@novell.com + + * include/private/gcconfig.h: Android

[Mono-dev] [PATCH] Android Support [3/4]

2010-04-19 Thread Jonathan Pryor
) @@ -1,3 +1,7 @@ +2010-04-19 Jonathan Pryor jpr...@novell.com + + * collection.c, mono-mutex.c: Add Android support. + 2010-04-14 Zoltan Varga var...@gmail.com * collection.c (_wapi_collection_init): Set stack size on openbsd similarly to Index: mono/io-layer/mono-mutex.c

Re: [Mono-dev] [PATCH] Android Support [1/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 15:15 -0300, Rodrigo Kumpera wrote: +static void +out_vfprintf (FILE *ignore, const gchar *format, va_list args) +{ + __android_log_vprint (ANDROID_LOG_ERROR, mono, format, args); +} Shouldn't we identify the entry by the application name instead of mono? In an

Re: [Mono-dev] [PATCH] Android Support [4/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 13:53 -0400, Joe Dluzen wrote: How do these compare with Koush's: http://github.com/koush/androidmono ? Are they a complete reimplementation? No, it's a different take. Koush's implementation, as I understand it, uses the Android build system to build Mono. This instead

Re: [Mono-dev] [PATCH] Android Support [2/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 15:17 -0300, Rodrigo Kumpera wrote: Looks good. Thanks. Committed to mono-2-6 (r155746) and trunk (r155747). - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] [PATCH] Android Support [3/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 15:22 -0300, Rodrigo Kumpera wrote: On Mon, Apr 19, 2010 at 2:44 PM, Jonathan Pryor jonpr...@vt.edu wrote: +AC_CHECK_HEADER([malloc.h], + [AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1], + [Define to 1 if you have /usr/include/malloc.h.])],,) + What's the use

Re: [Mono-dev] [PATCH] Android Support [3/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 15:31 -0400, Jonathan Pryor wrote: This also implies that my patch, as is, won't work under desktop Linux (oops). Specifically, mono-codeman.c needs to #include malloc.h before #including dlmalloc.h. Never mind; tried the patch as-is, and it builds properly on trunk

Re: [Mono-dev] [PATCH] Android Support [4/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 15:24 -0300, Rodrigo Kumpera wrote Looks good. Thanks. Committed to mono-2-6 (r155752) and trunk (r155753). - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] [PATCH] Android Support [3/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 17:16 -0300, Rodrigo Kumpera wrote: Looks good to me then. Thanks. Committed to mono-2-6 (r155758) and trunk (r155758). - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] [PATCH] Android Support [1/4]

2010-04-19 Thread Jonathan Pryor
On Mon, 2010-04-19 at 14:26 -0400, Jonathan Pryor wrote: On Mon, 2010-04-19 at 15:15 -0300, Rodrigo Kumpera wrote: +static void +out_vfprintf (FILE *ignore, const gchar *format, va_list args) +{ + __android_log_vprint (ANDROID_LOG_ERROR, mono, format, args); +} Shouldn't we

[Mono-dev] Announcing DbLinq 0.20.1

2010-04-16 Thread Jonathan Pryor
The DbLinq[0] team is proud to announce the release of DbLinq 0.20.1, following the DbLinq 0.20 release from last week. DbLinq is a reimplementation of System.Data.Linq.dll for use with SQL servers in addition to Microsoft SQL Server. Support is provided for: * Firebird [1] * Ingres

[Mono-list] Announcing DbLinq 0.20.1

2010-04-16 Thread Jonathan Pryor
The DbLinq[0] team is proud to announce the release of DbLinq 0.20.1, following the DbLinq 0.20 release from last week. DbLinq is a reimplementation of System.Data.Linq.dll for use with SQL servers in addition to Microsoft SQL Server. Support is provided for: * Firebird [1] * Ingres

Re: [Mono-list] 32 Bit Mono on 64 Bit Linux?

2010-04-14 Thread Jonathan Pryor
On Wed, 2010-04-14 at 10:15 +0200, Markus Ewald wrote: On Windows, .NET assemblies compiled for AnyCPU can be run on a 64-Bit OS in either 32-Bit mode (using WOW64) or as native 64-Bit applications. Is there such a thing for Mono when run on a 64-Bit Linux system as well? Mono ignores that

Re: [Mono-list] Changing owner, group and permissions

2010-04-13 Thread Jonathan Pryor
On Wed, 2010-04-14 at 12:11 +1200, Srdan Dukic wrote: Now, when I go to try and compile my program, I get the following error: gmcs DirCreator.cs -r:Mono.Unix -out:bin/DirCreator.dll -target:library error CS0006: cannot find metadata file `Mono.Unix' You're

Re: [Mono-list] Changing owner, group and permissions

2010-04-12 Thread Jonathan Pryor
On Tue, 2010-04-13 at 15:53 +1200, Srdan Dukic wrote: I have a mono program (runs as root) which (as a part of its functionality) goes and creates a directory. This directory should have a non-root owner, a non-root group and I would like to specify what permissions are on the directory.

[Mono-dev] Announcing DbLinq 0.20

2010-04-09 Thread Jonathan Pryor
The DbLinq[0] team is proud to announce the release of DbLinq 0.20, following the venerable DbLinq 0.19 release from December 2009. DbLinq is a reimplementation of System.Data.Linq.dll for use with SQL servers in addition to Microsoft SQL Server. Support is provided for: * Firebird [1]

[Mono-list] Announcing DbLinq 0.20

2010-04-09 Thread Jonathan Pryor
The DbLinq[0] team is proud to announce the release of DbLinq 0.20, following the venerable DbLinq 0.19 release from December 2009. DbLinq is a reimplementation of System.Data.Linq.dll for use with SQL servers in addition to Microsoft SQL Server. Support is provided for: * Firebird [1]

<    1   2   3   4   5   6   7   8   9   10   >