Re: [Mono-dev] Emedding mono: System.Windows.Form trouble

2011-03-03 Thread Robert Jordan
On 03.03.2011 11:09, Guy Sherman wrote: The program then continues on to process the main event loop of the C++ side of things. It seems like you don't start WinForms' event loop machinery at all. This is done by invoking Application.Run(Form) or one of its overloads. Of course, this won't fly

Re: [Mono-dev] Mono-2.8.2 Cross Compiled for ARM processor (Interesting issue with Generics)

2011-03-01 Thread Robert Jordan
On 28.02.2011 23:30, Sean Hubbell wrote: Given the following example, could someone confirm if this is an issue or just my misunderstanding of the methods? The below is Mono 2.8.2 Cross Compiled for an ARM processor. The issue comes up when I would like to do a couple of things with generics:

Re: [Mono-dev] creating excel files

2011-02-28 Thread Robert Jordan
On 28.02.2011 14:55, eng. Ahmed Youssef wrote: But it doesn't behave this way under .net. It doesn't dispose the stream. Please file a bug at http://mono-project.com/Bugs. MS.NET is actually only closing part streams (as documented), while Mono is closing the underlying package stream as well,

Re: [Mono-dev] Third Party dll error, member function returns null, but works in .NET

2011-02-18 Thread Robert Jordan
On 17.02.2011 21:14, and...@cogmation.com wrote: Hi, I have been fighting this issue for a couple weeks now. I have a small test program which works in .net, but when running in mono, i get a System.NullReferenceException. I have attached my test program, including the necessary third

Re: [Mono-dev] Third Party dll error, member function returns null, but works in .NET

2011-02-18 Thread Robert Jordan
On 18.02.2011 11:29, Robert Jordan wrote: On 17.02.2011 21:14, and...@cogmation.com wrote: Hi, I have been fighting this issue for a couple weeks now. I have a small test program which works in .net, but when running in mono, i get a System.NullReferenceException. I have attached my test

Re: [Mono-dev] Unable to build Mono 2.10 RC4 on x86_64

2011-02-12 Thread Robert Jordan
On 12.02.2011 17:07, Paul F. Johnson wrote: Hi, I'm trying to build the latest release candidate for mono on my 64 bit box and it keeps moaning about an assert failure make[8]: Entering directory `/home/paul/rpmbuild/BUILD/mono-2.10/mcs/tools/gacutil' MCS [basic] gacutil.exe

Re: [Mono-dev] Issues with StructureToPtr- and PtrToStructure-wrapper building

2011-02-08 Thread Robert Jordan
On 08.02.2011 10:51, Martin Däumler wrote: When trying to adopt the pre-compilation routine to the mscorlib, some classes cause a SIGABRT. For example, 'System.MonoEnumInfo', 'System.Configuration.Assemblies.AssemblyHash' or 'ProcessMessageRes' do not work. The stacktrace is always as follows:

Re: [Mono-dev] Issues with StructureToPtr- and PtrToStructure-wrapper building

2011-02-08 Thread Robert Jordan
On 08.02.2011 11:31, Robert Jordan wrote: On 08.02.2011 10:51, Martin Däumler wrote: When trying to adopt the pre-compilation routine to the mscorlib, some classes cause a SIGABRT. For example, 'System.MonoEnumInfo', 'System.Configuration.Assemblies.AssemblyHash' or 'ProcessMessageRes' do

Re: [Mono-dev] Issues with StructureToPtr- and PtrToStructure-wrapper building

2011-02-08 Thread Robert Jordan
Martin, On 08.02.2011 15:30, Martin Däumler wrote: On 08.02.11 11:31, Robert Jordan wrote: On 08.02.2011 10:51, Martin Däumler wrote: [...] So, my question is: Which classes and structs allow the generation of StructureToPtr- and PtrToStructure-wrappers at all and how to determine

Re: [Mono-dev] StreamReader.ReadToEnd crashes sometimes

2011-02-04 Thread Robert Jordan
On 04.02.2011 14:06, cs_eps wrote: Hallo experts! Once in a while StreamReader.ReadToEnd() crashes with the following stack trace: Mprotect failed at 0x4621e000 (length 20480) with errno 12 Stacktrace: at (wrapper managed-to-native) object.__icall_wrapper_mono_array_new_specific

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

2011-02-03 Thread Robert Jordan
Marek, On 03.02.2011 13:48, Marek Safar wrote: On top of that mcs.exe is now .net 4 application which means you need to install mono including .net 4.0 support to be able to compile any C# program. What's the lowest Mono version that can be used to bootstrap the current git version? Robert

Re: [Mono-dev] Alignment issue when interoperate with native code

2011-01-30 Thread Robert Jordan
Christian, On 30.01.2011 21:56, Christian Krause wrote: It would be great if someone could confirm whether my findings are correct. ;-) Thank you very much in advance! Your findings are correct :) Mono is aligning its structs and classes using GCC's __alignof__ builtin which returns optimal

Re: [Mono-dev] Patch to HashSet (System.Core) to enable serialization

2011-01-28 Thread Robert Jordan
On 28.01.2011 14:04, Nicklas Overgaard wrote: Hi everyone, I'm kind of stuck with adding support for this. After looking at the .net binary serialization of their HashSet via a hex editor, it seems that they only store: Version Comparer Capacity Elements Now,

Re: [Mono-dev] Exception in runtime-invoke Wrapper

2011-01-27 Thread Robert Jordan
Hi Martin, On 27.01.2011 18:15, Martin Däumler wrote: Hello Robert, thank you for your answer! On 24.01.2011 18:08, Robert Jordan wrote: You may want to look at how Mono is handling those wrappers with its full-AOT subsystem. Actually, my pre-compilation code bases on the Full-AOT code

Re: [Mono-dev] Unit testing an assembly: Makefile, std test suite, and reviewing.

2011-01-26 Thread Robert Jordan
Hi, On 26.01.2011 14:10, Antoine Cailliau wrote: Hi all, I implemented System.ComponentModel.DataAnnotations. RegularExpressionAttribute. And I wrote some unit tests to check if it works. I've 3 questions for you. First, my tests are not compiled, nor run. Where should I add a reference

Re: [Mono-dev] Finalizers in CriticalHandle

2011-01-24 Thread Robert Jordan
On 24.01.2011 11:11, Dick Porter wrote: On Sat, 2011-01-22 at 00:09 -0500, Gonzalo Paniagua Javier wrote: I think a more correct patch would be the one attached. Avoids having 'if (Invalid) return;' followed by 'if (!Invalid)...'. Sure. I just wanted to highlight the obviousness of the

Re: [Mono-dev] Exception in runtime-invoke Wrapper

2011-01-24 Thread Robert Jordan
On 24.01.2011 16:57, Martin Däumler wrote: But now I am not sure if these methods ever need a runtime-invoke wrapper. So my question is: Which methods might ever need a runtime-invoke wrapper? Or, what does a runtime-invoke wrapper exactly do? Runtime-invoke wrappers are used for late-bound

Re: [Mono-dev] Patch to HashSet (System.Core) to enable serialization

2011-01-21 Thread Robert Jordan
Hi Nicklas, On 21.01.2011 10:35, Nicklas Overgaard wrote: Hi, Attached is a patch that makes the HashSet class serializable. Included are unittests to check the functionality. Thanks for the patch. There are some issues with it, though: 1) it's not allowed to expose public members as you do

Re: [Mono-dev] Trying to find source for DispatcherObject.cs

2011-01-13 Thread Robert Jordan
On 12.01.2011 23:35, Brad Cunningham wrote: I am seeing a strange error in the DispatcherObject in 2.8.1 and I am having trouble finding the source code to confirm the error. For those interested my issue is this: I can confirm that my object is being constructed on the same thread that the

Re: [Mono-dev] Urgent: need more help with Git :(

2011-01-07 Thread Robert Jordan
On 07.01.2011 20:51, Stifu wrote: I think I messed up. Like, badly. See this: https://github.com/mono/mono/commit/22c53124ae437b2e7311f3beabd9de22d83b15db I don't know what this merge is about (I'm its author), but it looks bad to me. It's probably this situation:

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

2011-01-05 Thread Robert Jordan
On 05.01.2011 15:25, mike wrote: Anybody else see this while using P/Invoke under mono? They do not even relate, so no one else will see this ;) Please explain what you're trying to do. Robert ___ Mono-devel-list mailing list

Re: [Mono-dev] The assembly mscorlib.dll was not found or could not be loaded.

2010-12-27 Thread Robert Jordan
On 27.12.2010 21:02, CodeSlinger wrote: 1. I did the following to build mono on my RHEL45 system into its own directory - ./configure --prefix=/usr/mono --with-libgdiplus=installed --enable-minimal=com,simd --with-moonlight=no Don't use --enable-minimal as it may lead to a runtime that's

Re: [Mono-dev] How can I build a minimal mono runtime system?

2010-12-21 Thread Robert Jordan
On 21.12.2010 14:43, CodeSlinger wrote: I have to respectfully disagree that being able to remove major subsystems that one does not need at all is fluff - major components such as the compilers, the GUI and ALL of the web components instead of just moonlight. Some of the current

Re: [Mono-dev] VS2010 remote debugging?

2010-12-21 Thread Robert Jordan
On 21.12.2010 04:08, CodeSlinger wrote: Since VS2010 supports remote debugging, is there a Linux debug kernel that can be contacted by VS2010 to allow full remote debugging from VS201 on WIn7 x64 to Linux? I know there are the mono tools that do this from VS2010 to Linux but I'm not sure if

Re: [Mono-dev] How can I build a minimal mono runtime system?

2010-12-20 Thread Robert Jordan
On 20.12.2010 17:27, CodeSlinger wrote: Thanks for the reply Robert. I was not able to make install mono until I added --with-libgdiplus=no to the configure options since I could not make libgdiplus since I did not have the prereqs and did not need system.drawing. The reason we tried that

Re: [Mono-dev] How can I build a minimal mono runtime system?

2010-12-19 Thread Robert Jordan
On 18.12.2010 20:12, CodeSlinger wrote: Sorry for cross posting but I think I should have posted this in the dev forum in the first place. I'm a .NET Windows guy and not a guru on Linux but with Justin Malcom's help I have the latest 2.8.1 mono installed on an older RHEL45 dev system and it

Re: [Mono-dev] Managing multipage tiff

2010-12-16 Thread Robert Jordan
On 16.12.2010 16:55, APS wrote: There's another way to manage multipaged tiff with mono without these methods? You could emit distinct pages and concat them with 'tiffcp'. This tool is usually part of the libtiff-tools package. Robert ___

Re: [Mono-dev] Embedding Mono - NULL return value in C#

2010-12-15 Thread Robert Jordan
On 15.12.2010 09:51, marcus julius wrote: Hi, I call a c++ function from C# using mono. For instance, [MethodImplAttribute(MethodImplOptions.InternalCall)] extern internal static Object get_ai_behavior_object(int id); When the function returns a NULL object, there is a

Re: [Mono-dev] Mono Service crashs

2010-12-14 Thread Robert Jordan
On 14.12.2010 16:16, Chakotey STME wrote: Hello Community, I have a problem with a mono-service. I have a mono-service in which I host a WCF-Service. I start the software with mono-service2 and it works fine. After a while (I can't say when exactly - sometimes after 1 hour, sometimes after

Re: [Mono-dev] Validate xml file with schema file

2010-11-29 Thread Robert Jordan
On 29.11.2010 10:55, Chakotey STME wrote: Hi, I have a problem with this code under mono 2.6: Dim xsdMarkup As XDocument = XDocument.Load(/home/stefan/xml/PluginConfigSchema.xsd) Dim schemas As XmlSchemaSet = New XmlSchemaSet() schemas.Add(,

Re: [Mono-dev] [PATCH]

2010-11-26 Thread Robert Jordan
On 26.11.2010 13:42, Rui Craveiro wrote: Hi, I am submitting a patch that contains the methods that are missing from the System.Xml.XmlConvert class. I have separated the patch into two files. classes.patch contains the changes to XmlConvert.cs and a small change I needed to do to

Re: [Mono-dev] Problem with FileSystemWatcher

2010-11-17 Thread Robert Jordan
On 17.11.2010 14:45, Chakotey STME wrote: If I execute this programm under windows and .net and make a change in the file, FileSystemWatcher get me 2 events. It works perfect. How do you change the file? Robert ___ Mono-devel-list mailing list

Re: [Mono-dev] Problem with FileSystemWatcher

2010-11-17 Thread Robert Jordan
On 17.11.2010 14:52, Chakotey STME wrote: I use the editor vi. Then I delete a line or insert a cr. -- the result is the same could it be a problem with the editor? Yes. The file is probably rewritten line-by-line. Robert ___ Mono-devel-list

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

2010-11-12 Thread Robert Jordan
On 12.11.2010 19:06, Arne Claassen wrote: I can try that. But more importantly, I'd like to learn more about about semaphore usage. Their usage has been faded out in 2.8. I'm just wildly speculating, but i assume it sets up a new one for IPC when an application gets compiled into a new

Re: [Mono-dev] Bug: Console output redirection doesn't work in mono

2010-11-07 Thread Robert Jordan
On 07.11.2010 19:04, Quandary wrote: For reproduction example program, see my C# post here: http://stackoverflow.com/questions/4107683/controling-cmd-exe-from-winforms/4118494#4118494 Note that I have replaced cmd.exe with /usr/bin/gnome-terminal and /usr/bin/bash but it doesn't work as in

Re: [Mono-dev] Mono in WinPE - need minimal installation.

2010-11-02 Thread Robert Jordan
On 02.11.2010 03:23, greenaj wrote: I would like to use Mono 2.8 under WinPE for customized Windows installations. MS .NET will not install in WinPE. I am looking for a best practices way of creating a minimal set of Mono DLL's and runtime libraries for copy into WinPE for to run an

Re: [Mono-dev] Mono in WinPE - need minimal installation.

2010-11-02 Thread Robert Jordan
On 02.11.2010 19:18, greenaj wrote: The mkbundle'd files are rather beefy, so we wanted to save on download size. We are hoping to manually create a minimal Mono runtime environment, tailored for what we need. A trimmed down runtime would be at least as large as a bundle. You'd only save

Re: [Mono-dev] Process problem

2010-10-28 Thread Robert Jordan
On 28.10.2010 09:58, Charles Esterbrook wrote: Thanks, Stefan. So our diffs are at least: arch vs gentoo, x86 vs amd64 and 32-bit vs 64-bit.I don't know if you downloaded the source ball and built from that or did something else, although I doubt that will matter for this. Do you have a

Re: [Mono-dev] Unable to work with Configuration files

2010-10-27 Thread Robert Jordan
On 27.10.2010 14:51, vinay_rk wrote: So it makes it more mysterious that the stack trace goes through WindowsIdentity.Impersonate(). All I' am calling in my code is ConfigurationManager.GetSection(NameOfCUstomSection). The rest is supposed to be happenening within the framework (In this case

Re: [Mono-dev] Problem running mkbundle using cygwin/windows

2010-10-11 Thread Robert Jordan
Hey, On 11.10.2010 18:43, Patrick Kowalzick wrote: Dear List, I get an error running mkbundle using cygwin/windows. I installed mono-2.8, cygwin 1.7 (gcc-mingw, mingw-zlib) and set up the paths in my .bashrc. A test run looks like: ... temp.c: In function `main': temp.c:170: warning:

Re: [Mono-dev] mono.simd

2010-09-09 Thread Robert Jordan
Hi Rodrigo, On 07.09.2010 02:32, Rodrigo Kumpera wrote: Robert, can you commit your patch after you state the license of it? Either via email on MDL or on the commit message. This patch is contributed under the MIT license I don't have push access to the main repository, so please

Re: [Mono-dev] Method not found: 'System.Data.Common.DbConnection.EnlistTransaction' in System.Data Version 4.0.0.0

2010-09-02 Thread Robert Jordan
On 02.09.2010 13:09, Tomi wrote: I have tried to do this by myself, but I can't get it to work. The problem is probably in DbConnection.cs class (http://github.com/mono/mono/blob/master/mcs/class/System.Data/System.Data.Common/DbConnection.cs) because EnlistTransaction method (among others)

Re: [Mono-dev] mono.simd

2010-08-23 Thread Robert Jordan
On 23.08.2010 13:16, Robert Jordan wrote: On 23.08.2010 04:53, Jerry Maine - KF5ADY wrote: I found a discrepency in Mono.Simd.SimdRuntime.AccelMode and it is equivalent access by reflection. I believe this is a bug. Attached is a test for this. I believe there are more cases

Re: [Mono-dev] mono.simd

2010-08-23 Thread Robert Jordan
On 23.08.2010 19:24, Jerry Maine wrote: Would the c# portion of the patch work on MS .Net? Dammit! I thought the icall would be ignored by MS.NET because I took care of not invoking it in this case. But icalls are not allowed in assemblies != mscorlib under MS.NET. Unless I'm misguided, the

Re: [Mono-dev] mono.simd

2010-08-23 Thread Robert Jordan
On 23.08.2010 23:13, Rodrigo Kumpera wrote: I think it's easier to catch the security exception under MS since its accell mode is None anyway. I had to move icall's call site outside the .cctor and mark the call site's method as non-inlineable to make this work. Thanks for the hint.

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Robert Jordan
Hey, I believe this is already fixed in trunk. It was a mismatch between the 2.0 and 4.0 System.Configuration.dll that were loaded together into the same appdomain. This means that ServicesSection defined in these assemblies were actually incompatible to each other. Robert On 18.08.2010 13:52,

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Robert Jordan
Thomas Sent: 18 August 2010 15:42 To: Robert Jordan; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Strange Casting bug in .net 4 profile There are some similar looking bugs on bugzilla but it is still happening in trunk now. I just deleted /opt/mono ran: make clean git pull

Re: [Mono-dev] reloading mono domain or assemblies

2010-08-13 Thread Robert Jordan
On 13.08.2010 15:10, marcus julius wrote: Did I make a mistake and/or is there a way to do this? Once an assembly has been JITed (which basically means that one of its methods was invoked), there is no way to change it. There are 2 ways to reload an assembly: 1) change its assembly name and

Re: [Mono-dev] reloading mono domain or assemblies

2010-08-13 Thread Robert Jordan
On 13.08.2010 15:39, marcus julius wrote: On 13.08.2010 15:10, marcus julius wrote: Did I make a mistake and/or is there a way to do this? There are 2 ways to reload an assembly: 2) Use app domains which can be unloaded together with their assemblies by design. Thanks for the quick reply.

Re: [Mono-dev] How to use the new RHEL_5 for CentOS 5.5

2010-08-12 Thread Robert Jordan
On 12.08.2010 14:44, xen wrote: Does mono embedding work with valgrind? when I valgrind the embedded exe, it reports massive errors. It does, but you need mono's valgrind suppression file: http://github.com/mono/mono/blob/master/data/mono.supp Robert

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

2010-08-12 Thread Robert Jordan
On 12.08.2010 16:49, Omar Siam wrote: What am I missing? How do I compile so libs to be mono friendly? Your post is missing a sample :) Post the p/invoke and structure defs of both sides (managed and unmanaged). Robert ___ Mono-devel-list mailing

Re: [Mono-dev] mono_jit_init fails when called from a Qt QThread

2010-08-10 Thread Robert Jordan
Hey, On 10.08.2010 22:00, Frank Fuchs wrote: Hi, I think I have a rather special problem here. I have a Qt C++ application with an embedded mono jit. Everything works nicely so far. However, I recently tried to start the Jit from a Qthread (in order to have an unblocked GUI during the C#

Re: [Mono-dev] mono-test-suite fails with pid/tid assert

2010-08-06 Thread Robert Jordan
On 06.08.2010 12:40, Alexander Stohr wrote: problem: right now i am using the daily snapshot of mono dated 2010-08-02 in a custom bitbake setup (made this work on my own) for cross compilation using this set of switches: EXTRA_OECONF_arm += --disable-mcs-build --with-mcs-docs=no

Re: [Mono-dev] How to use the new RHEL_5 for CentOS 5.5

2010-08-04 Thread Robert Jordan
On 04.08.2010 15:30, xen wrote: bump for mono 2.6.xx repo for CentOS 5 also is there a better way to do mono embedded then this? mono_thread_attach(monoDomain); gpointer monoReturns[4]; MonoString* locKey = mono_string_new (monoDomain, key); monoReturns [0] =locKey; monoReturns [1]

Re: [Mono-dev] How to use the new RHEL_5 for CentOS 5.5

2010-08-04 Thread Robert Jordan
On 04.08.2010 16:27, xen wrote: this is what I have in the C# public void onStatusChange(ref string key, double[] times, ref string status) { updateDaltaStatus(Helper.SecurityStatus, key, times, status); } however I do see a slow memleak when I run for a long time (I don't have this

Re: [Mono-dev] How to use the new RHEL_5 for CentOS 5.5

2010-08-04 Thread Robert Jordan
On 04.08.2010 18:29, xen wrote: The mem on my box will go from 13m to 15m This is not unusual given that you're allocating (at least) 40 million strings and 10 million arrays in a row. It's probably the usual heap fragmentation. Robert ___

Re: [Mono-dev] How to use the new RHEL_5 for CentOS 5.5

2010-08-04 Thread Robert Jordan
On 04.08.2010 19:55, xen wrote: On the mono embedding page it there is a new method mono_method_get_unmanaged_thunk, is there a sample for using this? http://github.com/mono/mono/blob/master/mono/metadata/object.c#L2708 Robert ___

Re: [Mono-dev] ASP.NET MVC 3 Preview

2010-08-03 Thread Robert Jordan
On 03.08.2010 18:25, Tomi wrote: Hi folks, I wanted to try out preview version of ASP.NET MVC 3 on trunk version of mono, so I downloaded it from git (mono, xsp, mod_mono). Then I removed [MonoTODO] attribute on line 806 (IsFullyTrusted property) in Assembly.cs

Re: [Mono-dev] CodeDomProvider.CreateProvider fails on Windows

2010-08-02 Thread Robert Jordan
On 02.08.2010 12:13, Frank Fuchs wrote: No this does not seem to be the cause. Any further suggestions? I will try to assemble a test case. May be it's related to this thing here ( http://unity3d.com/unity/whats-new/unity-2.6 ... they mention a failing CreateProvider) Did you check whether

Re: [Mono-dev] Interop dlls - is this a bug?

2010-07-30 Thread Robert Jordan
See my response on the winforms list. You cannot p/invoke native Windows DLLs. On 30.07.2010 14:53, pfj wrote: Hi, To play video, I've been using the QuartzTypeLib dll from the COM under Win32. Works fine. Not cross platform, but works fine. The application compiles and generates a file

Re: [Mono-dev] CodeDomProvider.CreateProvider fails on Windows

2010-07-29 Thread Robert Jordan
On 29.07.2010 09:25, Frank Fuchs wrote: Hi, I'd like to compile .cs files at runtime. Following the tip frome here http://lists.ximian.com/pipermail/mono-devel-list/2010-July/035505.html I'm able to do that on my Mac. On Windows (win 7 enterprise) however I do not manage to get it running.

Re: [Mono-dev] CodeDomProvider.CreateProvider fails on Windows

2010-07-29 Thread Robert Jordan
Hey, On 29.07.2010 18:52, Frank Fuchs wrote: Yes I did. otherwise the mono_jit_init wouldn't work, and I was not able to start the C# routines. Yeah, my bad. I believe the issue is more profane: Mono is trying to launch gmcs with bin/gmcs.bat, but the latter contains absolute paths set by

Re: [Mono-dev] Embedding Mono into C++

2010-07-24 Thread Robert Jordan
On 24.07.2010 15:11, Frank Fuchs wrote: On a related note is there a way to invoke the mcs compiler from within the code to compile some .cs file. Of course one could try to invoke mcs with a system call or ExecuteProcess but is there something more convenient? As far as I read about the

Re: [Mono-dev] Detecting 4.0 Support

2010-07-21 Thread Robert Jordan
Hi Charlie, On 20.07.2010 21:43, Charlie Poole wrote: Hi All, How can I detect that Mono support for .NET 4.0 is available. Check whether $mono-prefix/lib/mono/4.0/mscorlib.dll exists. 1) If I'm already running under Mono $mono-prefix can be indirectly determined from

Re: [Mono-dev] Mono API: field type attributes

2010-07-15 Thread Robert Jordan
On 15.07.2010 16:55, David Yuste wrote: Hello, This is my first mail here. I'm David Yuste, I'm working in the gcc branch gcc4cli. The whole project also includes a GCC front-end for CLI, which uses the Mono parser. The front end interacts with Mono through the Mono API. The problem

Re: [Mono-dev] Visual Studio Projects Upgrade

2010-07-15 Thread Robert Jordan
On 15.07.2010 23:02, Daniel Morgan wrote: What if someone wants to create a GTK# App on Windows? Will this Gtk# app work with eglib instead of glib? It will work because EGLib does not interfere with GLib. Robert --- On Wed, 7/14/10, Jonathan Chambersjonc...@gmail.com wrote: From:

Re: [Mono-dev] Trying to compile test-invoke w/ VS 2008

2010-07-14 Thread Robert Jordan
On 14.07.2010 19:15, Chris Robison wrote: I'm trying to compile test-invoke in the Mono-2.6.4 branch. I've been able to resolve the includes problems (the project references a VSDependancies directory that doesn't seem to exist). It is now trying to find some static libraries that don't exist

Re: [Mono-dev] Trying to compile test-invoke w/ VS 2008

2010-07-14 Thread Robert Jordan
On 14.07.2010 19:49, Chris Robison wrote: At one point (I have no idea what I did) these errors just went away, but now they are back. Any suggestions? mono.lib is being generated correctly. Back up. The original projects don't expose these issues. Since you're build the eglib version of Mono,

Re: [Mono-dev] Registering internal calls at runtime

2010-07-13 Thread Robert Jordan
On 13.07.2010 21:17, Michel Boissé wrote: class Program { static void Main(string[] args) { Registrar.RegisterMethods(); Console.Write(InternallyImplementedClass.InternalMethod());

Re: [Mono-dev] Registering internal calls at runtime

2010-07-13 Thread Robert Jordan
On 13.07.2010 23:08, Robert Jordan wrote: On 13.07.2010 21:17, Michel Boissé wrote: class Program { static void Main(string[] args) { Registrar.RegisterMethods(); Console.Write

Re: [Mono-dev] Registering internal calls at runtime

2010-07-12 Thread Robert Jordan
On 12.07.2010 21:43, MBoisse wrote: Has there been any improvements regarding late registrations of internal methods at runtime using mono_add_internal_call? Would it make sense to load and register C functions in a dll from managed code, and only then have the assembly referring to them

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Robert Jordan
Hi Michael, On 02.07.2010 21:13, Michael Hutchinson wrote: Implemented - new patch attached. +MonoString * +mono_object_to_string (MonoObject *obj, MonoObject **exc) +{ + MonoString *str; + MonoMethod *method; + MonoClass *klass; + + klass = obj-vtable-klass; +

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Robert Jordan
On 02.07.2010 21:43, Robert Jordan wrote: method = mono_object_get_virtual_method (obj, method); This must be method = mono_object_get_virtual_method (obj, to_string); Robert ___ Mono-devel-list mailing list Mono-devel-list

Re: [Mono-dev] Compiling Mono Runtime in VS2010

2010-06-28 Thread Robert Jordan
On 28.06.2010 02:27, Guy Sherman wrote: I managed to compile a 64-bit version of the mono runtime, using Visual Studio 2008, and I am having a great time working out how to embed mono. However, I am using Visual Studio 2010 for my solution, and whenever I call free on a pointer allocated by

Re: [Mono-dev] Standard name for mcs

2010-06-28 Thread Robert Jordan
On 28.06.2010 11:13, Russell Wallace wrote: Sure, but it's not installed by default, even after installing the mono-devel package: a...@a-desktop:~$ mcs The program 'mcs' is currently not installed. You can install it by typing: sudo apt-get install mono-mcs I'm guessing this is because

Re: [Mono-dev] Compiling Mono Runtime in VS2010

2010-06-28 Thread Robert Jordan
On 28.06.2010 12:22, guysherman wrote: Hi Robert, Thanks for that, that helps a little, but I think I still need to free in one case, that is mono_string_to_utf16, I need to free the LPTSTR that I get back afterwards (the example in test-invoke does). Is this where I would call mono_free?

Re: [Mono-dev] Compiling Mono Runtime in VS2010

2010-06-28 Thread Robert Jordan
Hi Guy, On 28.06.2010 13:07, guysherman wrote: Thanks so much for your help and patience, I have now got my code working. I found that mono_free was missing from the mono.def file that i had (I guess I should probably rebuild it), so I added the line. Now my code compiles and links and runs.

Re: [Mono-dev] Trying to run teste.exe

2010-06-19 Thread Robert Jordan
On 19.06.2010 13:04, guysherman wrote: Hi Zoltan, Thanks very much for that, that seems to have fixed it. I get a new error now, though. The error is the following: Corlib too old for this runtime. Loaded from: C:\Program Files (x86)\Mono-2.6.4\lib\mono\2.0\mscorlib.dll When I execute

Re: [Mono-dev] MonoCharge on Windows

2010-06-17 Thread Robert Jordan
On 17.06.2010 12:01, SuperCiccio wrote: I know that it is risky, but it is not for production use: I have to try some of the latest implementations or make some modifications to code by myself. In particular, I am interested to System.ServiceModel. 1) open a Mono command line 2) change dir

Re: [Mono-dev] HttpWebRequest.DefaultMaximumErrorResponseLength property

2010-06-17 Thread Robert Jordan
On 17.06.2010 13:11, Jim Evans wrote: I posted this question on mono-list, with no responses. I'm going to try this No answer means that there is no solution for your problem. I could test to see if I am running under Mono, but are there any other alternatives here? No other alternative

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-17 Thread Robert Jordan
On 17.06.2010 18:07, Trevor Ackerman wrote: I have been able to cross-compile Mono 2.6.4 for the NS9215 (no fpu afaik) and I'm having trouble with floats when executing code. ... My CFLAGS and CPPFLAGS environment variables are both -DARM_FPU_NONE=1 -DMONO_ARCH_SOFT_FLOAT=1

Re: [Mono-dev] MonoCharge on Windows

2010-06-16 Thread Robert Jordan
On 16.06.2010 15:24, SuperCiccio wrote: Update: I tried to upgrade manually copying files, but without luck. Which Mono version do you want to update? Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] MonoCharge on Windows

2010-06-16 Thread Robert Jordan
On 16.06.2010 15:41, SuperCiccio wrote: Latest (2.6.4) to Daily Packages (http://mono.ximian.com/daily) You're not supposed to update a stable Mono from daily packages because there are interdependencies between the runtime and the class libraries that are not resolved by those dailies. It's

Re: [Mono-dev] Create a 'MonoImage' from a byte array. (corrected)

2010-06-16 Thread Robert Jordan
On 16.06.2010 17:49, Thiago Padilha wrote: I'm trying to create a MonoImage/MonoAssembly from a byte array like this : //body omited, this is a simple function that return contents of a binary file and returns the file size in bytes as an out parameter static char *read_file_contents(char

Re: [Mono-dev] Installing pre-load hooks on windows(bug?)

2010-06-16 Thread Robert Jordan
On 17.06.2010 01:13, Thiago Padilha wrote: I use a callback function to control assembly loading with this code : All works correctly, except that when I run this program on Windows(I have tested on both Seven and XP) get the following 'extra' output TRYING TO LOAD ASSEMBLY : I18N

Re: [Mono-dev] Setting the assembly location(complete)

2010-06-14 Thread Robert Jordan
On 14.06.2010 20:46, Thiago Padilha wrote: This was working fine, some some days ago I made a modification and when I tried to run the following message appears : The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the

Re: [Mono-dev] Mono Crash on writing row in database with mono.data.sqlite

2010-06-11 Thread Robert Jordan
On 11.06.2010 11:48, Easy_Rider wrote: I have the same error again on a Debian Lenny installation. I downloaded the source code and installed to /usr . This time I have definitely only one libsqlite3.so! And the name column is there. But nevertheless I get this error code: And the error

Re: [Mono-dev] Mono Crash on writing row in database with mono.data.sqlite

2010-06-11 Thread Robert Jordan
. Robert Regards Hans http://jhmgbl.users.sourceforge.net/ -Ursprungliche Nachricht- Von: Robert Jordan [via Software] [mailto:ml-node+5167168-1645128073-197...@n2.nabble.com] Gesendet: Freitag, 11. Juni 2010 11:59 An: Easy_Rider Betreff: Re: Mono Crash

Re: [Mono-dev] SGen improved and looking for testers

2010-06-09 Thread Robert Jordan
On 09.06.2010 12:39, Roman Procopie wrote: I am using 2.6.4 tarball. Can anyone help ? You must build from trunk. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list

Re: [Mono-dev] Embedding Mono

2010-06-09 Thread Robert Jordan
On 09.06.2010 23:14, Thiago Padilha wrote: Hi Jonathan, I'm also working with an embedded mono application, do you know if I can have full control on the assembly loader for mono? So far I only found a way to specify the probing directory, but what I really need is to instrument

Re: [Mono-dev] System.Configuration not implemented problem

2010-06-06 Thread Robert Jordan
On 06.06.2010 16:50, Paul wrote: Hi, I'm trying to get the code at http://msdn.microsoft.com/en-us/library/system.configuration.appsettingssection.aspx to compile and run under Mono 2.6.4. While it compiles fine, it fails to run with a NotImplemented error. Is there a way around this

Re: [Mono-dev] Customizing Mono for a specific app

2010-06-04 Thread Robert Jordan
On 04.06.2010 16:12, Thiago Padilha wrote: Hi I want to distribute a portable ASP.NET application with its own managed web server - aspNETserve, however this server only seems to work when its assemblies are installed in the GAC, otherwise the ' ApplicationManager.CreateObject' throws

[Mono-dev] Status of the Windows build (with patches)

2010-05-28 Thread Robert Jordan
=== --- ChangeLog (revision 158032) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2010-05-28 Robert Jordan robe...@gmx.net + + * configure.in: Fix mcs_topdir* for the Windows build. + 2010-05-20 Miguel de Icaza mig...@novell.com * configure.in: drop again the pkg.m4 dependency

Re: [Mono-dev] Status of the Windows build (with patches)

2010-05-28 Thread Robert Jordan
On 28.05.2010 16:01, Robert Jordan wrote: The second issue is a SIGSEGV during the full mscorlib compilation (also reported by Atsushi). It seems to be caused by the basic bootstrap corlib, but I did not debug it in the hope that one of the Reflection.Emit gods is able to pinpoint the issue

Re: [Mono-dev] Bug with System.Environment.InternalGetFolderPath found using MVC 2 on Mono SVN

2010-05-28 Thread Robert Jordan
On 28.05.2010 20:44, sberryman wrote: Any chance someone can take a look at a bug I submitted? I have a feeling it would be a quick fix, and actually surprised it hasn't come up as it is part of the System.Environment class. https://bugzilla.novell.com/show_bug.cgi?id=609632 Since you're

Re: [Mono-dev] Bug with System.Environment.InternalGetFolderPath found using MVC 2 on Mono SVN

2010-05-28 Thread Robert Jordan
On 28.05.2010 21:59, sberryman wrote: Looks like embedded: Engine: GC:included GLIB: embedded Yep, that's the default nowadays. There is a workaround in this case: ensure that the user under which your MVC site is running has a valid home entry in

Re: [Mono-dev] Bug with System.Environment.InternalGetFolderPath found using MVC 2 on Mono SVN

2010-05-28 Thread Robert Jordan
On 28.05.2010 22:50, sberryman wrote: I'm not that familar with linux so I tried making a few changes to the passwd file without any luck. Here is what is in there for the apache user (www-data): www-data:x:33:33:www-data:/var/www:/bin/sh * i've tried changing the owner of /var/www to

Re: [Mono-dev] Bug with System.Environment.InternalGetFolderPath found using MVC 2 on Mono SVN

2010-05-28 Thread Robert Jordan
On 29.05.2010 00:46, sberryman wrote: $ mcs test.cs $ mono test.exe Try this: HOME=foo mono test.exe The output should not be foo. Also ensure that you're calling the correct mono, if you have parallel installations. SVN users usually have. Robert

Re: [Mono-dev] Bug with System.Environment.InternalGetFolderPath found using MVC 2 on Mono SVN

2010-05-28 Thread Robert Jordan
On 29.05.2010 01:24, sberryman wrote: $ export HOME=foo $ mono /home/www-data/test.exe foo Okay, this basically means that GetFolderPath(), respectively EGlib's g_get_home_dir(), is not able to read /etc/passwd on your system. If you want a fast solution for this issue you should consider

Re: [Mono-dev] Compiler bug in foreach

2010-05-28 Thread Robert Jordan
On 29.05.2010 01:44, Mehrdad Reshadi wrote: I found the following bug, wondering if others have seen this, or anything is being done to solve it. foreach is too common to have such a bug! public static void Main(string[] args) { var o = new Y();

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