Re: [Mono-list] Mono on Debian

2009-03-29 Thread Jonathan Pryor
On Tue, 2009-03-24 at 06:29 -0700, frist44 wrote: We have an .exe that was built on Windows. We are trying to get it to run on Linux and are having problems. There is a vbshared.dll that the exe depends on. I've copied that to the same folder on Linux. When I run the exe I get: **

Re: [Mono-list] Calling method with complex arguments (embedded)

2009-03-25 Thread Jonathan Pryor
On Wed, 2009-03-25 at 17:47 +0100, Robert Bielik wrote: I'm trying to call a function with prototype: ... Tried to retrieve the MonoClass* for System.Collections.Generic.List via mono_class_from_name(mono_get_corlib(), System.Collection.Generic, List) but it returns NULL. Try using List`1

Re: [Mono-list] how to use System.Collections.Generic

2009-03-06 Thread Jonathan Pryor
On Fri, 2009-03-06 at 19:22 -0700, Ryan Heaton wrote: Hi all. Sorry for the newbie question, but I can't seem to use the System.Collections.Generic.List class. What assembly reference do I need? I'm on Ubuntu Intrepid, using gmcs. Here's my error: error CS0234: The type or namespace name

Re: [Mono-list] Re moting Problem

2009-02-27 Thread Jonathan Pryor
On Fri, 2009-02-27 at 15:25 +, Michael Bailey wrote: I'm a little confused why when mono comes with ubuntu as standard that package does not. Because mono is huge, and they don't want to waste that much space for unused packages. For example, mono on openSUSE includes the 1.0 profile,

Re: [Mono-dev] SVN upgraded to subversion 1.5.x

2009-02-24 Thread Jonathan Pryor
On Tue, 2009-02-24 at 11:36 +0100, Robert Jordan wrote: Since older clients are not updating svn:mergeinfo, merge tracking could be easily broken if an old client is allowed to commit to /branches. You may want to block those clients with a start-commit hook: ---8--- #!/bin/bash

Re: [Mono-dev] misc: C# request info

2009-02-24 Thread Jonathan Pryor
On Tue, 2009-02-24 at 20:46 +1000, BGB wrote: C# has some tricky syntax too, some tokens change behaviour of following block. Some are just tricky to parse like generics, nullables, lambdas, etc. Here is one example Foo (x y, z (0)); AFAIK the above can't be a generic since a

Re: [Mono-dev] Help about how to start?

2009-02-23 Thread Jonathan Pryor
On Wed, 2009-02-11 at 08:28 -0800, shweta123 wrote: I wish to contribute the project as a developer. But I don't know how can I help. So please let me know how can I understand the project? This should be a good start: http://www.mono-project.com/Contributing The larger

Re: [Mono-dev] Developing using Mono/Gtk# Vs Mono.WinForms (Windows Linux)

2009-02-23 Thread Jonathan Pryor
On Fri, 2009-02-13 at 16:57 +0100, Chris Hills wrote: Tom Opgenorth wrote: What could be better to use Gtk# or Winforms? The rule of thumb would use: if the majority of users are Windows, use WinForms. If Linux, use GTK#. Of course, this is assuming that you're equally skilled in both.

Re: [Mono-list] [newbee] Please, help me to run my basic software ? (Path)

2009-02-23 Thread Jonathan Pryor
On Wed, 2009-01-21 at 17:36 -0800, arnomedia wrote: SEE THE ERROR MESSAGE FROM MONO: ** (/home/arnofly/Bureau/TestForLinux.exe:5467): WARNING **: The following assembly referenced from /home/arnofly/Bureau/TestForLinux.exe could not be loaded: Assembly: Microsoft.VisualBasic

Re: [Mono-dev] signal.c cross-thread access

2009-02-20 Thread Jonathan Pryor
On Fri, 2009-02-20 at 08:03 +, tim.je...@realtimeworlds.com wrote: The test for 64 signals passed to WaitAny, and the bounds check in the WaitAny entry point, is to guard against overrunning the bounds of a new pollfd array of NUM_SIGNALS length: + struct pollfd

Re: [Mono-dev] UnixGroupInfo patch

2009-02-12 Thread Jonathan Pryor
On Mon, 2009-02-09 at 17:16 +0100, Daniel Peñalba wrote Attached is a patch file. Please confirm if this patch can be included to the next Mono release. This patch has been applied to svn-trunk. Alas, it won't make it into Mono 2.4, but instead will land in Mono 2.6. Thanks, - Jon

Re: [Mono-list] linkage question

2009-02-06 Thread Jonathan Pryor
On Fri, 2009-02-06 at 10:52 -0700, Ryan Heaton wrote: Interesting. How exactly does an API get identified as stable? Some kind of compiler flag? By the author saying that it's stable, signing the assembly (see sn(1)), and installing it into the GAC (gacutil /i, which requires that the assembly

Re: [Mono-dev] gmcs and The Future

2009-02-05 Thread Jonathan Pryor
On Thu, 2009-02-05 at 12:10 -0500, Avery Pennarun wrote: (The reason I use cpp, incidentally, is so I can implement C-style assert() and check() macros that actually print the condition being tested as part of the assertion message. There seems to be no other way to do this in C#, which is

Re: [Mono-dev] gmcs and The Future

2009-02-05 Thread Jonathan Pryor
On Thu, 2009-02-05 at 18:54 +, Marek Safar wrote: Here is slightly simplified version [Conditional(DEBUG)] static void Assert (ExpressionFuncbool e) { var d = e.Compile (); if (!d ()) { Console.WriteLine (((LambdaExpression)e).Body.ToString ());

Re: [Mono-dev] gmcs and The Future

2009-02-04 Thread Jonathan Pryor
On Wed, 2009-02-04 at 22:56 +1300, Scott Peterson wrote: I will start the ball rolling with a simple feature: Problem: While the 'typeof' keyword is very convenient for getting Type objects, it is much more difficult to get any other kind of reflection data. For example, to get a MethodInfo

Re: [Mono-dev] signal.c cross-thread access

2009-02-04 Thread Jonathan Pryor
Before I forget, you should also write additional tests for this behavior in mcs/class/Mono.Posix/Test/Mono.Unix/UnixSignalTest.cs. An example test would be e.g. [Test] public void TestNestedInvocations () { UnixSignal s = new UnixSignal (Signum.SIGINT);

Re: [Mono-list] Problem using monodocer

2009-02-02 Thread Jonathan Pryor
On Mon, 2009-02-02 at 19:05 +, alan battersby wrote: but still crashes with trace shown below. Am I doing something wrong or is there a major bug here? There's a bug there. :-/ - Jon ___ Mono-list maillist - Mono-list@lists.ximian.com

Re: [Mono-list] GAC and gmcs problem

2009-01-28 Thread Jonathan Pryor
On Tue, 2009-01-27 at 21:16 -0800, k1Ll5w1tcH wrote: But this still doesn't explain why I have to compile with -r:System.Data.dll, when System.Data is in my GAC? Furthermore, it should be noted that -r NEVER looks in the GAC -- for example, if you have e.g. Mono.Cecil installed in your GAC,

Re: [Mono-list] HashSet does not preserve add order

2009-01-24 Thread Jonathan Pryor
On Sat, 2009-01-24 at 20:44 +0200, Andrus wrote: Code below produces different results in MONO and .NET . How to fix ? From [0]: A set is a collection that contains no duplicate elements, and whose elements are in no particular order. It *explicitly* states that elements are

Re: [Mono-dev] Fwd: Ideas for Mono on Windows

2009-01-23 Thread Jonathan Pryor
On Fri, 2009-01-23 at 13:33 -0600, Jonathan Pobst wrote: 3) the build process hang when building mono/docs, so I looked in the Makefile of that directory and did a touch on the files it tried to create (some *.tree and *.zip files). I figured since it's only documentation it doesn't

Re: [Mono-dev] signal.c cross-thread access

2009-01-22 Thread Jonathan Pryor
Sorry for the delay in review... The short version: I don't like it. The biggest reason is complexity -- the changes are huge, I'm not sure I fully understand all the changes, and what's currently here looks like it has several race conditions. (Or I'm imagining things -- it's a huge patch.)

Re: [Mono-list] I need help with FUD

2009-01-20 Thread Jonathan Pryor
On Tue, 2009-01-20 at 16:31 -0800, ccoish wrote: I use Mono. I love Mono. I think I agree with the intent of your post, but it just seems wrong to me that every alternative faces the EXACT SAME PROBLEMS. Every alternative faces the threat of software patents, sure. But I think there's a

Re: [Mono-list] I need help with FUD

2009-01-16 Thread Jonathan Pryor
On Fri, 2009-01-16 at 01:58 -0800, neptune235 wrote: So I've been studying and reading up on Mono, and in the course of this I came upon articles saying that Mono should be quarantined from Gnome, its not free software etc. But in reading these articles, I'm having a hard time seeing the core

Re: [Mono-list] Changing directory outside of process.

2009-01-16 Thread Jonathan Pryor
On Fri, 2009-01-09 at 08:00 -0800, floppyformattingfrenzy wrote: Is there any way to change the directory when the process expires? This would be something akin to what the program cd does. `cd' isn't a program, it's a shell builtin. (It needs to be, as the chdir(2) system call only effects

Re: [Mono-dev] PInvoke and language interopelability

2009-01-13 Thread Jonathan Pryor
On Tue, 2009-01-13 at 16:13 +0100, Alfredo José Muela Romero wrote: My current problem, which I'm running out of ideas :/ is about how to get a call from the dinamic to the wrapped code. Let's say I have a dynamic library (in C++ for instance) which implements a Model-View-Controller

Re: [Mono-list] How do I reference generic classes in C#???

2009-01-10 Thread Jonathan Pryor
On Sat, 2009-01-10 at 02:38 -0800, Luke B wrote: Good read. You got me wondering why type erasure is used. From the Java site: Type erasure enables Java applications that use generics to maintain binary compatibility with Java libraries and applications that were created before generics.

Re: [Mono-list] How do I reference generic classes in C#???

2009-01-10 Thread Jonathan Pryor
On Fri, 2009-01-09 at 16:42 -0800, neptune235 wrote: Oh, that's totally different than Java, but it seems to work fine. Thanks for your help! That's because Java implements generics through type erasure, so all generic instantiations use the same (non-generic) type. .NET generics are real.

Re: [Mono-dev] greetings (new here)... a few things...

2009-01-06 Thread Jonathan Pryor
On Tue, 2009-01-06 at 10:26 +0100, Robert Jordan wrote: Mono's BCL does depend on the underlying runtime. If you want to replace the *whole* runtime, a lot of internal calls would have to be provided by the new runtime. Which is not to say that it can't be done. It can be done and has been

Re: [Mono-list] Embedding mono/C# in a file format...

2009-01-04 Thread Jonathan Pryor
On Sun, 2009-01-04 at 12:15 -0800, SniperSlap wrote: Jonathan Pryor wrote: Google up: - System.CodeDom ... I noticed after writing my initial message that Mono 2.2 is going to have the C# Evaluation API (Mono.CSharp.Evaluator). How does this compare to the ideas you mentioned

Re: [Mono-list] Detecting if platform is Mac

2008-12-31 Thread Jonathan Pryor
On Wed, 2008-12-31 at 15:33 -0500, Geoff Norton wrote: On Wed, 2008-12-31 at 11:53 -0800, Erik Ylvisaker wrote: Otherwise, is there another recommended way to detect if running on MacOS? Currently we are spawning uname and checking to see if the output is Darwin. This works, but I don't

Re: [Mono-list] monodoc troubles

2008-12-30 Thread Jonathan Pryor
On Thu, 2008-12-25 at 13:15 -0600, Austin Winstanley wrote: Where is the source for monodoc? I wouldn't mind checking it out to see if it could be run in windows... Current sources are: http://anonsvn.mono-project.com/trunk/mcs/class/Mono.Cecil/

Re: [Mono-list] monodoc troubles

2008-12-30 Thread Jonathan Pryor
On Mon, 2008-12-29 at 03:03 -0800, neptune235 wrote: I'm having problems with documentation (on OS X) as well. The web is fine, but I need to develop on my laptop where I may not have web access. Offering a zip file of those web pages would be really nice. I mean I suppose I can write a bot to

Re: [Mono-dev] FW: RealTimeSignal patch

2008-12-19 Thread Jonathan Pryor
Thank you for the patches. This has been committed in revisions r121851 and r121852. - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list

Re: [Mono-dev] Cygwin build hang.

2008-12-18 Thread Jonathan Pryor
On Thu, 2008-12-18 at 13:59 +0100, Mariner, David wrote: I’m having problems getting the current svn update to build under cygwin. It’s hanging in mcs/docs This is a known issue: https://bugzilla.novell.com/show_bug.cgi?id=458742 Not sure when it will be fixed. As a workaround, edit

Re: [Mono-dev] FW: RealTimeSignal patch

2008-12-17 Thread Jonathan Pryor
=== --- class/Mono.Posix/Mono.Unix/UnixSignal.cs(revision 121281) +++ class/Mono.Posix/Mono.Unix/UnixSignal.cs(working copy) @@ -3,6 +3,7 @@ // // Authors: // Jonathan Pryor (jpr...@novell.com) +// Tim Jenks (tim.je...@realtimeworlds.com

Re: [Mono-dev] [mono-packagers] mono-find-(provides|requires)

2008-12-16 Thread Jonathan Pryor
On Fri, 2008-12-12 at 16:28 +, Jo Shields wrote: 1) Why does mojoportal provide mono(log4net)? If it's a private bundled lib which is not added to the GAC, then why lie and say it's provided when it isn't? Because the automagic tools were stupid and said that every assembly found was a

Re: [Mono-dev] FW: RealTimeSignal patch

2008-12-16 Thread Jonathan Pryor
/UnixSignalTest.cs (working copy) @@ -3,11 +3,13 @@ // // Authors: // Jonathan Pryor jonpr...@vt.edu +// Tim Jenks tim.je...@realtimeworlds.com // // (C) 2008 Jonathan Pryor // using NUnit.Framework; +using NUnit.Framework.SyntaxHelpers; using System; using System.Text

Re: [Mono-list] Newbie Problem with System.Xml

2008-12-16 Thread Jonathan Pryor
On Fri, 2008-12-12 at 01:46 -0800, Mucki wrote: i am learning C# in the Mono .Net environment and i tried some code around files. Of course i had a view on XML files and found the System.Xml class. With the following code using System; using System.IO; using System.Xml; namespace

Re: [Mono-dev] mono-find-(provides|requires)

2008-12-13 Thread Jonathan Pryor
On Fri, 2008-12-12 at 22:35 -0600, Mike Kestner wrote: On Fri, 2008-12-12 at 08:56 -0700, Andrew Jorgensen wrote: I don't know how best to solve this issue but it needs to be solved. As more mono-based packages are added to linux distributions the problem will grow. Please share your

Re: [Mono-dev] [mono-packagers] mono-find-(provides|requires)

2008-12-12 Thread Jonathan Pryor
On Fri, 2008-12-12 at 08:56 -0700, Andrew Jorgensen wrote: There are some significant problems with the mono-find-(provides| requires) scripts as they exist now. Some examples will illustrate the problem best: snip examples/ I think the fundamental problem is that

Re: [Mono-dev] [mono-packagers] mono-find-(provides|requires)

2008-12-12 Thread Jonathan Pryor
On Fri, 2008-12-12 at 13:49 -0700, Andrew Jorgensen wrote: Trouble is that it's not easy to determine if a required assembly will be found in the gac or in some other location. We might be able to make a simplifying (if potentially invalid) assumption here: if the `monodis --assemblyref` output

Re: [Mono-dev] [mono-packagers] mono-find-(provides|requires)

2008-12-12 Thread Jonathan Pryor
On Fri, 2008-12-12 at 15:49 -0700, Andrew Jorgensen wrote: On Fri, 2008-12-12 at 21:10 +, Jonathan Pryor wrote: BTW, where is the source for mono-find-provides and mono-find-requires? The only versions I see are shell scripts that do odd things with /usr/share/doc and don't seem to do

Re: [Mono-list] Handling SIGRT* signals

2008-12-10 Thread Jonathan Pryor
On Wed, 2008-12-10 at 17:33 +, [EMAIL PROTECTED] wrote: I have been looking over the UnixSignal class hoping to Wait on a SIGRT signal raised by a native library. Unfortunately, I can only create UnixSignal instances to handle signals defined in the Signum enumerator and not Signals =

Re: [Mono-dev] Incoming changes to Mono.Simd

2008-12-03 Thread Jonathan Pryor
On Wed, 2008-12-03 at 17:24 +, Alan McGovern wrote: Out of interest, why do we use static methods currently rather than instance methods? Would using instance methods instead of extension methods complicate things jit-wise, as API-wise it'd be essentially the same. Then there's

Re: [Mono-dev] Incoming changes to Mono.Simd

2008-12-03 Thread Jonathan Pryor
On Thu, 2008-12-04 at 02:26 +0200, StApostol wrote: Extension methods are great for simplifying the API, but Mono.Simd should still be usable by C# 2.0 programs. Silly question, but why? Since Mono.Simd will only be accelerated under Mono, and Mono supports C# 3, I don't see much use for the

Re: [Mono-dev] possible to dllimport linux archive library file *.a ?

2008-11-07 Thread Jonathan Pryor
On Wed, 2008-11-05 at 08:43 -0800, toshCA2008 wrote: I dont understand what a libfile.a (linux library archive file) really is. I know it contains .so files. This is wrong. A .a file contains .o files, just as a Win32 static .LIB file contains .OBJ files. (Well, .LIB files which aren't stubs

Re: [Mono-dev] Contributing Code for ObservableCollection

2008-11-06 Thread Jonathan Pryor
On Thu, 2008-11-06 at 13:30 -0500, Miguel de Icaza wrote: My feeling is that for the class libraries that we author and maintain we do not want to put inline documentation, just for the sake of consistency. Then there isn't any need to provide a default XML documentation import mechanism at

Re: [Mono-dev] Mono.Simd API Suggestions

2008-11-06 Thread Jonathan Pryor
On Thu, 2008-11-06 at 12:04 -0200, Rodrigo Kumpera wrote: Thanks for taking some time looking at the Mono.Simd API and doing some suggestions but, please, do then on a more visible mailing list such as mono-devel. Because I'm an idiot who saw mono-d... and assumed it was mono-devel-list. My

Re: [Mono-dev] System.Unix.Native.Syscall.fork is commented out

2008-11-05 Thread Jonathan Pryor
On Wed, 2008-11-05 at 22:13 +, James Mansion wrote: Jonathan Pryor wrote: That still wouldn't work, as *before* Main() is invoked there are already multiple threads running. You might not have the unknown lock state issue, but you will have the runtime assuming that threads exist

[Mono-docs-list] Mono.Simd API Suggestions

2008-11-04 Thread Jonathan Pryor
Just perusing through the Mono.Simd API, and one question (and a few other suggestions) occurs to me: Why the non-reliance on method overloading? More specifically, many (most?) types have an UnpackLow() method: public class Vector2L { public static Vector2l UnpackLow (Vector2l

Re: [Mono-dev] Contributing Code for ObservableCollection

2008-11-04 Thread Jonathan Pryor
On Tue, 2008-11-04 at 16:39 +, Alan McGovern wrote: 1) Xml comments are a no-go in the source files. If you want to commit documentation (which is always appreciated!) you should add it to monodoc and submit it as a separate patch. It should be possible to import your XML comments into

Re: [Mono-dev] System.Unix.Native.Syscall.fork is commented out

2008-11-04 Thread Jonathan Pryor
On Mon, 2008-11-03 at 14:49 -0800, Sixes wrote: Jonathan Pryor wrote: On Wed, 2008-09-03 at 10:33 +0200, Robert Jordan wrote: Alas, I didn't get any further details, but that was enough for me to remove fork() from Syscall: if it can't ever be reliably called, then it shouldn't

Re: [Mono-list] Fast Passing Strings to Interop without Marshaling

2008-11-03 Thread Jonathan Pryor
On Mon, 2008-11-03 at 09:41 -0800, Bradford Stephens wrote: I believe you still have to use the Marshaling in order to get an IntPtr. Yes, but marshaling an IntPtr doesn't require copying the entire buffer. Marshaling as a System.String *does* require copying the entire buffer. 4 bytes is

Re: [Mono-dev] Mono.Unix Process helpppp !!!

2008-11-02 Thread Jonathan Pryor
On Wed, 2008-10-29 at 02:12 -0700, Mesut Özkan wrote: hi friends...i use mono develop and i can create a unix ( solaris )program this program should list Unix Process... I'm assuming you mean _all_ Unix processes, as shown by ps(1)... which reference should i use ? which method should i use

[Mono-docs-list] monoapi Documentation

2008-10-29 Thread Jonathan Pryor
After hunting around for a bit (wondering why my openSUSE monodoc had mono embedding documentation but not my local build), I found that mono/mono/docscripts generates the monoapi{.source,.tree.zip} files needed to display mono embedding documentation within monodoc. The downside is that these

Re: [Mono-docs-list] monoapi Documentation

2008-10-29 Thread Jonathan Pryor
On Wed, 2008-10-29 at 11:33 -0400, Jonathan Pryor wrote: After hunting around for a bit (wondering why my openSUSE monodoc had mono embedding documentation but not my local build), I found that mono/mono/docscripts generates the monoapi{.source,.tree.zip} files needed to display mono embedding

Re: [Mono-list] All Framework dll have their xml file in svn

2008-10-28 Thread Jonathan Pryor
On Tue, 2008-10-28 at 22:42 +0100, Petit Eric wrote: all the doc was merged in mcs svn module ? Yes; see: http://lists.ximian.com/pipermail/mono-packagers-list/2008-October/19.html creazy a svn up of my mono mcs dir give me all language doc, so heavy to have only the mono runtime ? en,

Re: [Mono-dev] Compiling on windows in Cygwin problem

2008-10-24 Thread Jonathan Pryor
On Fri, 2008-10-24 at 17:43 +0100, [EMAIL PROTECTED] wrote: Thanks very much, that got me past that stage. I now have a hang during make the output is snip lots of output ../errors\cs5001.cs ../errors\cs5001.xml ../errors\CSExternAlias-lib.cs Ignoring file ../errors\CSExternAlias-lib.cs

Re: [Mono-docs-list] [mono-packagers] monodoc mcs/mono module merging

2008-10-20 Thread Jonathan Pryor
their documentation (see the gendarme google group), but the patches I've seen for that _also_ involve monodoc.xml changes, so the current monodoc.xml architecture hostile toward 3rd parties... With luck, we can get this finished for Mono 2.2... On Mon, 2008-10-20 at 23:18 -0400, Jonathan Pryor wrote

Re: [Mono-dev] Using Mono.Options in MS.NET

2008-10-20 Thread Jonathan Pryor
On Wed, 2008-10-15 at 16:48 -0400, Avery Pennarun wrote: Now that Mono.Options is included in Mono 2.2, will it still be available separately? Good question. The answer is that the Mono.Options currently in svn is ~identical to NDesk.Options 0.2.1 (which I'll be announcing soon, it's only been

Re: [Mono-docs-list] [mono-packagers] monodoc mcs/mono module merging

2008-10-19 Thread Jonathan Pryor
On Sat, 2008-10-18 at 13:10 +0200, Mirco Bauer wrote: On Fri, 17 Oct 2008 21:10:38 -0400 Jonathan Pryor [EMAIL PROTECTED] wrote: Unanswered Questions: What should be done about monodoc/engine/web, the ASP.NET frontend to monodoc documentation? I don't believe that it's actually

Re: [Mono-docs-list] [mono-packagers] monodoc mcs/mono module merging

2008-10-19 Thread Jonathan Pryor
On Sun, 2008-10-19 at 10:20 -0400, Jonathan Pryor wrote: Apropros monodoc, in debian we are working on a better way (packaging wise) to integrate documentation from non-Mono projects in monodoc: http://wiki.debian.org/Teams/DebianMonoGroup/MonodocIntegration Why not discuss this on mono

[Mono-docs-list] monodoc mcs/mono module merging

2008-10-17 Thread Jonathan Pryor
This is a heads-up that the monodoc mcs modules are merging for the Mono 2.2 release. Why? The largest reason is so that documentation is closer to the source, in the hopes that someone other than me will actually update the documentation stubs and write documentation for the class libraries.

[Mono-dev] monodoc mcs/mono module merging

2008-10-17 Thread Jonathan Pryor
This is a heads-up that the monodoc mcs modules are merging for the Mono 2.2 release. Why? The largest reason is so that documentation is closer to the source, in the hopes that someone other than me will actually update the documentation stubs and write documentation for the class libraries.

Re: [Mono-list] Mono.Unix.Native.Syscall.fork()

2008-10-05 Thread Jonathan Pryor
On Sun, 2008-10-05 at 03:18 -0700, Sixes wrote: Gonzalo Paniagua Javier-5 wrote: A daemon in .NET is a service. You can create your own service by deriving from System.ServiceProcess.ServiceBase and then use mono-service (http://go-mono.com/docs/index.aspx?link=man% 3Amono-service(1)).

Re: [Mono-list] Instantiating all classes from a namespace

2008-10-05 Thread Jonathan Pryor
On Mon, 2008-09-29 at 13:46 -0700, Esdras Beleza wrote: I'm programming an application and I want to divide its functionalities into modules. I put them into some classes that belong to a namespace App.Modules. Each module has a property (an attribute) Name. Fine, though I would suggest

Re: [Mono-dev] Support for XmlSerializationReader.CollapseWhitespace ReadTypedNull

2008-09-29 Thread Jonathan Pryor
On Sat, 2008-09-27 at 12:15 +0900, Atsushi Eno wrote: FileSecurity File.GetAccessControl(string) void FileSystemSecurity.AddAccessRule(FileSystemAccessRule) void FileSystemSecurity.AddAccessRule(FileSystemAccessRule) void File.SetAccessControl(string, FileSecurity) It is Windows-only

Re: [Mono-list] Monodoc, Submitting Documentation Changes

2008-09-21 Thread Jonathan Pryor
On Sun, 2008-09-21 at 08:02 -0400, Adrien Dessemond wrote: 2. I don't remember exactly how the structure is synchronized between the comment extracted from the C# code files and the documentation repository... :-( AFAIK, there isn't any connection between XML comments written into mcs/class/*

Re: [Mono-list] Name of the CSharp Shell

2008-09-21 Thread Jonathan Pryor
On Sun, 2008-09-21 at 17:39 -0400, Miguel de Icaza wrote: The name of the C# shell today is `csharp', but this is awkward to type, we have been considering renaming it, the options are: * csi - stands for C# interactive Pros: short, cute, easy to remember. Cons: popular TV

Re: [Mono-list] Xml reading writing.

2008-09-18 Thread Jonathan Pryor
On Wed, 2008-09-17 at 22:36 +0100, Neil Munro wrote: So I have this: // Save it in the prefs.xml file. XmlDocument xmlDoc = new XmlDocument( ); xmlDoc.Load( sPath_To_Prefs_File ); Now I know that the whole document is loaded into memory at this point, how would i

Re: [Mono-list] Xml reading writing.

2008-09-16 Thread Jonathan Pryor
On Wed, 2008-09-17 at 02:43 +0100, Neil Munro wrote: I have an xml file that is my applications preferences, it's an update tool, now this update tool can update from multiple sources. If no preferences file is found on first run, a default set are saved. Now if the user wishes to add a new

Re: [Mono-list] Hard linking

2008-09-02 Thread Jonathan Pryor
On Tue, 2008-09-02 at 07:30 -0700, Magikat wrote: Could anyone tell me if hard-linking on both Linux and Windows is supported under the .Net Framework. As far as I'm aware, symbolic links and hard links are NOT supported as distinct entities under .NET. That is, you can read a hard link or

Re: [Mono-dev] Base Class Library extending...

2008-08-10 Thread Jonathan Pryor
On Sun, 2008-08-10 at 05:23 -0700, Roman S.V. wrote: OK, I'm ready to fix posted issues. There is my plan: 1) Refactor all methods and namespace according with *.Extensions root namespace. I don't think this is a good idea, in particular from the FxDG: Avoid generic naming of

Re: [Mono-dev] Base Class Library extending...

2008-08-09 Thread Jonathan Pryor
On Sat, 2008-08-09 at 17:15 +0200, Robert Jordan wrote: Roman S.V. wrote: Hi! What about extending a BCL (Base Class Library) functionality inside mono? If course, these extensions are mon-specific. I want to suggest my open source project named as Standard Extension Library

Re: [Mono-dev] Base Class Library extending...

2008-08-09 Thread Jonathan Pryor
On Sat, 2008-08-09 at 18:38 -0700, Roman S.V. wrote: Is this possible to unite Mono Rocks and Standard Extensions Library? May be, my project can be included in Rocks as it part. I would not be opposed to such a unification, but be warned that such a unification might not be trivial. For

Re: [Mono-list] How to build mono w/o glib (pb)

2008-07-10 Thread Jonathan Pryor
On Thu, 2008-07-10 at 19:37 +0200, Alessandro Vesely wrote: glib 2.4 is a requirement for mono, as stated in the README. Is it at all possible to do without? I tried --with-x=no to no avail. How was the Nokia port built? configure --with-glib=embedded By Nokia port do you mean Maemo? I

Re: [Mono-dev] One Version of Mono.Cairo

2008-07-09 Thread Jonathan Pryor
On Wed, 2008-07-02 at 10:34 -0500, Jonathan Pobst wrote: Currently we ship 2 versions of Mono.Cairo.dll in Mono, a 1.0 and a 2.0 version. However, there is no difference in these versions. ... Some other assemblies that we appear to ship 1.0 and 2.0 versions of without any differences

Re: [Mono-docs-list] Guidelines to help build the class library documentation

2008-06-23 Thread Jonathan Pryor
On Sun, 2008-06-22 at 21:16 -0700, visor wrote: I've been looking lately at the mono documentation on the mono website and even when the msdn documentation is, most of the time, enough for mono users, I think we should have our own documentation build since many users see this lack of

Re: [Mono-dev] asynchronous exceptions

2008-06-18 Thread Jonathan Pryor
On Wed, 2008-06-18 at 12:22 +0200, Bastian Schmitz wrote: I am planning to have a language element, which ensures that a given condition stays fulfilled during the execution of block of code. If the condition is violated an exception should be risen. The condition is (probably) going to

Re: [Mono-list] Mono VM security (like SecurityManager in java)

2008-06-18 Thread Jonathan Pryor
On Wed, 2008-06-18 at 14:01 -0700, casperjeff wrote: This may be a silly question...but I am looking for information on how to secure a mono VM in a way not dissimilar to using a SecurityManager and policy file in java. There are two answers: 1. The .NET equivalent to Security Manager is

Re: [Mono-dev] mono-service process name

2008-06-05 Thread Jonathan Pryor
On Mon, 2008-06-02 at 11:08 -0700, Eric Moret wrote: This is a patch against mono svn trunk 104692. This adds option -a:procname to mono-service so the process name can be changed. Silly question, but why -a? I'm trying to think of what mnemonic this is supposed to mimic... Furthermore,

Re: [Mono-list] mono on ubuntu

2008-06-05 Thread Jonathan Pryor
On Tue, 2008-06-03 at 15:22 -0700, hobbitmage wrote: I have a binary that I'm running thru mono. i.e. /usr/local/bin/mono foo.exe it's running in a startup script. /etc/init.d/mono this script runs fine when run from the command line, but when I use a launcher on ubuntu I can't start

Re: [Mono-list] Announcing .NET CLI

2008-06-05 Thread Jonathan Pryor
On Wed, 2008-06-04 at 14:31 -0500, Schley Andrew Kutz wrote: I thought .NET needed a good command line parsing library so I ported the Apache Commons CLI. .NET CLI is available on SF at http://sf.net/projects/dotnetcli/ . For an alternate take on command-line parsing, might I suggest you

Re: [Mono-dev] Marshalling datatypes

2008-05-31 Thread Jonathan Pryor
On Sat, 2008-05-31 at 15:50 +0800, Euan MacInnes wrote: first is a parameter of a function that is a **byte[] array. A *byte[] array is more straightforward as that is a Marshal.Copy(), how to do a **byte[]? That's effectively a byte*** parameter. I think you'll have to marshal that as a `ref

Re: [Mono-list] Multithreaded output : bug or feature

2008-05-28 Thread Jonathan Pryor
On Thu, 2008-04-24 at 16:32 +0400, Yury Serdyuk wrote: I have tried the following program: ... The output which I got: ... [EMAIL PROTECTED] nqueen]$ mono MultiThreadedOutput.exe 3 Thread 0 start ...Thread 1 start ...Thread 2 start ...Thread 0 start ...Thread 0 start ...Thread 1 start

Re: [Mono-dev] Trivial Enumerable Optimizations

2008-05-09 Thread Jonathan Pryor
On Thu, 2008-05-08 at 15:36 -0400, Jonathan Pryor wrote: System.Core.Enumerable already has a set of obvious optimizations in which the IEnumerableT argument is checked to see if it's another interface and the implementation is switched based on the runtime type, e.g. A related optimization

Re: [Mono-dev] Trivial Enumerable Optimizations

2008-05-09 Thread Jonathan Pryor
On Fri, 2008-05-09 at 08:53 -0400, Avery Pennarun wrote: On 5/9/08, Jonathan Pryor [EMAIL PROTECTED] wrote: catch { // ignore; collection has int.MaxValue elements, // so count manually below. } [...] This will suffer an obvious

Re: [Mono-dev] Trivial Enumerable Optimizations

2008-05-09 Thread Jonathan Pryor
On Fri, 2008-05-09 at 11:27 -0400, Avery Pennarun wrote: On 5/9/08, Jonathan Pryor [EMAIL PROTECTED] wrote: If the developer asks for a count, we have an obligation to provide a count. Throwing an exception claiming You're a moron to ask about size on a collection this big should

Re: [Mono-dev] Trivial Enumerable Optimizations

2008-05-09 Thread Jonathan Pryor
On Fri, 2008-05-09 at 17:38 +0200, Robert Jordan wrote: Jonathan Pryor wrote: So is it possible to further optimize the LongCount() extension method? Perhaps something like this? public static long LongCountTSource (this IEnumerableTSource source) { // as before

Re: [Mono-dev] Trivial Enumerable Optimizations

2008-05-09 Thread Jonathan Pryor
On Fri, 2008-05-09 at 17:05 -0400, Miguel de Icaza wrote: The problem is that there is no such rule that states that c.Count will throw an exception if it has more than certain number of elements. Indeed. This is something that we should take to ECMA and attempt to standardize, as at some

Re: [Mono-dev] How To Convince Mono To Allocate Big Arrays

2008-05-08 Thread Jonathan Pryor
On Thu, 2008-05-08 at 10:39 -0300, Rodrigo Kumpera wrote: Why impose such a burden on mono embedders for such a specific case? There aren't many users that need to allocate an 8 Gb array. This year, yes. But 2-5 years from now when servers with 50GB of RAM are commonplace (and the Mono 2.x

Re: [Mono-dev] How To Convince Mono To Allocate Big Arrays

2008-05-08 Thread Jonathan Pryor
On Thu, 2008-05-08 at 08:45 -0300, Rodrigo Kumpera wrote: We want to keep changes to a minimum Understandable. and we want to keep default array size 32bits. This I still don't understand. The implication is that the only way to get 64-bit arrays on 64-bit platforms is to install your own

[Mono-dev] Trivial Enumerable Optimizations

2008-05-08 Thread Jonathan Pryor
copy) @@ -1,3 +1,8 @@ +2008-05-08 Jonathan Pryor [EMAIL PROTECTED] + + * Enumerable.cs: LongCount() can be optimized for arrays, and Reverse() can + be implemented in terms of IList w/o needing a temporary ListT copy. + 2008-03-31 Marek Safar [EMAIL PROTECTED] * Enumerable.cs: Use

Re: [Mono-list] Closing console application on Linux

2008-05-01 Thread Jonathan Pryor
On Thu, 2008-05-01 at 12:57 -0400, Steve Harp wrote: I’m writing a console application to run on Linux. The application will have a database connection open and may also read/write text files at any time. How do I ensure that connections and files are closed properly if someone stops the

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread Jonathan Pryor
On Mon, 2008-04-21 at 16:34 +0100, Alan McGovern wrote: For some reason, catching the unmanaged exception has the correct behaviour even though it could be just a side effect. Zoltan pointed out that unmanaged exceptions are not converted to exceptions in mono even though the windows

Re: [Mono-list] working with files

2008-04-18 Thread Jonathan Pryor
On Thu, 2008-04-17 at 21:07 -0400, Bismark Castilla Monzon wrote: Hi, i’m programming an application, and i need to work with fopen and fwrite , but i don't understand Official Documentation very well, i tried with google and nothing interesting, can somebody give me a clue? Do you need to

Re: [Mono-dev] PROBLEMS CALLING STRUCTURES UNMANAGED TO MANAGED AS PARAMETER USING MONO.

2008-04-12 Thread Jonathan Pryor
On Fri, 2008-04-11 at 19:01 -0500, Jose Castillo Reyes wrote: struct Request { char *CategoryID; char *Product_Code; char *Build_Code; char *Manufacturer_id; unsigned int Serial_Number; char *Software_Version; }; struct Request {

Re: [Mono-list] Using exported C++ classes in managed code

2008-04-08 Thread Jonathan Pryor
On Tue, 2008-04-08 at 12:47 +0200, Kornél Pál wrote: Hi, .NET Framework supports COM objects being marshaled as managed objects. By now Mono has very good COM interop support thanks to Jonathan Chambers. You should try it out: http://www.mono-project.com/COM_Interop Alas COM interop

Re: [Mono-dev] [Mono-list] Using monodoce for non-official mono project

2008-04-03 Thread Jonathan Pryor
On Thu, 2008-04-03 at 12:45 +0200, Manuel de la Pena wrote: I'm in a developing group that is planning to release an opensource API that we have developed. We are looking in to different ways of documenting the code. We have come across monodoc and monodocer. Is it a tool that can just be used

Re: [Mono-list] Using monodoce for non-official mono project

2008-04-03 Thread Jonathan Pryor
On Thu, 2008-04-03 at 12:45 +0200, Manuel de la Pena wrote: I'm in a developing group that is planning to release an opensource API that we have developed. We are looking in to different ways of documenting the code. We have come across monodoc and monodocer. Is it a tool that can just be used

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