Re: [Mono-list] Embedded API: static constructor calling

2013-10-01 Thread Robert Jordan
On 01.10.2013 11:37, jonat...@mugginsoft.com wrote: Is it the case that calling a static field via the embedded API does not cause the static constructor to be run? This seems to be the behaviour I am observing. In the example below setting the static MetaDataXXX fields (before any other

Re: [Mono-list] Embedded API: static constructor calling

2013-10-01 Thread Robert Jordan
On 01.10.2013 14:38, jonat...@mugginsoft.com wrote: On 1 Oct 2013, at 13:03, Robert Jordan robe...@gmx.net wrote: On 01.10.2013 11:37, jonat...@mugginsoft.com wrote: Is it the case that calling a static field via the embedded API does not cause the static constructor to be run? This seems

Re: [Mono-list] Embedded API: static constructor calling

2013-10-01 Thread Robert Jordan
On 01.10.2013 15:16, jonat...@mugginsoft.com wrote: On 1 Oct 2013, at 14:01, Robert Jordan robe...@gmx.net wrote: mono_field_get_value_object is not mono_field_STATIC_get! You are looking at the wrong function. Sorry. I was trying to imply that, as in mono_field_get_value_object

Re: [Mono-dev] Help with xsp

2013-09-18 Thread Robert Jordan
Neale, On 18.09.2013 00:19, Neale Ferguson wrote: I had a webservice that was working fine. I duplicated a routine - same name but with different parameters which requires the MessageName attribute. So for the duplicated routine which originally just had: [WebMethod

Re: [Mono-dev] GAC on Mac

2013-09-17 Thread Robert Jordan
On 16.09.2013 20:29, Vassil Vassilev wrote: Hi, Sorry if this is the wrong mailing list. I am trying to compile a simple cs file with using gtk-sharp library. It looks like that the compiler doesn't look at the 'right' place. Any ideas are very welcome, because I am stuck with that for

Re: [Mono-list] Embedded API method signatures

2013-09-06 Thread Robert Jordan
Jonathan, On 05.09.2013 21:38, jonat...@mugginsoft.com wrote: In Obj-C - embedded API I invoke a method like so: MonoObject *monoObject = [self invokeMonoMethod:Sum(long[]) withNumArgs:1, [p1 monoValue]]; The following however fails to find the specified method: MonoObject *monoObject =

Re: [Mono-dev] mono from git will not build on cygwin 32

2013-09-04 Thread Robert Jordan
On 05.09.2013 00:36, Bryan Crotaz wrote: After ./autogen.sh ... I get: Running ./configure --enable-maintainer-mode --enable-compile-warnings --host=i686-pc-mingw32 --profile=/cygdrive/c/mono ... configure: error: unrecognized option: `--profile=/cygdrive/c/mono' Try `./configure --help' for

Re: [Mono-list] Embedded API: calling explicit operators

2013-09-04 Thread Robert Jordan
On 31.08.2013 23:16, jonat...@mugginsoft.com wrote: How is an explicit operator called using the embedded api? For example mscorlib contains a number of explicit operators for NSDecimal: http://msdn.microsoft.com/en-us/library/system.decimal.op_explicit.aspx Reflection returns the operators as

Re: [Mono-list] embeded mono segfaults without calling managed code

2013-08-06 Thread Robert Jordan
mono_domain_get() relies on the current thread being already attached, while mono_get_root_domain() simply returns the first created domain. The latter is what you want in most of the cases. Robert On 06.08.2013 08:49, Chris Ochs wrote: Hmm, so mono_get_root_domain() doesn't segfault. On

Re: [Mono-list] Troubling passing DateTime via embedded API

2013-07-26 Thread Robert Jordan
On 26.07.2013 14:09, jonat...@mugginsoft.com wrote: // validate the Mono representatiom int64_t ticks = DB_UNBOX_INT64(DBMonoObjectGetProperty(monoDateTime, Ticks)); MonoString *monoString = mono_object_to_string(monoDateTime, NULL); mono_object_to_string () is buggy with

Re: [Mono-dev] MonoProperty and generic types

2013-07-23 Thread Robert Jordan
Hi, On 23.07.2013 13:27, Bartosz Przygoda wrote: Hello, I'm obtaining the *Capacity *property from the *ListT* class: class_ = mono_class_from_name(image, System.Collections.Generic, List`1); _Capacity = mono_class_get_property_from_name(list, Capacity); This isn't supported.

Re: [Mono-dev] MonoListWrapper WIP - code review/feedback

2013-07-20 Thread Robert Jordan
On 20.07.2013 12:03, rf...@tbrf.net wrote: 2) Using mono_class_get_generic_class(), mono_generic_class_get_context(), and the MonoGenericContext structure to retrieve the ListT generic type argument: I can't find any public API for retrieving info about a generic instantiation. There's a couple

Re: [Mono-dev] MonoListWrapper WIP - code review/feedback

2013-07-19 Thread Robert Jordan
Hi, On 18.07.2013 19:16, rf...@tbrf.net wrote: I've been working on a little wrapper library for working with System.Collections.Generic.ListT instances from native code. The motivation is to provide a way for Mono embedders to easily design APIs that use ListT instances as output buffers,

Re: [Mono-list] Embedded API: Method signature not found with generic parameter

2013-07-12 Thread Robert Jordan
Hi, On 12.07.2013 15:06, jonat...@mugginsoft.com wrote: // invoke the generic helper method MonoObject *monoException = NULL; void *hargs [2]; hargs [0] = methodInfo; hargs [1] = mono_type_get_object(env.monoDomain, genericParameterType); MonoMethod *genericMethod

Re: [Mono-list] Embedded API: Method signature not found with generic parameter

2013-07-12 Thread Robert Jordan
On 12.07.2013 21:43, jonat...@mugginsoft.com wrote: You have to unbox the result of mono_runtime_invoke because it returns the IntPtr boxed in a MonoObject*. Something like that: MonoObject* obj = mono_runtime_invoke (...) MonoMethod* genericMethod = *(MonoMethod**) mono_object_unbox (obj);

Re: [Mono-list] Embedded API: Method signature not found with generic parameter

2013-07-11 Thread Robert Jordan
On 11.07.2013 13:55, mugginsoft wrote: Hi I have a MonoAssembly pointer to System.Core. I obtain a MonoClass pointer to System.Linq.Enumerable with the above assembly. This is a static class used to implement LINQ functionality via extensions. I write the method names to the console. The

Re: [Mono-list] Embedded API: Method signature not found with generic parameter

2013-07-11 Thread Robert Jordan
On 11.07.2013 15:31, mugginsoft wrote: Robert Jordan wrote It works for me using both mono_class_get_method_from_name () and mono_method_desc_search_in_class (). I am still having issues: // get the method const char *methodName = :ToListTSource

Re: [Mono-list] Embedded API: Method signature not found with generic parameter

2013-07-11 Thread Robert Jordan
On 11.07.2013 15:53, mugginsoft wrote: Robert Jordan wrote This must be :ToList(System.Collections.Generic.IEnumerable`1) Hmm. This still aborts with me. Now I see why: you're using mono_class_get_method_from_name () and this function expects nothing more than the simple method name. Try

Re: [Mono-list] Embedded API: Method signature not found with generic parameter

2013-07-11 Thread Robert Jordan
On 11.07.2013 21:08, mugginsoft wrote: Robert Jordan wrote Oops, my test actually passes with: :ToList(System.Collections.Generic.IEnumerable`1 TSource ) Thanks. I thought I had tried all the combinations - I should have been more methodical! I wonder why the method name querying

Re: [Mono-dev] What is the best practice for disposing of transient MonoObject in an embedding scenario

2013-06-17 Thread Robert Jordan
On 16.06.2013 13:21, jean-michel.perr...@csiro.au wrote: Hi, I'd like some guidance on how to free memory in an embedded Mono scenario. I 'monkeyed' a few things started from the embedded samples in the mono codebase, but they are limited to g_free calls on UTF8 strings. I think I figured out

Re: [Mono-dev] EntryPointNotFoundException with __Internal method

2013-04-29 Thread Robert Jordan
On 29.04.2013 21:20, Marcelo Zabani wrote: When embedding Mono within Nginx, I received the following exception: *Unhandled Exception: System.EntryPointNotFoundException: log_error_core_wrapper* * at (wrapper managed-to-native) Nam.NginxMethods:ngx_log_error (uint,intptr,int,string)* * at

Re: [Mono-dev] TypeForwardedFrom

2013-04-12 Thread Robert Jordan
=b77a5c561934e089 I'm not sure why commenting out the EmitLoadType/EmitCall to WriteTypeAssembly and using the previous EmitLoadAssemblyType/EmitCall to WriteAssembly causes things not to fail. On 4/11/13 6:40 PM, Robert Jordan robe...@gmx.net wrote: This looks good. Maybe the error is somewhere else

Re: [Mono-dev] TypeForwardedFrom

2013-04-11 Thread Robert Jordan
Hi Neale, On 11.04.2013 01:45, Neale Ferguson wrote: [MethodImplAttribute (MethodImplOptions.InternalCall)] private extern string get_fullname (); Where is get_fullname? I can't find it anywhere. In any event just manipulating the strings isn't good enough, I need the type information to do

Re: [Mono-dev] TypeForwardedFrom

2013-04-11 Thread Robert Jordan
at the same time the fullname information is saved in Assembly and then retrieving it before the WriteAssemblyName() to get the forwarded name? Out of curiosity shouldn't I find get_fullname() defined somewhere in the source tree? Neale On 4/11/13 6:47 AM, Robert Jordan robe...@gmx.net wrote: Hi Neale

Re: [Mono-dev] TypeForwardedFrom

2013-04-11 Thread Robert Jordan
() it retrieves the AssemblyFullName so I'm not sure how I can get the forwarded name without the associated Type value. Neale On 4/11/13 10:04 AM, Robert Jordan robe...@gmx.net wrote: Neale, The icall's declaration: mono/metadata/icall-def.h:ICALL(ASSEM_23, get_fullname

Re: [Mono-dev] TypeForwardedFrom

2013-04-11 Thread Robert Jordan
, Type type) { gen.EmitCall (OpCodes.Callvirt, typeof(BinaryWriter).GetMethod(Write, new Type[] { type }), null); On 4/11/13 1:21 PM, Robert Jordan robe...@gmx.net wrote: Neale, Rename Modify WriteAssembly to take a Type argument: public int

Re: [Mono-dev] TypeForwardedFrom

2013-04-09 Thread Robert Jordan
with Program, but .NET associates it with WindowsBase. I'm not sure why it does this. On 4/5/13 10:14 AM, Robert Jordan robe...@gmx.net wrote: You don't need to know how mcs operates. The TypeForwardedFrom information can be obtained via reflection

Re: [Mono-dev] TypeForwardedFrom

2013-04-06 Thread Robert Jordan
On 04.04.2013 20:57, Neale Ferguson wrote: Hi, I¹m looking at fixing an incompatibility between .NET and Mono when it comes to Serialization. Bugzilla 11294 describes the situation but in brief it is a case that when .NET serializes something that has a TypeForwardedFrom attribute that

Re: [Mono-dev] Why does Mono's CoreCLR blocks internal method reflection from transparent code ?

2013-03-26 Thread Robert Jordan
On 24.03.2013 19:08, nelson wrote: I'm checking that code, at https://github.com/mono/mono/blob/master/mono/metadata/security-core-clr.c. If to ensure that the specified method can be used with reflection since Transparent code cannot call Critical methods is fine with me, why does CoreCLR also

Re: [Mono-dev] ObservableCollection and BindingList Serialization

2013-03-12 Thread Robert Jordan
On 12.03.2013 00:16, Neale Ferguson wrote: ObservableCollection was moved from Windows.Base to System and TypeForwardedTo and TypeForwardedFrom tags were added to the relevant source code. ObservableCollection is serializable but when done on a Windows system using .NET = 3 the serialized

Re: [Mono-list] Poor Mono performance

2013-03-11 Thread Robert Jordan
On 11.03.2013 17:19, Olajos, Imre wrote: Is there anything I can do that would bring their relative performance difference closer to each other (e.g. below 20-25%)? So you didn't find the well-hidden --make-me-as-fast-as-ms switch, did you? :) You're comparing MS' 64-bit runtime with a 32-bit

Re: [Mono-dev] Can't create a local tcp connection on mono

2013-03-02 Thread Robert Jordan
On 02.03.2013 15:56, Ole Bromose wrote: Hello, The code below works on Windows. However, when running on mono 2.10.5 on Gentoo Linux, the listener throws the exception: System.Net.Sockets.SocketException: The requested address is not valid in this context Listening on the address

Re: [Mono-list] Mono embedding with threads + multiple domains

2013-02-28 Thread Robert Jordan
On 28.02.2013 10:15, Roberto De Ioris wrote: Hi everyone, i am writing a uWSGI plugin for Mono https://github.com/unbit/uwsgi/tree/master/plugins/mono the plugin is already in good shape but now i would like to add multi-domains support (currently you can load multiple applications but all in

Re: [Mono-list] Mono embedding with threads + multiple domains

2013-02-28 Thread Robert Jordan
Roberto, On 28.02.2013 16:22, Roberto De Ioris wrote: the plugin is already in good shape but now i would like to add multi-domains support (currently you can load multiple applications but all in the same mono domain) ApplicationHost.CreateApplicationHost is already creating its own app

Re: [Mono-list] Xamarin 2.0 concern

2013-02-24 Thread Robert Jordan
Dimitar, On 24.02.2013 15:23, Dimitar Dobrev wrote: Furthermore, even if I hadn't argued about these negative associations what about the positive ones? That because of Mono, developers can run their both existing and new code on Linux, OS X, iOS, Android? You do realise that changing a

Re: [Mono-list] Run a WCF as root

2013-02-20 Thread Robert Jordan
On 19.02.2013 22:23, acrym wrote: I need to use a port under 1024. How can I enable root access to my WCF service (.dll) ? Either execute the process as root (not recommended for a public service), or set a firewall forwarding rule from your port = 1024 to a port 1024 where your service is

Re: [Mono-list] Specifying gc=sgen in mono-service

2013-02-20 Thread Robert Jordan
On 20.02.2013 17:57, Dave Curylo wrote: Is there a way to specify the GC used when running a service using mono-service? --gc=sgen works when invoking mono directly, but how do I do this through mono-service? With the MONO_OPTIONS environment variable: MONO_OPTIONS=--gc=sgen mono-service ...

Re: [Mono-list] Assembly.GetExecutingAssembly() not working in embedded mono?

2013-02-18 Thread Robert Jordan
On 16.02.2013 23:41, nelson wrote: I'm trying to embed mono in a c++ executable, and mono crashes on Assembly.GetExecutingAssembly. Any idea of what I missed ? Some reflection methods don't work correctly if they are unable to walk managed stack frames. When mono_runtime_invoke () is called

Re: [Mono-list] Embedding Mono

2013-02-06 Thread Robert Jordan
On 06.02.2013 18:04, markcoburnwa wrote: With regards to embedding the Mono runtime into an executable, I have seen the following commands on the web: mkbundle --deps --config-dir ./lib MyApp.exe cc -arch i386 -mmacosx-version-min=10.5 -I /opt/local/include/glib-2.0 -I

Re: [Mono-list] Why Gnome prefer JavaScript?

2013-02-05 Thread Robert Jordan
On 05.02.2013 16:23, Alberto León wrote: But, JavaScript was the reason to Oracle denounced Google. I can't understand why Gnome and Linux rejected support C# and has accepted javascript as official language. I think the step of Oracle is more dangerous to the open source world tan the steps

Re: [Mono-list] Unable to get block device size in UnixStream

2013-01-31 Thread Robert Jordan
On 31.01.2013 12:45, Christian Schmid wrote: Hi Jon Unfortunately, it did not work. Although /dev/sda2 is a 500 gb device, statfvs(dev/sda2, out stat) and fstatvfs(fd, out stat) returned the following: bavail=2560 bfree=2560 blocks=2560 bsize=4096 files=8262645 frsize=4096 Maybe the device

Re: [Mono-dev] Mono.CSharp.Evaluator: x.GetType Bug?

2013-01-25 Thread Robert Jordan
On 25.01.2013 18:33, lukebuehler wrote: //this doesnt work evaluator.Evaluate(var a = new A();, out result, out set); //Error here: evaluator.Evaluate(a.GetType();, out result, out set); Console.WriteLine(result); Local variables don't survive the evaluation. You must

Re: [Mono-list] NullReferenceException when calling thunk

2013-01-24 Thread Robert Jordan
On 23.01.2013 06:43, tomason wrote: MonoClass *mclass = mono_object_get_class(mobj); g_mmethod = mono_class_get_method_from_name(mclass, Add, 2); g_mthunk = (MonoAddFunc)mono_method_get_unmanaged_thunk(g_mmethod); Where MonoAddFunc is defined like this: typedef float (*MonoAddFunc)(MonoObject*,

Re: [Mono-list] Process.GetProcess()

2013-01-24 Thread Robert Jordan
On 24.01.2013 16:09, mickeyf wrote: Usually this sort of thing means I've missed something that should be simple and obvious, but if so, I'm still missing it. You're missing an update. Mono trunk does not miss other mono processes while Mono 2-6 does. So the bug must have been fixed in 2-8,

Re: [Mono-list] NullReferenceException when calling thunk

2013-01-23 Thread Robert Jordan
Hi, On 23.01.2013 06:43, tomason wrote: Where MonoAddFunc is defined like this: typedef float (*MonoAddFunc)(MonoObject*, float, float); You you're testing under Windows, the typedef must be stdcall: typedef float (__stdcall *MonoAddFunc)(MonoObject*, float, float); A note on thunks: this

Re: [Mono-list] NullReferenceException when calling thunk

2013-01-23 Thread Robert Jordan
is requiring quite a bit of bookkeeping, it only makes sense to use it for a few methods (or at large scale using some kind of code generation). Robert Thanks! -Tom On Wed, Jan 23, 2013 at 2:57 AM, Robert Jordan [via Mono] ml-node+s1490590n4658237...@n4.nabble.com wrote: Hi, On 23.01.2013 06:43

Re: [Mono-list] NullReferenceException when calling thunk

2013-01-23 Thread Robert Jordan
On 23.01.2013 20:57, Robert Jordan wrote: Yes, 'extern C' is a must. You may need to add -Wl,--export-dynamic to your cflags when compiling the main program. This will instruct the linker to export all public symbols as if the program where a library. It should read were a library

Re: [Mono-list] NullReferenceException when calling thunk

2013-01-23 Thread Robert Jordan
23, 2013 at 1:12 PM, Robert Jordan [via Mono] ml-node+s1490590n4658252...@n4.nabble.com wrote: On 23.01.2013 20:57, Robert Jordan wrote: Yes, 'extern C' is a must. You may need to add -Wl,--export-dynamic to your cflags when compiling the main program. This will instruct the linker

Re: [Mono-list] Process.GetProcess()

2013-01-23 Thread Robert Jordan
On 24.01.2013 01:02, mickeyf wrote: I need a simple app that checks whether a different one is running, and if not, restarts it. If I'm correctly understanding the replies to this post http://mono.1490590.n4.nabble.com/Fail-to-set-socket-send-amp-receive-timeout-td1493357.html#a1493359 , and

Re: [Mono-aspnet-list] HttpWebRequest Allocates Multiple Threads per Request

2013-01-21 Thread Robert Jordan
On 21.01.2013 17:11, Sean Reque wrote: I noticed today in a debugger session that performing a simple POST request with HttpWebRequest allocates three new threads. Examining the source code reveals that the synchronous methods GetRequestStream() and GetResponseStream() use the asynchronous

Re: [Mono-list] Question on unix signal handling

2013-01-17 Thread Robert Jordan
On 17.01.2013 17:02, mickeyf wrote: So my questions are: If I have a Mono application with an arbitrary number of threads, can I use this approach to make sure that any signal is properly caught and handled by a single method? That is, will any signals that are raised be seen only by my signal

Re: [Mono-aspnet-list] How make ASP.Net recompile page on changes?

2012-12-18 Thread Robert Jordan
On 18.12.2012 07:19, donrhummy wrote: When I make changes to an aspx page (and/or the aspx.cs codebehind), the page does not get recompiled. It appears that ASP.Net (the apache+mono web server) is not recompiling despite changes to the file. The only way to get it to recompile is to change

Re: [Mono-dev] Obtaining class from the assembly or one of the referenced assemblies

2012-12-07 Thread Robert Jordan
Hi, On 07.12.2012 07:49, Bartosz Przygoda wrote: Hi, Currently I am obtaining the MonoClass* objects via mono_class_from_name which acts upon the MonoImage of provided assembly. However, I am planning my project to span throughout few assemblies and I still want the native host to be able to

Re: [Mono-dev] Building mono on windows

2012-12-03 Thread Robert Jordan
Hi, On 03.12.2012 12:52, Michael Stoll wrote: I'm trying to build Mono on Windows 7. The System: Windows 7 Professional x64 Mono 3.0.1 Cygwin 1.7 What I did: Checkout git repository (with Tortoise GIT, no auto CRLF) ./autogen.sh --prefix /usr/local autogen.log (see attachment) make make.log

Re: [Mono-dev] Invoking unmanaged code without marshaling

2012-12-02 Thread Robert Jordan
Manual pinning isn't required. Blittable types and their one dimensional arrays are automatically pinned by the p/invoke marshaler. Robert On 02.12.2012 22:19, Rafael Teixeira wrote: I would not go that route. Have you tried to pin the arrays in managed code and marshalling just the pointers,

Re: [Mono-dev] DllImports cannot load an .so that references another .so (on Ubuntu)

2012-11-30 Thread Robert Jordan
On 28.11.2012 06:54, hpavlov wrote: Just for completeness, the Deployment Guidelines on the Mono web site suggest setting the /LD_LIBRARY_PATH/ before running the application: http://www.mono-project.com/Guidelines:Application_Deployment#Layout_Recommendation This is the recommended approach.

Re: [Mono-dev] Latest mod_mono

2012-11-20 Thread Robert Jordan
On 20.11.2012 15:13, Ben Clewett wrote: Thanks for the assurance. It also bothers me that these packages have been excluded (so far) from the 3.0.n release. Does this mean they are not ready? I guess because the comments are quite old, this is not the case. It means that there were no

Re: [Mono-dev] Using console with embedded mono runtime

2012-11-20 Thread Robert Jordan
On 20.11.2012 14:23, Bartosz Przygoda wrote: Hi, My scenario is windows app hosting mono3.0.1 runtime. I wanted to add REPL functionality, so I've used AllocConsole to open console window. However, calls to Console static methods do not produce any result, as if Try this: Console.SetOut(new

Re: [Mono-dev] mono 2.11.4 on Windows GetThreadContext failed

2012-11-19 Thread Robert Jordan
Hi, On 19.11.2012 11:29, Frank Fuchs wrote: Hi, I'm using mono-2.11.4 on Windows 7 in 32 bit and 64 bit for embedding into my C++ application. Since updating from an rather old 2.6.4 mono I'm getting an error GetThreadContext failed from the GC every now and then (there seems to be no pattern).

Re: [Mono-list] FileStream performance under Windows

2012-11-16 Thread Robert Jordan
Unlike MS.NET, Mono does not pass arbitrary FileOptions values to the operating system. Maybe you should rephrase your question. What makes you think that Mono's FileStream is less performant than MS.NET, and why do you believe that disabling the read-ahead cache would speed things up? On the

Re: [Mono-dev] Is the `sizeof` opcode doing the right thing?

2012-11-14 Thread Robert Jordan
On 14.11.2012 04:04, Jordan Earls wrote: Hi, I've been messing with building a rather low-level datastructure to avoid the Large Object Heap. One thing this required of me was to write a very small library directly in IL. The function I implemented is this: .method public static hidebysig

Re: [Mono-list] C++ interop with Mono

2012-11-13 Thread Robert Jordan
On 13.11.2012 18:50, obiwanjacobi wrote: Ok, I get the call unmanaged C++ code from managed C# code examples. But I need something that works the other way around. The lifetime sequence starts of with a call to an (unmanaged C++) exported dll method (GetObjectFactory). I will implement the

Re: [Mono-list] C++ interop with Mono

2012-11-12 Thread Robert Jordan
On 12.11.2012 14:39, obiwanjacobi wrote: I'm looking into the options in more detail and I was wondering about the COM/CLR Callable Wrapper. The point is that I don't need any real COM services, all I need is an interop layer between C++ and .NET/Mono. So I was wondering if, once I have these

Re: [Mono-list] CallContext.LogicalSetData in Mono 2.11.4

2012-10-22 Thread Robert Jordan
On 22.10.2012 12:36, Narinder CLAIRE wrote: Since it is the latest alpha that it throwing this exception, is it the case that this feature will remain unimplemented in the next release of mono ? Likely. These methods (Logical{Get|Set}Data) were not implemented when Mono's remoting stack was

Re: [Mono-list] Mono x64 issue

2012-10-16 Thread Robert Jordan
On 16.10.2012 16:14, Francois Schelling wrote: I've created a 64 bits version of my mono.lib in order to make my program links correctly with mono using the following command: lib /nologo /def:mono.def /out:mono64.lib /machine:x64. The official Mono for Windows is 32-bit only, so creating a

Re: [Mono-dev] Seeking advice on converting basic value types from the CLR representation to native C types, using mono embedding

2012-10-11 Thread Robert Jordan
Hi, On 11.10.2012 04:45, jean-michel.perr...@csiro.au wrote: I am working on a package to access the Mono (resp. MS.NET) CLR from the R statistical language. I am trying to convert 'simple' CLR value types (e.g. string, double, bool, DateTime) to marshall them to their R equivalent. I managed

Re: [Mono-list] MONO

2012-09-20 Thread Robert Jordan
On 20.09.2012 11:55, Victor D wrote: Hello, I would like to use mono-service2 to launch a mono application using optimize option -O=all,-precomp For mono i used to call mono -O=all,-precomp How can I do that with mono-service2 ? Set the MONO_OPTIONS environment var:

Re: [Mono-dev] Doing dev under win?

2012-09-11 Thread Robert Jordan
On 11.09.2012 12:50, Robert Wilkens wrote: One unimplemented feature i remember, for example, was the 'WebBrowser' integration, I was using a 'HtmlEditor' control (source free on the web) which relied on WebBrowser -- but before i go further: I want to say Windows 8 seems to have dropped

Re: [Mono-list] Missing .ctor

2012-08-08 Thread Robert Jordan
On 07.08.2012 22:32, Francois Schelling wrote: Hi, I'm new with Mono and I'm having a problem to get my project running. I've created a C++ console application in which I would like to embed a C# dll. I'm able to open my C# dll but once I try to invoke a function on my C# object, I got the

Re: [Mono-list] Strange TCP Error

2012-07-19 Thread Robert Jordan
On 18.07.2012 09:34, Drew DeVault wrote: Hi there, I'm getting this error output directly to the console after a having a TCP connection open for a long time: messages.c: A message was found on the uncommon code path: 995 - Operation abort I didn't make this message, and mono output it on

Re: [Mono-list] Serialization bug

2012-07-02 Thread Robert Jordan
On 02.07.2012 08:45, Yury Serdyuk wrote: Is it a bug in Mono and how to workaround it if possible ? It seems to be a bug regarding serialization of multidim. arrays. Workaround: use a holder class for these arrays and serialize it in place of the multidim. array: [Serializable] class

Re: [Mono-dev] Building XSP on MacOSX?

2012-07-01 Thread Robert Jordan
On 30.06.2012 03:50, Rob Wilkens wrote: I managed to get XSP to build on MacOSX but it was not pretty. When i downloaded it from git (g...@github.com:mono/xsp) autogen was failing at the configure script. What i did was just comment out the parts that were failing, then build and install and i

Re: [Mono-list] Where is documentation for newbies?

2012-07-01 Thread Robert Jordan
On 30.06.2012 03:16, Sduibek wrote: I am very interested in using 'mkbundle --deps file.cs' to see if I can effectively get a static executable for a small project I'm working on, but mkbundle does not act on C# files. See its man page or use the web: http://linux.die.net/man/1/mkbundle Do

Re: [Mono-aspnet-list] CPU usage of mod-mono

2012-06-19 Thread Robert Jordan
On 18.06.2012 19:37, Poiros wrote: I am wondering why the mod-mono process and xsp4 are using the CPU when the request has been completed. Also, I have noticed that the mod-mono process is doing some extra processing compared to xsp4. why?? Because of this:

Re: [Mono-list] Doc2x.exe on FreeBSD using MONO

2012-06-19 Thread Robert Jordan
On 19.06.2012 11:36, seba wrote: Hi All, I'm using MONO for about 5 months on Windows and FreeBSD. I found no problems with that until I try to use conversion of *.doc file to *.docx file that gives me doc2x.exe tool (tool that should work fine in MONO). First I've got some problem with finding

Re: [Mono-list] License of Beagle Sources

2012-06-05 Thread Robert Jordan
On 05.06.2012 13:40, Alberto León wrote: I supose I can't use the code to extrack the text of OpenOffice Document... why is not GPL or similar? Because it's MIT/X11. Check the COPYING file at the root of the sources. Robert ___ Mono-list

Re: [Mono-dev] Embedded mono - cross compile on cygwin and linux

2012-06-04 Thread Robert Jordan
Hi Matthias, On 04.06.2012 16:46, Matthias D. wrote: Note: I'm still trying to get this reproduced on a smaller program, but I did not manage it jet :(. Or at least tell us which thunk call is actually failing in your code. Note also: These errors also happen in the (stable) 2.11.1 tarball.

Re: [Mono-list] bool Type.op_Inequality (Type, Type) Implement it properly once 4.0 impl details are known.

2012-05-24 Thread Robert Jordan
On 24.05.2012 00:17, Alberto León wrote: This is the only alert that MoMa reported after examine LUCENE.NET bool Type.op_Inequality (Type, Type) Implement it properly once 4.0 impl details are known. Can I use LUCENE.NET without lossing functionality? You can. Robert

Re: [Mono-dev] strange problem with mkbundle

2012-04-26 Thread Robert Jordan
On 24.04.2012 12:46, michelw wrote: Hello, i've a strange problem. I do a simple program for test (download a http file, and print to console the file), who works fine on framework 2, 3, 3.5, 4.0. (on dev machine) First problem: When i use mkbundle -o mytest mytest.exe --deps --static, i see

Re: [Mono-dev] BUG in mkbundle 2.10.8

2012-04-18 Thread Robert Jordan
On 18.04.2012 15:52, Andrew Tierney wrote: I believe there is a bug in the 2.10.8 Mono for Windows release. When I issue the following command, I get an error as shown below: http://mono.1490590.n4.nabble.com/Problem-running-mkbundle-using-cygwin-windows-td2990382.html Robert

Re: [Mono-dev] Mono Maintainers list

2012-04-15 Thread Robert Jordan
On 10.04.2012 23:54, Alex Rønne Petersen wrote: So, in order to put together an initial list, I'm writing to the various dev lists. If you are willing to take maintainership of a particular part of Mono's source base, please reply to this email with a description of the parts of Mono you wish

Re: [Mono-list] Marshaling string on Windows returns Garbage??

2012-03-13 Thread Robert Jordan
On 13.03.2012 12:48, efontana wrote: My code (on Windows) uses CoTaskMemAlloc to allocate the string and strcpy it into the buffer. However, instead of returning test it returns eight question marks usually when I see things like this its a ANSI / Unicode problem. My C++ host app is

Re: [Mono-list] Marshaling string on Windows returns Garbage??

2012-03-13 Thread Robert Jordan
On 13.03.2012 12:48, efontana wrote: My code (on Windows) uses CoTaskMemAlloc to allocate the string and strcpy it into the buffer. However, instead of returning test it returns eight question marks usually when I see things like this its a ANSI / Unicode problem. My C++ host app is

Re: [Mono-list] Embedded Mono using DllImport(__Internal) and returning string

2012-03-12 Thread Robert Jordan
On 12.03.2012 20:51, efontana wrote: I'm using Embedded Mono and P/Invoke DllImport. If I have a method which returns a string [DllImport(__Internal, EntryPoint = CSharp_Test_ReturnString)] public extern static string CSharp_Test_ReturnString(); The corresponding C method should

Re: [Mono-list] System.IO.Ports / Events

2012-03-08 Thread Robert Jordan
On 28.05.2010 14:06, yp_381 wrote: My question is, if the information regarding the implementation state of the DataReceived-Event provided here http://www.mono-project.com/HowToSystemIOPorts is still correct. Everything I found about it was several months, or even years old. Are the events

Re: [Mono-dev] Building Mono on Windows

2012-03-04 Thread Robert Jordan
On 04.03.2012 15:50, Atsushi Eno wrote: Some monotouch guys broke jay-related builds on Windows and they are kept as they are. This is already fixed. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] Building Mono on Windows

2012-03-03 Thread Robert Jordan
Hi Jonathan, On 03.03.2012 16:23, Jonathan Chambers wrote: I am attempting to build mono on Windows using cygwin. I have been building the runtime using Visual Studio, and using class libraries built on Linux/OSX. This prevents me from easily running the runtime/classlib tests though. So, I

Re: [Mono-dev] Building Mono on Windows

2012-03-03 Thread Robert Jordan
Hi Jonathan, On 03.03.2012 18:01, Jonathan Chambers wrote: Hello Robert, $ git config --global core.autocrlf true I believe I enabled that following directions for Windows here: http://help.github.com/line-endings/ Should that be set to 'input'? Yes. It's 'input' on my system, and it

Re: [Mono-list] Mono-list Digest, Vol 82, Issue 22

2012-02-24 Thread Robert Jordan
Since we're rather skilled to answer questions regarding porting *from* MS.NET *to* Mono, there is no wonder that nobody responded, even if the issue is most likely a bug in Mono. nobody responding as if I had not asked anything (in two lists!) seems to be quite rude to me, but if that's the

Re: [Mono-list] Mono, Foxboard G20, /dev/ttys2 no receive ?

2012-02-24 Thread Robert Jordan
On 24.02.2012 09:38, salorob wrote: Hi Robert, I have to be honest, i don't have a clue where to start with this. At this point my lack of deeper knowledge of C and linux made me decide to try mono on an embedded device. I've attached a sample of the recipe from my former post. The code is

Re: [Mono-list] Unbox a C# object after invoke?

2012-02-24 Thread Robert Jordan
On 24.02.2012 20:47, efontana wrote: - C++ struct ComplexResults { int x; int y; this must be a MonoString* because mono_runtime_invoke does not support p/invoke marshaling: char* str; } Robert ___ Mono-list maillist -

Re: [Mono-dev] System.Runtime.Remoting.Channels.Tcp upgrade to Async

2012-02-23 Thread Robert Jordan
Hi Pablo, On 23.02.2012 14:17, pablosantosl...@terra.es wrote: Hi there, As far as I see here: https://github.com/mono/mono/tree/master/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Tcp the good old TCP channel has been largely untouched for about 4 years now. We use it

Re: [Mono-list] Mono, Foxboard G20, /dev/ttys2 no receive ?

2012-02-22 Thread Robert Jordan
On 22.02.2012 10:13, salorob wrote: Anyone? Find out how this has to be done in C, and we'll show you how to convert the code to Mono. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list

Re: [Mono-list] Mono, Foxboard G20, /dev/ttys2 no receive ? (salorob)

2012-02-22 Thread Robert Jordan
On 22.02.2012 13:19, José Baltasar García Perez-Schofield wrote: Hi, there! Anyone? Although there are a lot supportive people in this list, who answer when do know about the problem, this void is unfortunately quite common, in general. I asked about a problem and

Re: [Mono-list] Mono, Foxboard G20, /dev/ttys2 no receive ?

2012-02-22 Thread Robert Jordan
On 22.02.2012 14:59, salorob wrote: Hi Robert, Thankyou for your reply. The code that i simulate in Mono is this one. Simple Send And Receive: This? #define TIOCSRS485 0x542F ... // Set RS485 mode: rs485conf.flags |=

Re: [Mono-list] Mono, Foxboard G20, /dev/ttys2 no receive ?

2012-02-22 Thread Robert Jordan
On 22.02.2012 15:53, salorob wrote: Hi Robert, Again, thank you. I will try this, i do understand all this is possible from out of mono ? It is, but it's pretty ugly as you've certainly noticed. If you're compiling your own Mono for this device and don't care about compatibility with

Re: [Mono-list] Mono, Foxboard G20, /dev/ttys2 no receive ?

2012-02-22 Thread Robert Jordan
On 22.02.2012 16:30, salorob wrote: I have not compiled my own mono just yet, is there a place I can start to see if that's something for me? http://mono-project.com/Compiling_Mono Robert ___ Mono-list maillist - Mono-list@lists.ximian.com

Re: [Mono-dev] starting process in Linux environment

2012-02-21 Thread Robert Jordan
On 21.02.2012 13:36, pattex007 wrote: Hi i'm trying to start a proces in linux but it fails. the problem is the process argument, it doesnt recognize it. Process procNetAdapters = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(ifconfig);

Re: [Mono-dev] starting process in Linux environment

2012-02-21 Thread Robert Jordan
On 21.02.2012 14:39, Robert Jordan wrote: On 21.02.2012 13:36, pattex007 wrote: Hi i'm trying to start a proces in linux but it fails. the problem is the process argument, it doesnt recognize it. Process procNetAdapters = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo

Re: [Mono-dev] starting process in Linux environment

2012-02-21 Thread Robert Jordan
On 21.02.2012 14:59, pattex007 wrote: if i run this i get an error with stacktrace I like how you kept that stacktrace well hidden from us ;) Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

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