Re: [Mono-list] mono_runtime_invoke not catching exceptions?

2012-02-21 Thread Robert Jordan
On 21.02.2012 18:36, efontana wrote: I'm using Embedded mono, I created a small test program who's method I can call and as a test I had that method do a throw new Exception(Catch this in C++); I passed in a MonoObject* exception = NULL; as the last argument to mono_runtime_invoke, the method

Re: [Mono-list] mono_runtime_invoke not catching exceptions?

2012-02-21 Thread Robert Jordan
On 21.02.2012 21:47, efontana wrote: Nope, I downloaded the MSI installer, didn't build it, got it from here: http://www.go-mono.com/mono-downloads/download.html I have more info now though: The assembly that I'm loading is Windows Forms .exe, if, I throw the exception in Form_Load, it's not

Re: [Mono-list] mono_runtime_invoke not catching exceptions?

2012-02-21 Thread Robert Jordan
On 21.02.2012 22:15, efontana wrote: Interesting, I wonder if this applies: http://msdn.microsoft.com/en-us/library/system.windows.forms.application.setunhandledexceptionmode.aspx Yes, this is likely the issue. Unfortunately Mono doesn't implement it, or it doesn't work. Under MS.NET, the

Re: [Mono-dev] UserName/Password not being used by Process/ProcessStartInfo?

2012-02-16 Thread Robert Jordan
On 16.02.2012 07:03, ray2k wrote: Note the disparity between 'Invoking HelloWorld.exe as testuser' and 'Environment.UserName = ec2-user'. What gives? I know slightly more than nothing about linux- is this related to its shell/security posture or something? Shouldn't I be seeing

Re: [Mono-dev] Manifest file with mono in order to run apps in Administrator

2012-02-14 Thread Robert Jordan
On 13.02.2012 21:46, Nixeus wrote: Hello, I have created a little C# apps with MonoDevelop that needs Administrator privileges. I know that it's possible to force running as administrator with a manifest file embedded with : requestedExecutionLevel level=requireAdministrator uiAccess=false

Re: [Mono-dev] SSL Certificate Binding

2012-02-09 Thread Robert Jordan
On 09.02.2012 14:30, monoUser wrote: My HttpListener prefix looks like that m_HttpListener.Prefixes.Add( string.Format(http://+:9920/;) ); You may want to use the https-schema. Robert ___

Re: [Mono-dev] Process.Start closing file descriptors

2012-01-27 Thread Robert Jordan
On 27.01.2012 12:54, Weeble wrote: I have a program that uses System.IO.Pipes.AnonymousPipe{Server,Client}Stream on .NET to communicate between a parent and child process while still allowing the child process to use stdin, stdout and stderr normally. I've found that this part of System.IO.Pipes

Re: [Mono-dev] FireFox not correctly detected as high level browser?

2012-01-27 Thread Robert Jordan
On 27.01.2012 14:22, H . wrote: I guess that this version of FireFox is somehow not always accepted as a high level browser. As a result, the page is rendered in compatibility mode. There might be a bug in the browser detection block inside the Mono class library. This problem is very difficult

Re: [Mono-dev] Mono.Data.Sqlite performance

2012-01-27 Thread Robert Jordan
On 27.01.2012 15:54, David A Knight wrote: I have been looking at changing an iOS app over to using Monotouch and run into an issue with Sqlite performance. Writing some test code (not running on a device) that just opens a database and does a number of inserts (in a transaction) the

Re: [Mono-list] System.Net.HttpWebRequest using a System.IO.MemoryStream as a buffer

2012-01-27 Thread Robert Jordan
On 27.01.2012 02:33, Maurício Linhares wrote: And here is the code I'm using - https://gist.github.com/1676771 Since you're use KeepAlive = true, HttpWebRequest must be able to compute the Content-Length header value. It does it by using a memory stream. You may want to try this:

Re: [Mono-aspnet-list] help on hosting asp.net applications on linux suse under apache2(httpd)?

2012-01-25 Thread Robert Jordan
On 25.01.2012 13:19, chandu wrote: pls kindly help me out.and pls provide some links to do this http://mono-project.com/ASP.NET ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com

Re: [Mono-dev] How to access AOTed assembly code?

2012-01-25 Thread Robert Jordan
On 25.01.2012 21:45, Kamal Aboul-Hosn wrote: Thanks, Robert, that worked very well. I have one more question, if I may. So I'm embedding Mono on Android on ARM. Up until now, I've been AOT compiling the libraries by running a little app on the Android device itself. Obviously, in the long term,

Re: [Mono-dev] How to access AOTed assembly code?

2012-01-24 Thread Robert Jordan
On 24.01.2012 19:39, Kamal Aboul-Hosn wrote: Hi, everyone, If I call mono --aot=static,asmonly on a dll to generate a .s file, how can I get Mono to load the generated AOT'ed assembly if I include the .s in a native .so I'm building myself as part of an application? It seems Mono normally just

Re: [Mono-list] Named mutex not working

2012-01-22 Thread Robert Jordan
On 22.01.2012 01:17, Nicholas Frechette wrote: Are named mutexes supported under mono? They are, if you enable shared handles by setting the MONO_ENABLE_SHM environment variable, e.g. MONO_ENABLE_SHM=1 mono yourapp.exe Robert ___ Mono-list

Re: [Mono-dev] Centralized MonoStore

2012-01-20 Thread Robert Jordan
On 20.01.2012 08:18, jaysonp wrote: Hi Robert, Again I would make a follow-up regarding my question about $monoprefix in Windows. $monoprefix does not exist. It's just a shortcut I'm using in place of directory where Mono was installed into. Robert

Re: [Mono-dev] AOT compiler crash

2012-01-20 Thread Robert Jordan
On 20.01.2012 20:38, Michael Bayne wrote: I'm trying to get IKVM working with MonoTouch. That has required a lot of crazy hackery, but now I'm crashing the AOT compiler, and I don't think I'm going to be able to fix this one myself (since I don't have the source). Here's what it reports: Try

Re: [Mono-dev] AOT compiler crash

2012-01-20 Thread Robert Jordan
On 20.01.2012 21:46, Michael Bayne wrote: On Fri, Jan 20, 2012 at 12:31 PM, Robert Jordanrobe...@gmx.net wrote: Try to add -v -v -v to the AOT compiler's command line arguments in MonoDevelop. Unfortunately that didn't yield any additional output. BTW, the MonoTouch mailing list is over

Re: [Mono-dev] Centralized MonoStore

2012-01-18 Thread Robert Jordan
On 18.01.2012 02:55, jaysonp wrote: Thanks again Robert but another clarification... Does this mean that I just have to add the m parameter/switch on this line of the script to activate the mono cert store? Like this: */ $certmgr /add /c CA $certfile /m/* Or should I change the c

Re: [Mono-dev] Centralized MonoStore

2012-01-18 Thread Robert Jordan
On 18.01.2012 14:24, jaysonp wrote: Hi Robert, $certmgr /add /c CA /m $certfile runs OK. However, 0 certificates were added. Certmgr displays: */ Unknown file extension: 0 certificate(s) added to store Trust /* Then maybe $certmgr /add /c /m CA $certfile

Re: [Mono-dev] Centralized MonoStore

2012-01-18 Thread Robert Jordan
On 18.01.2012 17:24, jaysonp wrote: I thought you've mentioned that .mono will be activated once mono store is updated with certs... Do you have an idea where the certs were installed/placed after the script was executed and if the machine's mono cert store was activated already? It looks like

Re: [Mono-dev] Centralized MonoStore

2012-01-17 Thread Robert Jordan
On 16.01.2012 11:24, jaysonp wrote: Hi Robert, Thank you very much for the steps you provided. It's really helpful. I have 3 clarifications though. Specifically, for step number 4: /* 4) mount the shared folders an all other machines as $monoprefix/share/.mono/.*/ 1. This

Re: [Mono-dev] Centralized MonoStore

2012-01-17 Thread Robert Jordan
On 17.01.2012 16:54, jaysonp wrote: Now after running this shellscript, should I expect that $monoprefix/share/.mono/ will exist? Because I already did run this shellscript but .mono is still not existing? Does this mean that mono cert store is still not existing? The script operates certmgr

Re: [Mono-dev] Centralized MonoStore

2012-01-16 Thread Robert Jordan
On 16.01.2012 08:33, jaysonp wrote: Any feedback? Thank you Sorry, I'm not proficient enough to tell you how to share folders securely between Unix and Windows. I can only give your a sketch: 1) set up a machine running Mono that can act as a server (Windows or Unix, it doesn't matter), 2)

Re: [Mono-dev] How can I have mono FastCGI run ONE application for several virtual directories ?

2012-01-16 Thread Robert Jordan
On 16.01.2012 23:19, quandary wrote: How can I have fastcgi use the same application for all those subdomains ? fastcgi-mono-server4 /applications=/:/var/www/your-chat-app With other words: omit the host from the application descriptor. Robert

Re: [Mono-dev] Centralized MonoStore

2012-01-13 Thread Robert Jordan
On 06.01.2012 07:15, jaysonp wrote: Good day, Is there a way we can have a centralized monostore? Where in other machines can connect and synch their updated Digital Signatures / Certificates to this? Mono does not implement a centralized store for certificates. Under Unix, this can

Re: [Mono-list] Mdb hangs

2012-01-13 Thread Robert Jordan
On 13.01.2012 15:40, Ken Bass wrote: On 01/13/2012 03:49 AM, Ian Norton wrote: Mdb itself hasn't worked that well for me since mono 2.6, what mdb version is it? How can I tell? mdb -version doesn't print a version. Mono itself if 2.10.5. so I think mdb is 2.10. Mdb has been deprecated in

Re: [Mono-dev] Mono runs out of trampolines in FullAOT-mode

2012-01-12 Thread Robert Jordan
On 12.01.2012 12:18, Martin Däumler wrote: Hello, I tested Mono-2.10.8.1 on Linux/x86. In my test program [1], there is an interface defining 1000 methods. This interface is implemented by two classes. When running the program, one of these two class is chosen and the 1000 methods are called

Re: [Mono-dev] [Mono Embed]How can I implement an abstract class of C++ in C#?

2012-01-10 Thread Robert Jordan
On 10.01.2012 05:43, xoyojank wrote: I have embeded mono as script engine, and now I want to implent C++ abstract interface in C#. The embedded API does not provide any C++ support. You may want to look at this: http://tirania.org/blog/archive/2011/Dec-19.html Robert

Re: [Mono-dev] Catching NRE in Embedded Mono

2012-01-09 Thread Robert Jordan
On 09.01.2012 02:02, Jeff Ward wrote: I'm using embedded mono in an application, and I want to be able to catch when I have a Null reference in Mono. At the moment, it looks like mono is crashing on a null reference (maybe sending SIGSEGV?). I'd like to catch these exceptions in the

Re: [Mono-dev] Catching NRE in Embedded Mono

2012-01-09 Thread Robert Jordan
Jeff, On 09.01.2012 16:03, Jeff Ward wrote: I'm not personally overriding the SIGSEGV handler (though I may in the future) but the Visual Studio debugger may be? Is that possible? Definitely. Last time I checked (I don't remember if it was with VS 2008 or 2010), I had to give up and use

Re: [Mono-dev] Catching NRE in Embedded Mono

2012-01-09 Thread Robert Jordan
On 09.01.2012 23:14, Jonathan Chambers wrote: Jeff, Mono uses getenv to access the MONO_DEBUG environment variable. Make sure you set it with _putenv rather than SetEnvironmentVariable, as they are two blocks of environment variables that are maintained separately. Ouch! I was debugging

Re: [Mono-list] Can't Port Winforms App [newbie]

2012-01-07 Thread Robert Jordan
On 07.01.2012 15:43, sgc9812 wrote: Log file is attached... http://mono.1490590.n4.nabble.com/file/n4273121/error.log error.log You're misinterpreting the logs. Mono is probing for X11 libs even under Windows. To be able to see the console output (and possible exceptions), you should invoke

Re: [Mono-list] Can't Port Winforms App [newbie]

2012-01-07 Thread Robert Jordan
On 07.01.2012 21:18, Ian Norton wrote: Hello, One reason might be that your Linux machine might not have them installed. What distribution is it and do you have a graphical login? His distro is called Windows 7. Robert ___ Mono-list maillist -

Re: [Mono-dev] was [DeflateStream on OSX], now: embedded mono not finding some mono libs

2011-12-20 Thread Robert Jordan
On 20.12.2011 19:46, Jonathan Shore wrote: I received the exception below when trying to create a gzip deflate stream. I have since located the libMonoPosixHelper.dylib in the frameworks directory: /Library/Frameworks/Mono.framework/Versions/2.10.6/lib/libMonoPosixHelper.dylib

Re: [Mono-dev] jay cannot open mcs/class/System.XML/System.Xml.XPath/Parser.jay

2011-12-20 Thread Robert Jordan
On 21.12.2011 00:41, Dale Schumacher wrote: Tried a fresh build today (new install on a new Windows 7 box) under Cygwin 1.7.9-1 using sources cloned by git. Got the following error: ./../../jay/jay -ct ./../../jay/skeleton.cs

Re: [Mono-dev] windows build of a mono embedded app [part 2]

2011-12-19 Thread Robert Jordan
On 19.12.2011 18:49, Jonathan Shore wrote: This successfully creates a dll. The problem is that when trying to load this dll into R, complains that cannot find libmono-2.0.As I do most of my work on OSX and Linux, have not yet determined what governs the DLL search path.Also,

Re: [Mono-list] How to debug: my ASP.NET website hangs with multiple simultaneous requests

2011-12-19 Thread Robert Jordan
On 19.12.2011 00:23, Marvin wrote: I hope I've given enough information. I could provide a full report of thread apply all bt if you'd like. Yes, please attach the full backtrace because you've posted only the most useless thread: the main thread waiting for console input (probably a

Re: [Mono-dev] R - mono: linking to libmono.a on windows (cygwin) problems

2011-12-17 Thread Robert Jordan
Hi Jonathan, Instead of passing c:/cygwin/home/jonathan.shore/Dev/hf/src/Libraries/CApi/lib/win32/libmono-2.0.dll.a directly to the linker, try this: -Lc:/cygwin/home/jonathan.shore/Dev/hf/src/Libraries/CApi/lib/win32 -lmono-2.0 MinGW is smart enough to fetch the correct library (it will

Re: [Mono-dev] R - mono: linking to libmono.a on windows (cygwin) problems

2011-12-16 Thread Robert Jordan
Hi, Linking with libmono.a is not supported under Cygwin. Moreover, linking a cygwin app with libmono.la (libmono.dll.a - mono.dll) would disable Mono's SIGSEGV handler. This means that NullReferenceExceptions would crash your app. A compilation like: g++ -o rDotNet.dll -Imono include dir

Re: [Mono-dev] suggestion to fix remoting behavior

2011-12-15 Thread Robert Jordan
Hi Andrey, Do you have a test case for these issues? Thanks Robert On 15.12.2011 09:24, Andrey Chernomyrdin wrote: Have a nice day, I try to run my C# application in mono and have some problem with remoting. After small experiment I make some fixes in mono runtime. patch #1

Re: [Mono-dev] UNC pathing in C# for MonoTouch IOS getting network path

2011-12-15 Thread Robert Jordan
On 15.12.2011 17:49, Mike Murdock wrote: I am trying to point to a network file share and don't know how to format the URI I have tried @\\server\share\path\test.jpgfile:///\\server\share\path\test.jpg and it never gets to the image. I am using monotouch/monodevelop for IOS. Any Ideas?

Re: [Mono-aspnet-list] Could not find any resources appropriate for the specified culture or the neutral culture.

2011-12-09 Thread Robert Jordan
On 09.12.2011 13:53, hjf1223 wrote: I have the following class to get the string resource from system assemblies: Mono does not provide the same resource sets as Microsoft because resources are not part of the API. Your code is digging deeply is Microsoft's implementation details and is not

Re: [Mono-dev] P/Invoking libsmbclient from OSX

2011-12-06 Thread Robert Jordan
Hi, On 06.12.2011 20:53, Alfred Hall wrote: Good afternoon! I have been trying to P/Invoke into libsmbclient on OSX 10.6 running 64 bit kernel. I compile the samba library myself (version 3.6.0) with -m32 and managed to get a simple stub working in C/C++: static void auth_fn(const char

Re: [Mono-aspnet-list] Cross Domain Scripting

2011-12-05 Thread Robert Jordan
On 05.12.2011 17:28, Tim Nelson wrote: I need for a test to enable cross-domain scripting on a mod_mono server I have running. I have found something that says I just need to add the XML to my Web.config (below), but mono crashes when it sees it. How do I enable cross-domain scripting?

Re: [Mono-aspnet-list] xsp2-mono zombie process

2011-12-02 Thread Robert Jordan
On 02.12.2011 21:48, jacoblinux wrote: Hi, I compiled latest Mono 2.10.6 sources and sometimes when I try to run xsp2 to test my web application , turn it to zombie process and I cannot kill process. [jacob@localhost labsergen]$ ps -ef | grep mono jacob 3155 1 71 15:14 ?

Re: [Mono-list] Getting the milliseconds of a file's stat information

2011-12-01 Thread Robert Jordan
Hi Matthias, On 01.12.2011 15:01, Mathias Tausig wrote: I want to read the creation/modify date information of a file and want to use the Mono.Unix.Native.Stat structure for it. I create the Stat variable either via UnixFileSystemInfo.ToStat or directly with Mono.Unix.Native.Syscall.stat,

Re: [Mono-winforms-list] No UDP broadcast messages received

2011-11-29 Thread Robert Jordan
On 29.11.2011 14:40, sharkal wrote: The socket is configured something like this: Socket clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); clientSocket.ReceiveBufferSize = 2 * 1024 * 1024; clientSocket.Bind(localEndPoint); What IP is localEndpoint?

Re: [Mono-list] mkbundle on CentOS can't find package mono

2011-11-22 Thread Robert Jordan
On 22.11.2011 18:42, Chris Derrick wrote: Not sure why, but this morning when I tried again I got a different result. The result of pkg-config --cflags mono is now: -D_REENTRANT -I/usr/lib/pkgconfig/../../include/mono-1.0 When I try bundling I get this error during the compiling phase:

Re: [Mono-list] Running several mono applications using the same DLLs at the same time

2011-11-21 Thread Robert Jordan
On 20.11.2011 01:51, ReneFFM wrote: Can noone help here ? Not yet fixed that problem... It also appeares if the second application run as another user. What kind of machine are you running on? Are there some resource limits in effect (limited VPS etc.)? Robert

Re: [Mono-list] mkbundle on CentOS can't find package mono

2011-11-21 Thread Robert Jordan
On 21.11.2011 17:01, Chris Derrick wrote: In CentOS 6.0 I've built mono from the source code at http://ftp.novell.com/pub/mono/sources/mono/mono-2.6.7.tar.bz2 and am now able to run my code just fine. Unfortunately I cannot bundle it though. The output suggests that I add the directory

Re: [Mono-list] mkbundle on CentOS can't find package mono

2011-11-21 Thread Robert Jordan
On 21.11.2011 19:25, Chris Derrick wrote: The result of pkg-config --cflags mono was: Package mono was not found in the pkg-config search path. Perhaps you should add the directory containing `mono.pc' to the PKG_CONFIG_PATH environment variable No package 'mono' found Check that

Re: [Mono-aspnet-list] Apache + mod-mono serving httpd/unix-directory every so often

2011-11-19 Thread Robert Jordan
On 18.11.2011 23:02, Marcelo Zabani wrote: I'm having a problem of a blank file of type httpd/unix-directory being served every so often. I have searched google and read somewhere that this happens when Apache can't find a virtual host to serve the request. What troubles me is why does this

Re: [Mono-aspnet-list] Apache + mod-mono serving httpd/unix-directory every so often

2011-11-19 Thread Robert Jordan
Marcelo, Try to put all aliases inside the virtual host element: VirtualHost *:80 ServerName elomeno.com ServerAlias www.elomeno.com www.elomeno.com.br elomeno.com.br Include /etc/apache2/vhosts.d/elomeno.include /VirtualHost Robert

Re: [Mono-aspnet-list] Mono and IHttpHandler

2011-11-17 Thread Robert Jordan
On 17.11.2011 18:19, mbrenn wrote: Within XSP or mod_mono on Apache, I can create an index.aspx which is parsed and executed perfectly according to .Net-Framework, but it seems to be that the handler is not included within the mod_mono-Framework. Is using IHttpHandler really implemented

Re: [Mono-dev] How to determine the executable directory in a mkbundle-packaged app?

2011-11-15 Thread Robert Jordan
On 15.11.2011 07:13, Deniska wrote: So the question is: how can I determine the _real_ location of a mkbundle-packaged app during runtime? Is there are a way? If no - why? You may want to get this info from the proc file system: using System; using System.Text; using Mono.Unix.Native; class

Re: [Mono-aspnet-list] Stopping fastcgi-mono-server gracefully and website content updating with no need of restarting it

2011-11-12 Thread Robert Jordan
On 12.11.2011 06:05, Marcelo Zabani wrote: 1. Can I update the contents of my website (dll's, for instance) without having to restart the fastcgi process? Is there a possibility of momentaneous failure for my visitors when I'm doing that? The web app should restart (by recycling

Re: [Mono-dev] linking with lib mono-2.0 on osx (64 bit vs 32 bit)

2011-11-10 Thread Robert Jordan
On 10.11.2011 15:14, Jonathan Shore wrote: Understood. Towards that end, is there a configuration option I can use to build mono on OSX without gnome / GTK#, etc. I don't use UIs with mono and have had numerous issues in building the C part of the UI stack in the past. UI stacks were never

Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

2011-11-09 Thread Robert Jordan
Hi Martin, (1) Configure system proxy settings and reboot machine (2) In terminal echo $http_proxy returns http://http.proxy:8080/;; echo $no_proxy returns localhost,127.0.0.0/8,*.local (3) Created an ASP.NET project in MonoDevelop and entered the following code in It's probably the desktop

Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

2011-11-09 Thread Robert Jordan
On 09.11.2011 13:51, H . wrote: Hi Robert, I have now debugged the issue using Ubuntu Maverick/ 32 bit. I did the following: (1) Configure system proxy settings and reboot machine (2) In terminal echo $http_proxy returns http://http.proxy:8080/;; echo $no_proxy returns

Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

2011-11-09 Thread Robert Jordan
Hi Martin, please file a bug against MD's bugzilla. IIRC, MD has an integrated bug reporting feature. Robert On 09.11.2011 18:36, H . wrote: Hi Robert, your suggestion is correct. It's not a problem of Mono itself but rather a problem with MonoDevelop's debugging session. I have

Re: [Mono-list] System.Windows.Forms is where exactly??

2011-11-09 Thread Robert Jordan
On 09.11.2011 11:58, alienDog wrote: I downloaded, compiled and installed Mono 2.10.2 on my Linux Mint 9 LXDE system, because there is an app that I need to get running (MarcEdit). MarcEdit requires the latest mono 2.10 to work, and since the mono in Mint 9 repositories is older, I decided to

Re: [Mono-list] Using mono aot / aot-full compilation: nothing appears to happen?

2011-11-07 Thread Robert Jordan
On 07.11.2011 19:34, applepi wrote: I'd not seen mkbundle. I'll have to look into that as well.. this is going into proprietary code for a customer and I'm not as brushed up on how all of the GPL/LGPL restrictions affect that as I should be, so I'll have to dig into that somewhat. You

Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

2011-11-05 Thread Robert Jordan
Hi Martin, On 05.11.2011 09:48, H . wrote: Hi Robert, I am using XSP2 MonoDevelop to debug. You have to restart your user session if you've changed the proxy settings. Being environment-based, these settings won't propagate to running processes. Based on the answers I think that it might

Re: [Mono-dev] linking with lib mono-2.0 on osx (64 bit vs 32 bit)

2011-11-05 Thread Robert Jordan
On 05.11.2011 00:59, Jonathan Shore wrote: Hi, I am a bit fuzzy as to whether a 64 bit version of mono exists for osx. According to this page http://www.mono-project.com/Supported_Platforms, it does, or at least the JIT can generate 64 bit code. In this regard, all of the mono libraries

Re: [Mono-dev] Bug in mono 2.6.1 SessionSQLServerHandler.cs

2011-11-05 Thread Robert Jordan
On 05.11.2011 14:28, quandary wrote: I'm not going to waste another 15 minutes by adding a bug report, deleting a * should be a 20-seconds no-brainer for somebody with git write-access. Fixed on master and 2-10 branch. Thanks for reporting. Robert

Re: [Mono-dev] Problem handling more the 1024 file handle

2011-11-04 Thread Robert Jordan
On 04.11.2011 10:17, Torello Querci wrote: This is the first test that I realized. On the same machine, same kernel same calls You don't say which Mono arch you're using. On 32 bit, the following might not be correct: struct rlimit { public IntPtr rlimit_cur;

Re: [Mono-dev] Problem handling more the 1024 file handle

2011-11-04 Thread Robert Jordan
On 04.11.2011 10:49, Torello Querci wrote: Sorry, You are right I'm on 32bit arch Then you need this: struct rlimit { public long rlimit_cur; public long rlimit_max; } Robert ___

Re: [Mono-dev] Problem handling more the 1024 file handle

2011-11-04 Thread Robert Jordan
On 04.11.2011 11:18, Torello Querci wrote: Hy Robert, On 32bit arch IntPtr is 32bit, on 64 bit arch, IntPrt is 64 bit. Yes, this is not the issue here. However I try your suggestion but the setrlimit no more work. Looking inside the strace output this is the setrlimit syscall:

Re: [Mono-dev] Problem handling more the 1024 file handle

2011-11-04 Thread Robert Jordan
On 04.11.2011 08:19, Torello Querci wrote: Hi al, trying to handle more that 1024 handle file I got an exception even if I increase the max number of file limit using setrlimit. The example source code below. Of course mono have the right pcap permission. This is a bug in Mono's io-layer:

Re: [Mono-dev] Problem handling more the 1024 file handle

2011-11-04 Thread Robert Jordan
On 04.11.2011 13:26, Robert Jordan wrote: Meanwhile, you could just increase the open files limit with ulimit -S -H 2, so don't mark the bug as super critical ;) I've fat-fingered ulimit's arguments: ulimit -S -H -n 2 Robert ___ Mono-devel

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Robert Jordan
On 04.11.2011 19:32, Jonathan Shore wrote: Note that I am not initializing mono_domain_assembly_open() with an exe, rather with a dll. Perhaps there is some setup I need to do? How are you initializing the runtime exactly (code)? You probably need mono_jit_init_version() or alternatively

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Robert Jordan
On 04.11.2011 20:05, Jonathan Shore wrote: My assembly is definitely 4.0 and monodis --assemblyref indicates dependency on .NET 4 assemblies. I'll look into mono_jit_init_version() and see whether this helps. Yes, but you're not using it for initialization. // create AppDomain

Re: [Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

2011-11-04 Thread Robert Jordan
On 04.11.2011 20:22, Jonathan Shore wrote: I'm working off of http://www.mono-project.com/Embedding_Mono with regard to initialization. I tried a number of possible version #s for the mono_jit_init_version(), but indicated: WARNING: The runtime version supported by this application is

Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

2011-11-03 Thread Robert Jordan
On 03.11.2011 13:51, H . wrote: Environment.GetEnvironmentVariable(no_proxy) not working in Linux ASP.NET app After configuring proxies in Ubuntu, the environment variable no_proxy contains the list of proxies to bypass. Using Environment.GetEnvironmentVariable(no_proxy) we can retrieve the

Re: [Mono-dev] Environment.GetEnvironmentVariable() not working in Linux ASP.NET app

2011-11-03 Thread Robert Jordan
On 03.11.2011 14:12, H . wrote: Hi Robert, thanks for your hints. The link sent describes how environment variables can be set up in Ubuntu. Of course, nobody would try to manually set up environment variables when trying to configure proxies. This is done by using SystemSettingsNetwork

Re: [Mono-list] Installing Windows service on Windows

2011-11-02 Thread Robert Jordan
On 02.11.2011 16:20, Erik Cederstrand wrote: Hi all, (Newbie warning) I have created a test Windows Service using Mono 2.10.6 and MonoDevelop 2.8.1 on OSX and compiled it against .NET 4.0 to an executable. I then wanted to install it on my Windows 7 VM (Mono is not installed there) using

Re: [Mono-dev] interacting with method signatures from C (embedded)

2011-10-28 Thread Robert Jordan
On 28.10.2011 01:23, Jonathan Shore wrote: MonoMethod* find_method ( MonoDomain* domain, MonoClass* type, const char* name, int nargs, MonoClass** types) I can iterate over the memebers with mono_signature_get_params(), however, this returns a MonoType* struct

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

2011-10-25 Thread Robert Jordan
On 25.10.2011 18:18, Chris Derrick wrote: How would one use mkbundle if they were working with a service? I've already written a program with monodevelop that generates an executable which runs correctly via mono-service2 Program.exe. I attempted mkbundle --static Program.exe -o program and

Re: [Mono-list] Catching Exceptions with embedded Mono

2011-10-15 Thread Robert Jordan
On 15.10.2011 08:19, Paril wrote: Hey there. I'm probably missing something very basic, but, how do I display exception data related to exceptions thrown by mono_runtime_invoke? I see that I can easily post up a An exception occured message, but to be more user-friendly I'd like for the app

Re: [Mono-list] My code runs on the Visual C # 2010, but in monodevelop 2.8 does not work. What is it?

2011-10-14 Thread Robert Jordan
On 14.10.2011 08:18, Stifu wrote: So this tells us that what fails is the int.Parse() instruction. The changes I proposed were not meant to make it work, just to try to debug the problem, as you didn't give us the Exception message at first. So, it seems like Console.ReadLine() returns null

Re: [Mono-list] Embedding on Windows - TypeLoadException

2011-10-14 Thread Robert Jordan
On 14.10.2011 11:13, Paril wrote: Hi there. I have a strange issue with Mono and embedding it on Windows. I have followed all of the steps to get it installed and working with Windows (built the source to get the .lib file debug DLL files to help, installed the runtime). I'm trying to do

Re: [Mono-list] System.IO.Pipes.PipeTransmissionMode.Message on *nix

2011-10-14 Thread Robert Jordan
On 14.10.2011 00:18, Gregory Junker wrote: Says it's not implemented -- why? Is there a technical reason for not being able to do Message mode on Linux? I couldn't find much (anything, really) at all on this through searching... Only the bits necessary for WCF were implemented. Usually, when

Re: [Mono-dev] DateTime.Now gives a wrong time

2011-10-12 Thread Robert Jordan
On 12.10.2011 13:42, k0l0b0k.v...@gmail.com wrote: user@server:~# date Wed Oct 12 14:09:10 FET 2011 FET? This is an interesting time zone: http://en.wikipedia.org/wiki/Further-eastern_European_Time It seems that Mono is thinking that you're now on EET (Eastern Europe Time, UTC+2), your former

Re: [Mono-dev] DateTime.Now gives a wrong time

2011-10-12 Thread Robert Jordan
On 12.10.2011 22:05, k0l0b0k.v...@gmail.com wrote: Hello guys, thanks for your replies. I think, I've understand the situation. Some weeks ago, Ukraine and Belarus has timezone changes by law, and now we are FET timezone (GMT+3, without DST). As Robert pointed, I've look into TimeZone.*

Re: [Mono-list] Mono Problem !

2011-10-12 Thread Robert Jordan
On 12.10.2011 13:22, papampi wrote: thanks for quick reply mate !!! this is my mono version : payam@PAYAM-UBUNTU:/$ mono --version Mono JIT compiler version 2.6.7 (Debian 2.6.7-5ubuntu3) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread

Re: [Mono-list] Hardening Linux Binaries

2011-10-12 Thread Robert Jordan
On 12.10.2011 21:39, Chris Derrick wrote: By harden I mean provide some protection against disassemblers, debuggers, cracking, and reverse engineering. The purpose is to protect the intellectual property. As you can imagine, in the open source scene such protections are pretty pointless. You

Re: [Mono-winforms-list] An odd redraw problem

2011-10-08 Thread Robert Jordan
On 08.10.2011 14:03, Paul F. Johnson wrote: If I click the NumericUpDown, the code inserts new boxes and also reduces it as expected. However, if I click once to create 3 boxes and then go back down to 2, half of the third row still remains and I have no idea why! Your code does not seem to

Re: [Mono-list] Strange behavior of Process exit events

2011-10-03 Thread Robert Jordan
On 03.10.2011 16:32, Nicholas Frechette wrote: Application A uses the Process:Exited event to monitor application B and that seems to work properly when the monitored process is launched from the monitoring process. It works properly because it's implemented. The other way around (waiting for

Re: [Mono-list] ProcessStartInfo and arguments with a backslash

2011-10-01 Thread Robert Jordan
On 01.10.2011 20:17, Yves Goergen wrote: Hi, I am debugging a problem with my .NET application calling a UNIX programme with arguments. The bash command line looks like this: /usr/bin/smem -P '/usr/sbin/exim4(\s|$)' My C# code to do exactly that is the following: string

Re: [Mono-dev] Socket.Accept() causes [1]+ Stopped

2011-09-28 Thread Robert Jordan
On 27.09.2011 15:28, DJL wrote: Hi everyone, first post on here. I'm getting a bizzarre behaviour and I'm hoping you guys can help. Sorry if this is the wrong place to post this. Short version: Calling Socket.Accept() is causing my application to freeze. A commandline fg resumes it. It's

Re: [Mono-dev] Multiple Monos in a single process

2011-09-21 Thread Robert Jordan
On 21.09.2011 20:30, Joe Dluzen wrote: Whoops, forgot to edit subject. This one should make the above email more apparent. On Wed, Sep 21, 2011 at 2:13 PM, Joe Dluzenjdlu...@gmail.com wrote: Thanks Robert, I expected something like that. Is there an easy way to determine if the runtime has

Re: [Mono-list] mono_add_internal_call function overloading

2011-09-19 Thread Robert Jordan
On 17.09.2011 14:20, Ciunkos wrote: Hello, I'm wondering if it is possible to register overloaded function calls using mono_add_internal_call. I want to use it so user can call different constructors and overloaded methods. This code: mono_add_internal_call(Namescpace.Vector2::.ctor,

Re: [Mono-dev] Multiple Monos in a single process

2011-09-13 Thread Robert Jordan
On 12.09.2011 22:23, Joe Dluzen wrote: Hi all, let's say I have a C# app A which PInvokes to a native SO/DLL B, which embeds Mono for basically 100% of its logic. Do bad things happen on Linux vs Windows? Yes. Under Linux, libmono is statically linked by default. If you p/invoke a library

Re: [Mono-list] Gtk print demo fails on Windows7 for all versions of Mono/Gtk

2011-09-09 Thread Robert Jordan
On 09.09.2011 13:06, Doug Blank wrote: On Fri, Sep 9, 2011 at 3:34 AM, Elmar Hanekeel...@haneke.de wrote: Am 08.09.2011 20:06, schrieb Doug Blank: Wow... nothing. No activity in the bug tracker. No response here. Maybe someone can make some guesses about the issue, or why I can't get any

Re: [Mono-dev] Mono and medium trust

2011-09-03 Thread Robert Jordan
On 03.09.2011 13:10, quandary wrote: You could, but this is not how security evolves ;) xD I know. But for now, a quick and dirty hack is better than half a year of work. Looking at: mono/metadata/loader.c:mono_lookup_pinvoke_call I just wanted to say, that looking at the source file,

Re: [Mono-dev] Mono and medium trust

2011-09-03 Thread Robert Jordan
On 03.09.2011 16:16, quandary wrote: I disagree on the small size. My model names weren't that much larger, even though they had a path. Even on a small name like kernel32.dll it will compare 4 letters 8 times before finding a match. Well, no. Strstr() doesn't take O(n) x O(m), where n, m are

Re: [Mono-dev] Mono and medium trust

2011-09-02 Thread Robert Jordan
On 02.09.2011 15:42, Quandary wrote: Is it possible to run a mono server (xsp4/mono-fastcgi-server4) as medium/low trust ? e.g. to disallow pinvoke (I want to create a mono web-hosting-service ) ? No. Mono's CAS support is incomplete. If not, are there any workarounds to achive

Re: [Mono-dev] Mono and medium trust

2011-09-02 Thread Robert Jordan
On 02.09.2011 17:29, quandary82 wrote: Couldn't I hack together my own custom mono-runtime version, to block DllImport for all dll's that are not in an allowed-dlls list and System.Diagnostics.Process.Start as well ? You could, but this is not how security evolves ;) System.Diagnosts.Process

Re: [Mono-dev] COM, Threads and Mono

2011-09-02 Thread Robert Jordan
Hi Jonathan, How about relying on System.Threading.SynchronizationContext.Current? This could work w/out exposing any internal calls/env vars. This way we offload the burden of implementing a suitable SynchronizationContext on the COM consumer. Done ;) The necessary runtime changes are as

Re: [Mono-dev] COM, Threads and Mono

2011-09-02 Thread Robert Jordan
On 02.09.2011 19:59, Alan wrote: The System.Windows.Forms sync context runs stuff on the winforms main loop, so wouldn't it be prone to exactly the message pumping related deadlocks that were already described? Well, not more deadlock prone than providing a callback and hoping that the

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