Re: [Mono-devel-list] patents

2005-03-20 Thread Jonathan Pryor
On Sat, 2005-03-19 at 23:40 -0500, Jeffrey Knight wrote: Only Miguel or a Novell official can speak about Mono and patents. I probably I misinterpreted this: why isn't anyone free to speak about Mono and patents? Mono is GPL'd -- why would a Novell official be in a better position than

Re: [Mono-devel-list] How to determine free disk space?

2005-03-30 Thread Jonathan Pryor
On Tue, 2005-03-29 at 17:47 +0100, Alex Chudnovsky wrote: I am trying to convert Win32 specific code to Mono to determine free disk space available on a given drive. There does not appear to be a nice portable way to do it, and I am not too keen on spawning df to determine free space. Perhaps

Re: [Mono-devel-list] Mono on a multipocessor

2005-04-21 Thread Jonathan Pryor
On Wed, 2005-04-20 at 16:56 +0200, BRUNET Pierre-Marie - stagiaire wrote: Hi, I'm french student working on Mono for a University project. I wonder if Mono launchs a thread for each processor if a multithread C# program running over Mono. No. Mono will launch a thread for each

Re: [Mono-devel-list] Mono.Xml.MiniParser

2005-05-28 Thread Jonathan Pryor
On Sat, 2005-05-28 at 09:28 +0200, Matthijs ter Woord (meddochat) wrote: Is this the coding style used in the class libraries? or could this be changed? This coding style (having two members that differ only in case) is somewhat common in the class libraries. The primary difference is that

Re: [Mono-devel-list] Marshalling char**

2005-05-29 Thread Jonathan Pryor
On Sun, 2005-05-29 at 02:48 +0300, Hisham Mardam Bey wrote: I wanna try and marshal a char** that is returned in a struct. You can see the code here: http://pastebin.com/291223 I've tried using Copy and ReadIntPtr to no avail. I might be doing something wrong. I do not believe that

Re: [Mono-devel-list] Looking for Summer of Code Information

2005-06-01 Thread Jonathan Pryor
On Tue, 2005-05-31 at 22:05 -0400, Justin Berka wrote: 1. Ruby.NET - Just how hard is it to write a compiler. Also, what kind of existing tools would be used for this, and what would have to be written from scratch? In principal, it's not hard to write a compiler. You just need a lexer, a

Re: [Mono-devel-list] Preparing the release notes.

2005-06-08 Thread Jonathan Pryor
On Wed, 2005-06-08 at 08:39 -0400, Miguel de Icaza wrote: Am preparing the release notes for a new release of Mono, please send any important updates that should go into the release notes to me. Mono.Unix changes - Breaking Changes: - Removed types: MapAttribute, IncludeAttribute,

Re: [Mono-devel-list] Object Browser / Reflector in Mono

2005-06-12 Thread Jonathan Pryor
On Sun, 2005-06-12 at 11:22 -0400, Paul Betts wrote: I've been looking around, and I can't seem to find any application that acts like VS 2003/SharpDevelop's object browser. Depending on your definition of acts like, Type Reflector might work:

Re: [Mono-devel-list] [PATCH] Reworked unified Locale classes

2005-06-23 Thread Jonathan Pryor
On Thu, 2005-06-23 at 11:18 +0200, Kornél Pál wrote: private static ResourceManager GetResourceManager () { if (resources == null) lock (resourcesLock) { if (resources == null) resources = new GetTextResourceManager (typeof (Locale).Assembly.GetName ().Name, typeof

Re: [Mono-devel-list] EventLog and syslog

2005-06-29 Thread Jonathan Pryor
On Wed, 2005-06-29 at 12:32 +0400, Vorobiev Maksim wrote: Good day. To the discussion of Syscall.syslog. Why System.Diagnostic.EventLog was not implemented for Unixes on top of syslog? Because I never got that far, and nobody else felt it was important enough to provide a patch. :-) Plus,

RE: [Mono-devel-list] problems with Syscall.syslog

2005-06-29 Thread Jonathan Pryor
On Tue, 2005-06-28 at 16:18 +0400, Vorobiev Maksim wrote: Good day. But it still has a problem in map.c for function int Mono_Posix_FromSyslogFacility (int x, int *r). It checks for constants via -mask: search for first occurrence. The next code: if ((x Mono_Posix_SyslogFacility_LOG_USRE)

Re: [Mono-devel-list] What is MonoPosixHelper-0.dll?

2005-06-29 Thread Jonathan Pryor
On Wed, 2005-06-29 at 20:22 +0200, Kornél Pál wrote: Windows installer for Mono installs MonoPosixHelper-0.dll but it seems not to be used at all. Furthermore when I compile Mono on Windows I only get MonoPosixHelper.dll not MonoPosixHelper-0.dll. Could someone tell me what

Re: [Mono-devel-list] .export Directive in IL

2005-06-29 Thread Jonathan Pryor
On Wed, 2005-06-29 at 10:26 -0400, Jonathan S. Chambers wrote: Hello All, I know that mixed mode assemblies are not supported under Mono (at least in the managed/unmanaged C++ sense). There is an older article (I've listed the link below) that demonstrates how to call managed functions

RE: [Mono-devel-list] .export Directive in IL

2005-06-30 Thread Jonathan Pryor
On Wed, 2005-06-29 at 22:48 -0400, Jonathan S. Chambers wrote: Thanks for the answers. I'm just experimenting with methods to call managed code from unmanaged code without using COM interop, i.e. something that would work on both .Net and Mono. Any advice would be appreciated. Basic

Re: [Mono-devel-list] Limit Garbage Collection

2005-07-19 Thread Jonathan Pryor
On Tue, 2005-07-19 at 12:22 +0200, Cedric Le Dressay wrote: .Net is an incredible step in the interroperability of languages. Nearly all software developpements can use garbage collection. Unfortunately, some others cannot like game developpement. Typically, a game cannot be reasonnably

Re: [Mono-devel-list] Precise allocation / leaking vtables

2005-07-19 Thread Jonathan Pryor
On Tue, 2005-07-19 at 20:14 -0400, Ben Maurer wrote: Index: object.c === --- object.c(revision 47425) +++ object.c(working copy) snip/ -#ifdef HAVE_BOEHM_GC +#if defined (HAVE_BOEHM_GC) defined (NVER_LEAK_VTABLES)

Re: [Mono-devel-list] calli opcode

2005-07-22 Thread Jonathan Pryor
On Thu, 2005-07-21 at 22:26 -0600, Peter Dennis Bartok wrote: Jonathan, if you read through the DnD OLE code in the MWF win32 driver, you will see that I'm doing exactly that. This works because you're invoking a COM method, which has a well-defined ABI (stdcall calling convention, all

Re: [Mono-devel-list] Getting mono-tools to compile

2005-07-24 Thread Jonathan Pryor
On Sun, 2005-07-24 at 21:09 +0100, Paul wrote: I've downloading gtk-sharp from /trunk/sources on anon svn. Have I got it right that if I run the ./bootstrap file (and then make; make install) it should generate the code which correctly creates the /usr/lib/pkgconfig/gtk-sharp.pc file and the

[Mono-devel-list] Re: problems with Syscall.syslog fot mono-1.1.8.3

2005-07-28 Thread Jonathan Pryor
On Thu, 2005-07-28 at 13:37 +0400, Vorobiev Maksim wrote: Today I've upgraded mono version to 1.1.8.3 and found, that it has no fixes for syslog support. Not in sources, not in binaries. That version will contain these changes? Those changes were made to svn-trunk, not the 1.1.8 branch, so

Re: [Mono-devel-list] Graphics merge-in status

2005-08-04 Thread Jonathan Pryor
On Thu, 2005-08-04 at 00:06 -0700, Andrew Skiba wrote: I will create a directory under sys.drawing/test for this helper and will commit the helper as is. It needs few changes, however, to be usable for Mono. Today it checks TARGET_JVM to decide whether we are creating reference results on

Re: [Mono-dev] The Bleeding Edge of SuSE is not Mono-friendly

2005-08-24 Thread Jonathan Pryor
On Tue, 2005-08-23 at 08:32 -0400, Steven T. Hatton wrote: For example, it's not clear how to determine or control which libraries and assemblies are visible, or being used by the currently running Mono or MCS. Two flags control that: -r and -pkg. By default, only mscorlib.dll and

Re: [Mono-dev] COM Interop, or something like it

2005-08-25 Thread Jonathan Pryor
On Thu, 2005-08-25 at 16:27 -0400, Ring, Kevin wrote: In Microsoft’s implementation of .NET, it is possible to expose a class written in C# via a COM interface. This makes it possible (perhaps even easy!) to instantiate C# objects and call methods on them from, say, a native C++ application.

[Mono-dev] MonoPosixHelper and namespacing

2005-08-28 Thread Jonathan Pryor
Current programming practice is that library exports should have a common prefix, forming a namespace. Common examples abound in GLib (with a g_ prefix) and GTK+ (with a gtk_ prefix). libMonoPosixHelper.so in many cases disregards this, with exports like: create_z_stream

Re: [Mono-dev] Marshal Variable length structure Array in Mono

2005-09-05 Thread Jonathan Pryor
Quick question: does anybody know of a standard Win32, POSIX, or GLib/GTK/Gnome-related function that uses variable length structures? I'd like to use one as a canonical example in the Marshaling guide: http://www.mono-project.com/Interop_with_Native_Libraries More complete answer

Re: [Mono-dev] Marshal Variable length structure Array in Mono

2005-09-06 Thread Jonathan Pryor
On Tue, 2005-09-06 at 12:50 +0200, Robert Jordan wrote: Indeed, variable length != variable count. But the returned structures must be manually marshaled: http://www.pinvoke.net/default.aspx/winspool.EnumPrinters They're trying *way* too hard. This should work: struct

Re: [Mono-dev] (no subject)

2005-09-10 Thread Jonathan Pryor
On Thu, 2005-09-08 at 16:03 +0530, Sridhar Kulkarni wrote: Hi, I am having GetPathName method call in my C# code. I am using the same source file to compile both on windows and linux. This method calls some WIN32 APIs within it. This function also has linux specific code. As there is no

Re: [Mono-dev] (no subject)

2005-09-13 Thread Jonathan Pryor
On Tue, 2005-09-13 at 12:17 +0530, Sridhar Kulkarni wrote: If we have executable hello.exe created from a cs file, then to run the file we have to say mono hello.exe. I have several exe which needds to be executed to start my app. Is there a way that the executable runs just by saying

Re: [Mono-dev] questions regarding contributing

2005-09-20 Thread Jonathan Pryor
On Wed, 2005-09-14 at 10:30 -0700, Andy Waddell wrote: The first set of issues I ran into were pieces of the class library not yet in the Mono base, but in the Beta 2 version of .NET 2.0. In each case I’ve either worked around it in our code by substituting from the 1.0 Framework or gone into

Re: [Mono-dev] Event handler assigment possible bug?

2005-09-20 Thread Jonathan Pryor
On Mon, 2005-09-19 at 11:09 -0500, Sunny wrote: Anyway, the following code compiles OK with mono 1.1.9 on SuSE 9.3, but it fails to compile under .Net, and according the ECMA C# spec, possition 8.7.5. (Events), .Net behaviour is the right one, i.e. this code should fail to compile.

Re: [Mono-dev] What versions of Windows are supported by Mono?

2005-09-20 Thread Jonathan Pryor
On Tue, 2005-09-20 at 01:32 +0200, Kornél Pál wrote: Could someone tell me the versions of Windows that are supported by Mono? NT-based versions, so NT 4.0 (maybe, I'm not entirely sure), Windows 2000, Windows XP, and Windows Server 2003. Not supported is Windows 95, 98, and ME, since Mono uses

Re: [Mono-dev] Mono runtime performance

2005-09-20 Thread Jonathan Pryor
On Tue, 2005-09-20 at 14:09 -0400, Joe Shaw wrote: Is there a reason why all optimizations aren't on by default? I didn't see anything in the mono man page, but I suspect there has to be some tradeoff. There's a time tradeoff -- more optimizations requires more time to JIT the code, slowing

Re: [Mono-dev] Marshalling of strings

2005-09-20 Thread Jonathan Pryor
On Wed, 2005-09-21 at 00:16 +0100, Chris Seaton wrote: Hows marshalling of strings to native functions work in Mono and .NET in general? Implementation Defined comes to mind -- things differ between Mono and .NET. What does ANSI mean? I thought ANSI was a family of character sets? On Mono,

Re: [Mono-dev] Implicit Polymorphy Question

2005-09-22 Thread Jonathan Pryor
On Thu, 2005-09-22 at 23:26 +0200, Samuel Abels wrote: On Do, 2005-09-22 at 18:45 +0200, Robert Jordan wrote: You're looking for something like that (untested): [...] return d.DynamicInvoke (args); [...] Thanks, I did not know this method before. I now implemented this using a

Re: [Mono-dev] Mono.Unix - UnixDirectoryInfo.IsSymbolyicLinkquestion

2005-10-03 Thread Jonathan Pryor
On Tue, 2005-10-04 at 09:37 +1000, Paddy Joy wrote: Thanks for the background info and help, it all makes a lot more sense now. I'm using UnixSymbolicLinkInfo now and getting the correct results. So am I correct in saying that if you have a UnixDirectoryInfo object the IsSymbolicLink

Re: [Mono-dev] Building Mono on Windows is extremely slow

2005-10-06 Thread Jonathan Pryor
On Wed, 2005-10-05 at 13:32 +0200, Kornél Pál wrote: Building Mono on Windows is much slower than building it on Linux for example. The problem seems to be that our scripts use a lot of processes. Processes on Linux are lightweight but are heavyweight on Windows that results in delays because

Re: [Mono-dev] Win32 build broken

2005-10-17 Thread Jonathan Pryor
On Mon, 2005-10-17 at 13:37 +0200, Kornél Pál wrote: Creating library file: .libs/libMonoPosixHelper.dll.a .libs/signal.o: In function `Mono_Posix_Syscall_psignal': /mono/mono/support/signal.c:47: undefined reference to `_psignal' I think Mono_Posix_Syscall_psignal is not required on Win32

Re: [Mono-dev] Mono

2005-10-20 Thread Jonathan Pryor
On Wed, 2005-10-19 at 12:05 -0700, Zymmeral wrote: When will there be a C++ compiler for Mono? The Mono team isn't working on a C++ compiler, and likely never will. So the answer to your question depends on what features you want. If you want C++/CLI support for pure-IL assemblies, there will

Re: [Mono-dev] Totally baffed! multithread app totally different on two environments with MONO

2005-10-24 Thread Jonathan Pryor
On Mon, 2005-10-24 at 21:12 -0400, ted leslie wrote: mono does threading different depending on whether 2.4.X vs. 2.6.X kernel ?? The handling of threading changed between Linux 2.4 and 2.6 with the introduction of NPTL -- Native Posix Thread Libraries. 2.6 is far more compliant with the POSIX

[Mono-dev] Re: [Mono-list] Re: Mono.Unix Filename Marshaling

2005-10-26 Thread Jonathan Pryor
On Wed, 2005-10-26 at 08:08 +0200, Florian Weimer wrote: It seems that the UTF-8 decoder treats the byte sequence EF BF BF as invalid. Doesn't this mean that with your changes, it is encoded as 00EF 00BF 00BF on the Mono side? The UTF-8 decoder doesn't treat EF BF BF as

Re: [Mono-dev] Re: [Mono-list] Re: Mono.Unix Filename Marshaling

2005-10-26 Thread Jonathan Pryor
On Wed, 2005-10-26 at 19:25 +0200, Michal Moskal wrote: On 10/26/05, Jonathan Pryor [EMAIL PROTECTED] wrote: I'm hoping that this scenario is sufficiently rare that things will Just Work. If it isn't, I'll have to find a different escape character. How's U+0001 sound (control character

[Mono-dev] Mono.Unix Future Directions, Questions

2005-10-27 Thread Jonathan Pryor
Miguel noticed yesterday that Mono.Unix currently has over 270 [Obsolete] declarations. Things will be changing soon, so here is the what, why, and questions about possible future changes (see the end for questions under consideration -- feedback is appreciated). Mono.Unix was originally

Re: [Mono-dev] SIGSEGV in Cairo.CairoAPI:cairo_get/set_matrix()

2005-10-31 Thread Jonathan Pryor
On Mon, 2005-10-31 at 18:54 -0700, Peter Dennis Bartok wrote: Regarding use of ref/out/neither: I think use of ref or out is *required*. It seems that (most) cairo calls involving matrices expect a cairo_matrix_t* argument. As I understand it, this means that these That is correct, cairo

Re: [Mono-dev] To split or not to split Mono?

2005-11-03 Thread Jonathan Pryor
On Thu, 2005-11-03 at 15:49 -0500, Miguel de Icaza wrote: By keeping all of Mono in a single package (runtime, compilers, core libraries, GUI libraries, web libraries, database libraries and others) it is making our future maintenance of code more difficult. ... So am wondering whether

Re: [Mono-dev] Howto debug Mono and dev tools

2005-11-10 Thread Jonathan Pryor
On Thu, 2005-11-10 at 12:46 +0200, Christopher Bergström wrote: Quick questions 1) What are the recommended tools for debugging mod_mono/xsp/mono? If it's mono debugger or just recompile with --debug options I apologize for such an obvious question. I especially need to know for a server with

Re: [Mono-dev] VB ASP.NET

2005-12-14 Thread Jonathan Pryor
On Wed, 2005-12-14 at 11:21 +0100, Arnhoffer Károly wrote: Server Error in '/vb' Application Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. snip/ Should ASP.Mono work with VB or not? Last I

Re: [Mono-dev] DllNotFoundException and shared libraries

2005-12-15 Thread Jonathan Pryor
On Thu, 2005-12-15 at 12:33 +0530, Raja R Harinath wrote: But, do you have libfontinfo.so? Note the lack of the major number in the DllImport line. Unless you have reason to require the development package associated with a shared library, it's probably not a good idea to DllImport the

Re: [Mono-dev] serialization of structured data in ArrayList

2005-12-19 Thread Jonathan Pryor
On Mon, 2005-12-19 at 14:26 +0100, mirek wrote: 1. it is good to use xml serialization or binary? as i read the articles, the binary is faster, but maybe not so usefull when need to change the configuration file by my own. If it's not performance critical, I would suggest going with the more

Re: [Mono-dev] Replacement for Mono.Unix.UnixFile.TryReadLink

2006-01-11 Thread Jonathan Pryor
On Tue, 2006-01-10 at 05:47 -0700, Buderya Roshan wrote: In Mono 1.1.13 The class Mono.Unix.UnixFile is marked obsolete. UnixFile doesn't exist in 1.1.13. It was in 1.1.12. This class used to provide a static method TryReadLink to get the target of a symbolic link. Is the class

Re: [Mono-dev] gacutil problem

2006-01-11 Thread Jonathan Pryor
On Tue, 2006-01-10 at 10:35 -0500, Joshua Tauberer wrote: Something about mcs not using the GAC to find assemblies, but only looking at 'installed' packages with .pc files, or in /usr/lib/mono/1.0/. You could specify the full path, or use -L. Could we reevaluate exactly why we avoid using

Re: [Mono-dev] Replacement for Mono.Unix.UnixFile.TryReadLink

2006-01-11 Thread Jonathan Pryor
On Wed, 2006-01-11 at 17:25 +0100, Paolo Molaro wrote: On 01/11/06 Jonathan Pryor wrote: The behaviour of TryReadLink and UnixSymbolicLinkInfo.ContentsPath seems to be the same. Wanted to counter check if this is indeed the case. Those aren't direct equivalents

Re: [Mono-dev] Replacement for Mono.Unix.UnixFile.TryReadLink

2006-01-12 Thread Jonathan Pryor
On Thu, 2006-01-12 at 16:40 +0100, Paolo Molaro wrote: On 01/11/06 Jonathan Pryor wrote: // 1.1.12 Code: string target = UnixFile.TryReadLink (sym-link); // 1.1.13 Code: UnixSymbolicLinkInfo symlink = new UnixSymbolicLinkInfo (sym

Re: [Mono-dev] OS X Intel support

2006-01-18 Thread Jonathan Pryor
On Wed, 2006-01-18 at 20:31 +, Andy Norman wrote: On Thu Jan 5 17:57:26 EST 2006, Jonathan Pryor wrote: Mono has been ported to Intel Mac, in that the JIT will properly execute under Mac OS X on an Intel box. As such you could install mono on an x86 mac with little trouble. Does

Re: [Mono-dev] Building Mono on Linux/Alpha

2006-01-20 Thread Jonathan Pryor
On Fri, 2006-01-20 at 20:27 +0300, Sergey Tikhonov wrote: Well, it it really pity since it seem that even this unsupported interpretator does a lot of work and give chance other arches to try Mono. :) Ok, I will see if I could find what the problem is The problem is that it's impossible

Re: [Mono-dev] [PATCH]TraceEventType

2006-01-23 Thread Jonathan Pryor
On Sun, 2006-01-22 at 22:13 -0500, joel reed wrote: I'd like to implement System.Diagnostics.TraceSource if no one has already planned to do so. This is a 2.0 class. I've only submitted one bug fix previously to the mono project, so I thought I'd post the patch for TraceEventType, in the

Re: [Mono-dev] [PATCH]TraceEventType

2006-01-25 Thread Jonathan Pryor
On Tue, 2006-01-24 at 22:46 -0500, joel reed wrote: thanks Jon for the feedback, i've made all suggested changes and attached a patch below. (i just deleted comments for now till i figure out monodoc) That's much better. I look forward to seeing your future TraceSource patches. - Jon

Re: [Mono-dev] NUnit 2.2.6 Portability Bug

2006-01-27 Thread Jonathan Pryor
On Fri, 2006-01-27 at 12:25 -0800, Charlie Poole wrote: I have some code that can be modified to replace the functions I use, but before I re-invent the wheel, can anyone point to portable implementations of Windows PathCanonicalize and PathRelativePathTo? Better yet, does anyone want to

RE: SPAM-LOW: Re: [Mono-dev] NUnit 2.2.6 Portability Bug

2006-01-29 Thread Jonathan Pryor
On Sat, 2006-01-28 at 18:15 -0800, Charlie Poole wrote: Hi Jonathan, I'll write a test. :-) PathRelativePathTo: this variation on your PathUtils.RelativePath works for me (minimally tested): This looks too simple to work, but I'll try it. ;-) Attached is a better version, complete

Re: [Mono-dev] Reading and writing excel files

2006-02-01 Thread Jonathan Pryor
On Tue, 2006-01-31 at 10:24 +0100, ZABALA CALVO, IÑAKI wrote: I am trying to read and write Excel .xls files I have tried it with COM: Mono does not currently support COM interop, though Jonathan Chambers is attempting such functionality... If you want to write Excel files, you'll either need

Re: [Mono-dev] DriveInfo

2006-02-09 Thread Jonathan Pryor
On Thu, 2006-02-09 at 14:40 +1300, Thong Nguyen wrote: I notice that there is already a UnixDriveInfo. I'm implementing a System.IO.DriveInfo that currently just reflects on UnixDriveInfo. As a sanity check, you should make sure your DriveInfo members reflect the final .NET 2.0 DriveInfo

Re: [Mono-dev] Distributing an application with Mono

2006-02-13 Thread Jonathan Pryor
On Mon, 2006-02-13 at 14:14 +, Alex Chudnovsky wrote: Julien De Groote wrote: i would like to make a demo package of the software I am developing. I'd prefer for my Windows users not to do a full Mono install. I think Windows users would prefer to use .NET - so long as you do not

Re: [Mono-dev] Bug in System.Web.UI.WebControls.BoundColumn

2006-02-17 Thread Jonathan Pryor
On Thu, 2006-02-16 at 20:51 -0500, Chris Toshok wrote: This patch looks okay, except for the switch from 'df != ' to 'df.Length != 0'. I'd prefer the former (and in general I'd rather adapt whatever my thoughts are on the matter to what the original author wrote.) `df != ' may make more

[Mono-dev] Re: [Mono-list] Silly question (for documentation)

2006-03-06 Thread Jonathan Pryor
On Mon, 2006-03-06 at 03:53 -0600, Zac Bowling wrote: This is a silly question. Does anyone know of a good term or really good short name that sums up the difference between a compiler that uses reflection.emit like mcs does and one that uses a traditional object compile, link, and execute

Re: [Mono-dev] c# / c++ interop question

2006-03-10 Thread Jonathan Pryor
On Thu, 2006-03-09 at 15:10 -0800, J wrote: However, going from C++ to C#, I am using C++/CLI. Another approach would be to port the entire C++ library to C++/CLI with /clr:safe (i.e. no unmanaged code). The resulting assembly should run under Mono (and if it doesn't, makes a good test case

Re: [Mono-dev] C++ embedding

2006-03-21 Thread Jonathan Pryor
On Mon, 2006-03-20 at 18:02 +0100, Denis ERCHOFF wrote: Hi all, I am controlling some .Net class from C++ application. I would like to know if from the C++ context i can add a delegate like to a .Net property. I want to catch when a property's getter or a property's setter is called

Re: [Mono-dev] Embedding C

2006-03-21 Thread Jonathan Pryor
On Tue, 2006-03-21 at 14:01 -0800, Rusmin Susanto wrote: I followed the instruction above. But I always get this error: ./teste: error while loading shared libraries: libmono.so.0: cannot open shared object file: No such file or directory Where is your libmono.so.0 located? If it's not in

Re: [Mono-dev] Re: _wapi_handle_update_refs

2006-03-24 Thread Jonathan Pryor
On Fri, 2006-03-24 at 16:02 +0100, Jakub Cermak wrote: And a stupid (maybe) question? What is wapi? Windows API. For portability reasons, Mono uses Win32 APIs for I/O and related operations (semaphores, process creation, etc). You can find the Unix versions of these Win32 APIs in

Re: [Mono-dev] What would you like to see in Mono?

2006-03-29 Thread Jonathan Pryor
On Wed, 2006-03-29 at 11:33 +0100, Alex Chudnovsky wrote: Don't want to throw stones as its amazing what was achieved in Mono, but IMO, Microsoft's implementation of Garbage Collection is considerably better - not speed wise, but reclaiming memory that is no longer in use. This is because

Re: [Mono-dev] What would you like to see in Mono?

2006-03-29 Thread Jonathan Pryor
On Wed, 2006-03-29 at 13:02 +0300, Tomi Valkeinen wrote: - More support for dynamic languages. Perhaps there's an unsafe way (read: you have to know what you are doing) to unload types. Or perhaps a modified mcs could generate code for dynamic methods. Or something else I haven't thought

Re: [Mono-dev] Re: Mono-devel-list Digest, Vol 11, Issue 85

2006-03-31 Thread Jonathan Pryor
On Thu, 2006-03-30 at 22:55 -0800, Jason S wrote: What I would like to see, is a nice way of interoping from a native C ++ program into Mono. As you mention, Microsoft's solution is C++/CLI. There isn't likely to be C++/CLI support for Mono any time soon. However, Microsoft has another

Re: [Mono-dev] CreateFile() leaks memory?

2006-04-07 Thread Jonathan Pryor
On Fri, 2006-04-07 at 11:35 +0800, [EMAIL PROTECTED] wrote: I'm studying Mono. Today I read the code of CreateFile() function, I found that if the function forget to call g_free() to release the memory after conversion from utf16 to utf8. Right? Where are you seeing this? In

Re: [Mono-dev] safe way about Marshal.UnsafeAddrOfPinnedArrayElement

2006-04-18 Thread Jonathan Pryor
On Tue, 2006-04-18 at 12:27 +0800, GaoXianchao wrote: hi all, I'm wrapping epoll api on linux. To pass address of managed struct array to unmanaged code, I use Marshal.UnsafeAddrOfPinnedArrayElement . But the method is unsafe. Is there a safe way to do what the

Re: [Mono-dev] Patches. One exception raising and alot of xmldoc cleanups.

2006-04-23 Thread Jonathan Pryor
On Sun, 2006-04-23 at 08:26 -0400, Justin Dearing wrote: Ok I have a few patches here. The biggest one is for LdapCOnnection. First of all I updated all the exception xml comments like so: -exception LdapException Thrown if TLS cannot be started. If a exception cref=LdapExceptionThrown if

Re: [Mono-dev] Template and assignment operator in C#

2006-04-28 Thread Jonathan Pryor
On Thu, 2006-04-27 at 17:20 -0700, Rusmin Susanto wrote: 1. Is there any trick in C# similar to Expression Template in C++ to avoid pairwise evaluation? No yet. Expression Templates are possible in C++ because templates are a turing-complete sub-language within C++; C++ templates were never

Re: [Mono-dev] Problem with Console.In.Peek() [hungs]

2006-05-06 Thread Jonathan Pryor
On Sat, 2006-05-06 at 00:59 +0200, Manfred Braun wrote: I am new on the road to make some things on my Unix box [which is NetBSD 3.0/i386] and I started using some simple console programs. My problem is, that the method Console.In.Peek() hungs, if no input stream is provided and I just execute

Re: [Mono-dev] Re: How to get the assembly version?

2006-05-08 Thread Jonathan Pryor
On Thu, 2006-05-04 at 15:21 +0200, Ympostor wrote: Why? This question arised when developing *with* Mono, as stated at: http://www.mono-project.com/Mailing_Lists Apparently the word with is ambiguous. mono-devel-list is for developers developing mono itself, as can be seen from the Examples

Re: [Mono-dev] typeof(Byte[]).GetInterfacesMap

2006-05-08 Thread Jonathan Pryor
On Tue, 2006-05-02 at 17:54 -0500, Voigt, Benjamin wrote: Would someone please be so kind as to run the following unit test on Mono? A similar test would likely be this: using System; using System.Reflection; class GetInterfaceMap { public

Re: [Mono-dev] A question about MS Office and Mono.

2006-05-13 Thread Jonathan Pryor
On Fri, 2006-05-12 at 13:19 +0530, Manish Patil wrote: So I was wondering if Mono could be used to work with MS Office application on Windows or Mac. Not yet. (Jonathan Chambers, please correct me if I'm wrong. :-) Interacting with MS Office on Windows requires COM Interop support, which is

Re: [Mono-dev] Question, How to Migrate a .NET application with a third party dependencies

2006-05-14 Thread Jonathan Pryor
On Sat, 2006-05-13 at 20:23 -0500, Ettore Pelliccioni wrote: I am developing a C# application in VS .NET 2005, that uses OPOS hardware (bar readers and receipt printer/cash drawer). Actually, this application, dependends on Windows/COM (.dll) api that manages the OPOS hardware. COM Based

Re: [Mono-dev] Help needed with UnixDriveInfo

2006-05-24 Thread Jonathan Pryor
On Wed, 2006-05-24 at 10:56 +0200, Arnhoffer Károly wrote: I would like to try UnixDriveInfo but I can not know how to start. As I can see to construct a UnixDriveInfo object I have to give a mount point. How can I get the mount point part of a path? In general, you don't, since a mount point

Re: [Mono-dev] Serialization strategies for compatibility.

2006-06-05 Thread Jonathan Pryor
On Mon, 2006-06-05 at 00:42 -0400, Miguel de Icaza wrote: Now in .NET 1.1 SP-N I noticed that they introduced some changes. Some classes now implemented some new interfaces that were not present in .NET 1.1. My question is: what is the justification to add new implemented interfaces to

Re: [Mono-dev] Performance of Invoke

2006-06-14 Thread Jonathan Pryor
I don't think that design is very good, for a number of reasons: - Performance will suck (due to reflection) - It's highly magical (due to reflection) - Documentation will likely be problematic (due to magic) A cleaner, faster, and more easily documented version would be this (untested):

Re: [Mono-dev] .Net TCP/IP remoting with unmanaged C++ endpoint?

2006-06-29 Thread Jonathan Pryor
On Wed, 2006-06-28 at 12:47 +0200, Marek Habersack wrote: I've just been asked a question whether it would be possible to create a TCP/IP{ (native .NET binary protocol) connection between an unmanaged server written in C++ and a managed client. Your subject says TCP/IP remoting, while the

Re: [Mono-dev] Dllimporting Fortran API in C#

2006-07-14 Thread Jonathan Pryor
This message really belongs on mono-list, but I'll answer it here... On Fri, 2006-07-14 at 11:51 +0530, Sunil Venkateswara wrote: I am exporting a function in fortran...[and] to import the same fortran code by DLLIMPORT, using the following code ( added a write call and removed module

Re: [Mono-dev] Problems with gtk# on a mandriva system.

2006-07-24 Thread Jonathan Pryor
On Sun, 2006-07-23 at 23:27 +1000, Peter Nunn wrote: I've just tried to install mono on a mandriva system and so far most of it seems to be working, but.. I can't get gtk# working. If I do mcs SimpleApp.cs -pkg:gtk-sharp You want -pkg:gtk-sharp-2.0. gtk-sharp is Gtk# 1.0, which is

Re: [Mono-dev] (no subject)

2006-08-07 Thread Jonathan Pryor
On Mon, 2006-08-07 at 18:20 -0500, [EMAIL PROTECTED] wrote: Is there any work being done on System.Collections.ObjectModel? Work _has_ been done, with the following classes already in svn: System.Collections.ObjectModel.Collection System.Collections.ObjectModel.KeyedCollection

Re: [Mono-dev] Fwd: [Mono-patches] r63710 - in trunk/mcs/class/System.Web: System.Web.UI.WebControls Test/System.Web.UI.WebControls

2006-08-14 Thread Jonathan Pryor
On Mon, 2006-08-14 at 13:03 -0400, Miguel de Icaza wrote: Is saving files in utf-8 without BOM possible in general western editors land? If yes I like the idea. If not then maybe it is not a good solution for us (yeah, not using non-ASCII letters is the most pessimistic option). Emacs

[Mono-dev] Announce: Mono.Fuse (+ Required Mono.Posix Changes)

2006-08-29 Thread Jonathan Pryor
Mono.Fuse is a binding for the FUSE library, permitting user-space file systems to be written in C#. Why? === I read Robert Love's announcement of beaglefs, a FUSE program that exposes Beagle searches as a filesystem. My first thought: Why wasn't that done in C# (considering that the rest of

Re: [Mono-dev] Mono 1.1.17 has been released.

2006-08-30 Thread Jonathan Pryor
On Wed, 2006-08-30 at 10:20 +0100, Ben O'Steen wrote: when i am talking in a browser i am talking about stuff that you can't handle with asp.net, like a full fledged arcade game (to take it to an extreme), a video/audio playing client, the power to properly sync video and audio, integrate

Re: [Mono-dev] [Mono-list] Announce: Mono.Fuse (+ Required Mono.Posix Changes)

2006-08-30 Thread Jonathan Pryor
On Tue, 2006-08-29 at 23:12 -0700, Valient Gough wrote: I've responded separately to Jon because I find his comments inflammatory. The only inflammatory bit was saying that I didn't like the SULF API. Which is about as inflammatory as saying Java collections suck (no language integration like

Re: [Mono-dev] Announce: Mono.Fuse (+ Required Mono.Posix Changes)

2006-08-30 Thread Jonathan Pryor
On Wed, 2006-08-30 at 18:07 +0200, Paolo Molaro wrote: The biggest problem with the mono module is that no headers are installed, making it difficult to make use of libMonoPosixHelper.so. This is for a good reason. libMonoPosixHelper.so is an internal implementation detail, it is not a

Re: [Mono-dev] Announce: Mono.Fuse (+ Required Mono.Posix Changes)

2006-08-31 Thread Jonathan Pryor
On Thu, 2006-08-31 at 07:27 +0200, pablosantosluac wrote: So, let's say I want to develop a filesystem to be integrated with our software: should I use SULF or should I wait for Mono.Fuse? SULF is dead (if I'm interpreting Valient Gough's comments correctly). It's been replaced by fusewrapper:

Re: [Mono-dev] Patches

2006-08-31 Thread Jonathan Pryor
On Thu, 2006-08-31 at 10:09 +0100, Paul wrote: Currently, I have patches for... boo ikvm monodebugger monodevelop monodoc xsp I've attached them all to this email - they're not huge in themselves, but they do change where packages go - and go correctly! Why the use of $libdir

Re: [Mono-dev] Announce: Mono.Fuse (+ Required Mono.Posix Changes)

2006-08-31 Thread Jonathan Pryor
On Thu, 2006-08-31 at 06:43 -0400, Jonathan Pryor wrote: On Thu, 2006-08-31 at 07:27 +0200, pablosantosluac wrote: So, let's say I want to develop a filesystem to be integrated with our software: should I use SULF or should I wait for Mono.Fuse? ... So you basically have four choices: 1

Re: [Mono-dev] Announce: Mono.Fuse (+ Required Mono.Posix Changes)

2006-08-31 Thread Jonathan Pryor
On Thu, 2006-08-31 at 17:36 -0400, Miguel de Icaza wrote: 4. Wait for Mono.Fuse. (Actually, you'd be waiting for the Mono.Fuse dependencies within Mono.Posix to be committed, then either use svn-HEAD or wait for 1.1.18 to use a separate Mono.Fuse tarball. Furthermore, I have no idea when

[Mono-dev] Announce: Mono.Fuse 0.2.0 (+ Required mcs mono patches)

2006-09-01 Thread Jonathan Pryor
Mono.Fuse is a binding for the FUSE library, permitting user-space file systems to be written in C#. Why? === I read Robert Love's announcement of beaglefs, a FUSE program that exposes Beagle searches as a filesystem. My first thought: Why wasn't that done in C# (considering that the rest of

Re: [Mono-dev] [Mono-list] Mono Winforms Team: we are hiring.

2006-09-07 Thread Jonathan Pryor
On Tue, 2006-09-05 at 11:46 +0300, sasha wrote: * C# and C knowledge are a must. Do you use simple C or C++ ? C. All C code is within a support library invoked by C# through P/Invoke, and thus needs to export a C ABI. (C++ with ``extern C'' could be used as well, but C is the currently

[Mono-dev] Announce: Mono.Fuse 0.3.0

2006-09-11 Thread Jonathan Pryor
Mono.Fuse is a C# binding for the FUSE library. This release features a near complete change in the public FileSystem API; a complete API change list is available at: http://www.jprl.com/Blog/archive/development/mono/2006/Sep-11.html Hopefully this will be the last major API change, though I

Re: [Mono-dev] [Mono-list] Announce: Mono.Fuse 0.2.0 (+ Required mcs mono patches)

2006-09-11 Thread Jonathan Pryor
On Sun, 2006-09-10 at 21:07 -0700, Valient Gough wrote: (1) The reason it is harder to use the path-based API for a complex filesystem has nothing to do with lines of code. The problem is due to the data model, what I tried to explain before - with the path based API, libfuse is remapping the

Re: [Mono-dev] Announce: Mono.Fuse 0.3.0

2006-09-12 Thread Jonathan Pryor
On Tue, 2006-09-12 at 21:31 +0200, pablosantosluac wrote: Hey, next step could be having the same on Windows? Do you imagine it? File system kernel modules written in C# You're more than welcome to try. :-) The problem is that FUSE is a kernal module + library pair. To do the same on

Re: [Mono-dev] msvc patch for eglib

2006-09-14 Thread Jonathan Pryor
On Thu, 2006-09-14 at 13:32 -0400, Michael Jerris wrote: * vasprintf: please attach the license that the implementation in freedts uses, if it is not MIT X11 we can not use it. The header from the file in freetds (and a few other replacement functions that may be interesting

  1   2   3   4   5   >