Re: [Mono-dev] Deadlock in System.Web.Caching.Cache class

2009-11-08 Thread Robert Jordan
Ivan Radovanovic wrote: Although this dead lock problem continues to potentially exists it seems that problem is after all OS specific - there is some weird behavior of fam/gamin reporting that bin/*.dll files are changed, causing ASP.Net runtime trying to restart application, while at the

Re: [Mono-list] Android

2009-11-04 Thread Robert Jordan
daniel wrote: Silverlight does provide a modern looking user interface. However the current sand boxed, browser based silverlight is not useful. WinMob 7 won't be based on the Silverlight *browser* plugin, which is just a host of the Silverlight framework. WinMob will host Silverlight 3.0

Re: [Mono-list] System.DllNotFoundException, but dll is there.

2009-10-26 Thread Robert Jordan
Lecio wrote: Robert, I did what you said and the 'ldd ./libUFScanner.so' displayed : linux-gate.so.1 = (0xb7f8) libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb7e5d000) libm.so.6 = /lib/i686/cmov/libm.so.6 (0xb7e37000) libgcc_s.so.1 = /lib/libgcc_s.so.1

Re: [Mono-list] System.DllNotFoundException, but dll is there.

2009-10-22 Thread Robert Jordan
Lecio wrote: ### That is the last log created by .exe, the application works normal.. until the button Init scanner be clicked see attached file: http://www.nabble.com/file/p26002699/logs.txt logs.txt ### That is the log after Button Init scanner clicked

Re: [Mono-list] using .NET web service issue - does not work on Mac

2009-10-20 Thread Robert Jordan
Hi, Vit Ulicny wrote: Sorry it took me so long provide this information. I got this error: Error writing request. at System.Net.WebConnectionStream.WriteRequest () [0x00207] in /private/tmp/monobuild/build/BUILD/mono-2.4.2.3/mcs/class/System/System.Net/WebConnectionStream.cs:648

Re: [Mono-list] System.DllNotFoundException, but dll is there.

2009-10-20 Thread Robert Jordan
Lecio wrote: Greetings, When I execute a C# app an error of System.DllNotFoundException is returned, but the dll file is on the same folder that the .exe What are happening ? [ ]'s Lecio debian:/media/disk/Linux/exe/bin# mono UFE30_DemoCS.exe Unhandled Exception:

Re: [Mono-list] System.DllNotFoundException, but dll is there.

2009-10-20 Thread Robert Jordan
Lecio wrote: Oh my.. !! I had that log after executed, how can I fix that dlls missing ? No dll is actually missing. Ps.: Arquivo ou diretório não encontrado = File or folder not found [ ]'s Mono-INFO: DllImport loading library: './libUFScanner.so'. Mono-INFO: DllImport

Re: [Mono-aspnet-list] Could not allocate the Oracle environment

2009-10-14 Thread Robert Jordan
ibrahimsteed wrote: Thanks for your instant reply. I did as you said, and update my httpd.conf as follow, then restart apache2. but the same error occurs again. I don't know what cause this happen.:confused: #some default settings MonoSetEnv ORACLE_BASE=/opt/oracle/oradb MonoSetEnv

Re: [Mono-dev] Problem when embedding dll (without Main method)

2009-10-12 Thread Robert Jordan
holgers wrote: Hello, when embedding a dll which has no main method I encountered the following problem: I cannot invoke mono_jit_exec(...) because there is no main. This results in a not completely initialized runtime. Is there another way to initialize the runtime correctly? There

Re: [Mono-aspnet-list] AOT with ASP.NET

2009-10-05 Thread Robert Jordan
APS wrote: Hi, trying to achieve better performances from my mono web app I was looking at aot. I saw that during loading time it searches for aot files inside temporary cache, as aot compilation must be made manually, how can I retrieve the correct path where to place AOTied dlls?

Re: [Mono-aspnet-list] Very slow website compilation

2009-10-05 Thread Robert Jordan
TRUE; } At 13.30 02/10/2009, Robert Jordan wrote: Hi, APS wrote: and so on, for the thousands of files placed inside the bin directory. It seems to me that there's some problem cause all the files seems missing even if they are there and it always redo the copying. Most of the loading

Re: [Mono-dev] [PATCH] Remoting with generics

2009-10-05 Thread Robert Jordan
Hi Bill, Bill Holmes wrote: Hi, The attached bug fixes calling a remoting method that has an arguments that is an out generic. There is also a test attached. I believe the patch doesn't handle byref generic structs. Robert ___ Mono-devel-list

Re: [Mono-list] Connecting to Oracle database from service at boot

2009-10-05 Thread Robert Jordan
nzsaint wrote: I have a windows service running using mono-service on openSUSE 11.1. The service attempts to start using the init script I have configured ok but then generates the following error during the first attempt to access an Oracle XE (10g) database. Could not allocate the Oracle

Re: [Mono-dev] recent net_1_1 deprecation broke windows build (r143116)

2009-10-03 Thread Robert Jordan
Hi Atsushi, Atsushi Eno wrote: Hello, Win32 build is broken since r143116 (things got fixed after some changes, so trying this revision does not help). Basically the issue is sharing violation that doesn't happen on Linux. I've updated from SVN to r143328 right after seeing your post:

Re: [Mono-aspnet-list] Very slow website compilation

2009-10-02 Thread Robert Jordan
Hi, APS wrote: and so on, for the thousands of files placed inside the bin directory. It seems to me that there's some problem cause all the files seems missing even if they are there and it always redo the copying. Most of the loading time is spent in this multiple shadow copying, as I have

Re: [Mono-dev] 2.6 preview 1

2009-10-01 Thread Robert Jordan
Daniel Morgan wrote: Is the Mono for Windows installer bigger now because it includes the mono.dll and mono static libraries like libmono.a which non-embedders do not need? Mono.dll is required by the Windows build, so it cannot be omitted. Libmono.a is of no use under Windows and it should

Re: [Mono-list] Can't get Ahead-Of-Time compilation working

2009-10-01 Thread Robert Jordan
:) Robert -L Robert Jordan wrote: LKeene wrote: ... The Linux performance is good enough with JIT, but the OSX performance is a little slow so I was hoping that AOT would help here. My app is also doing a ton of startup stuff, so AOT would hopefully help there too. AOT won't improve

Re: [Mono-list] The assembly mscorlib.dll was not found

2009-10-01 Thread Robert Jordan
Cliff Stanford wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rolf Bjarne Kvinge wrote: What am I missing? How do I make mcs find the right path for mscorlib.dll? I think this might help you: http://www.mono-project.com/Parallel_Mono_Environments I have now followed that page

Re: [Mono-list] Trouble running xbuild nightly

2009-09-30 Thread Robert Jordan
mausch wrote: I'm trying to get xbuild nightly running and I'm having some problems. I first installed the 2.4.2.3 release, then I got the latest nightly binaries (monocharge-20090928) and copied the 2.0 dir into C:\Program Files (x86)\Mono-2.4.2.3\lib\mono\2.0. Now, when I run xbuild from

Re: [Mono-list] Can't get Ahead-Of-Time compilation working

2009-09-30 Thread Robert Jordan
LKeene wrote: ... The Linux performance is good enough with JIT, but the OSX performance is a little slow so I was hoping that AOT would help here. My app is also doing a ton of startup stuff, so AOT would hopefully help there too. AOT won't improve the performance of a WinForms app under OS

Re: [Mono-list] - XslCompiledTransform.Load missing overloads

2009-09-24 Thread Robert Jordan
daniel wrote: I see from the msdn documentation that loading by type was added in .net 2.0 SP1. So it wasn't in .net 2.0. Which explains why it is missing from mono 2.0 Yeah, implementing an XSLT compiler looks like being a rainy Sunday job. It's still not in Mono because it didn't rain the

Re: [Mono-list] Problem with WEB-Page

2009-09-24 Thread Robert Jordan
David das Neves wrote: Hey, I got some problems to compile and use my web application with mono. I think its an extraordinary problem which is not directly my fault. At least i hope so because its working fine with Visual Studio and its Compiler. Here is the error stacktrace: Server

Re: [Mono-list] Building mono 2.4.2.3 on Solaris 10

2009-09-23 Thread Robert Jordan
ra...@onlinehome.de wrote: Hello list, I am trying to comile mono on a Solaris 10 (64bit) os. I just wanted to know, if anybody tried this before and was successful, because I am faced with more and more problems. UltraSPARC or amd64? So for example the README tells that there is

Re: [Mono-dev] list of platform-differences

2009-09-22 Thread Robert Jordan
Andreas Heertsch wrote: Andreas and all offcourse this could be expected - if I RFM (read the fucking manual). But as a unexperienced mono user I expect, that mono sheelds me from *any*hardware dependend issue. I can understand, that this expectation is not fully realized in the present,

Re: [Mono-dev] Fixing KeventWatcher: dealing with 32 / 64 bit operating systems

2009-09-19 Thread Robert Jordan
Romain Tartière wrote: My problem is related to the various structs (kevent and timespec). Basically, a 32 bit FreeBSD needs: --8 struct timespec { public int tv_sec; public int tv_usec; } --8 while a 64 bit FreeBSD

Re: [Mono-dev] Problem of Mono.WebServer2 while executing xsp on CentOS 5.2...

2009-09-19 Thread Robert Jordan
Sameer Oak wrote: While testing xsp2 (According to the documentation of XSP, xsp2 is used for version xsp-2.4.2), I am getting following error which is halting the further installation of Apache 2.0 and using mono-xsp-apache combination for my specific use. Kindly help me resolve the

Re: [Mono-dev] Fixing KeventWatcher: dealing with 32 / 64 bit operating systems

2009-09-19 Thread Robert Jordan
Romain Tartière wrote: On Sat, Sep 19, 2009 at 11:46:06AM +0200, Robert Jordan wrote: For *BSD, timespec is declared like this in native code: struct timespec { time_t tv_sec; /* seconds */ longtv_nsec;/* and nanoseconds */ }; while time_t is an int32_t

Re: [Mono-dev] Mono's reflection implementation

2009-09-10 Thread Robert Jordan
Hi, This is not a bug. BindingFlags.NonPublic does not return inherited non-public class members. It seems that MS.NET's internal delegate implementation is different from Mono's. Maybe they are explicitly defining these fields in inherited delegates. Robert Kris Mok wrote: Hi all, I was

Re: [Mono-dev] Mono's reflection implementation

2009-09-10 Thread Robert Jordan
Tom Spink wrote: Hi Kris, 2009/9/10 Kris Mok rednaxela0...@hotmail.com: You're right that BindingFlags.NonPublic doesn't return inherited fields. Looks like I should have sent a bug report to MS instead :) It's not a bug. You need to specify BindingFlags.FlattenHierarchy. Nope. Please

Re: [Mono-list] mono-service2 debugging

2009-09-08 Thread Robert Jordan
nzsaint wrote: I am trying to use mono-service2 to run a windows service under openSUSE 11.1. I am currently receiving an error message (object reference not set to an instance of an object) in the syslog in relation to my service but I would like to obtain more information to specifically

Re: [Mono-dev] Embedding w/ Config Errors | No Entry Assembly

2009-09-07 Thread Robert Jordan
Matthew Metnetsky wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, As some might have picked up I'm embedding Mono into a project and all is mostly going well. While trying to tie together .NET objects with GObject's via compiled MonoMethod thunks I hit a snag.

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-07 Thread Robert Jordan
Hi, Carlos Alberto Cortez wrote: But since Mono's System.Windows.Forms is Open Source [1], why was it again that no one has found out what DoEvents does? ;-) Andreas [1]

Re: [Mono-aspnet-list] ASP.NET 2.0 running on IIS6/Windows server 2003

2009-09-04 Thread Robert Jordan
stonefish wrote: Bump Well, you're off-topic on this list and your subject is not appropriate. So what do you expect? stonefish wrote: Hi, My client requires SSL based LDAP authentication on the ASP.NET (2.0) application we have written, which is going to run on Windows 2003 Server

Re: [Mono-list] mkbundle and libgdiplus

2009-09-04 Thread Robert Jordan
Daniel Weuthen wrote: I was able to put everything we need into that bundle except for the libgdiplus stuff. No matter how I tried it (.config file), the needed library did not get into that bundle. Btw: I cannot use the --deps option as it does not work for our software. Some older, non linux

Re: [Mono-dev] Embedding | mono_array_* methods

2009-08-28 Thread Robert Jordan
Matthew Metnetsky wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm trying to figure out if there's a way to work with ListString like there is String[]. mono_array_length reports the correct amount for both types, but mono_array_get(array, type, index) only works for

Re: [Mono-list] Mkbundle errors.

2009-08-27 Thread Robert Jordan
Lucyberad wrote: Hi, I'm having currently some trouble with mkbundle. I want to produce a 1file exec (without the need for user to install mono) and I use mkbundle for it. Here is my first attempt on Windows: It produce an empty exe. The produced file weight 2.5mb but the output

Re: [Mono-list] Mkbundle errors.

2009-08-27 Thread Robert Jordan
Robert Jordan wrote: You seem to have parallel Mono installations on your system. Try to set PKG_CONFIG_PATH to point to the correct Mono installation, which seems to be /usr/local on your system: PKG_CONFIG_PATH=/usr/local/pkgconfig mkbundle ... Errata: PKG_CONFIG_PATH=/usr/local/lib

Re: [Mono-list] InvalidOperationException using XSP2 with the .NET runtime

2009-08-26 Thread Robert Jordan
abryson wrote: Hello, I'm trying XSP2 on a Windows XP SP2 machine by executing xsp2.exe directly (without mono.exe) and have hit upon a problem when specifying virtual directories. [...] When I browse to http://localhost:8080/A or http://localhost:8080/B I get this exception:

Re: [Mono-list] GLib Critical Error at attemting to embed Mono (and other minor troubles).

2009-08-24 Thread Robert Jordan
Lucyberad wrote: I've made some further test. This time on Unix system (fresh install with mono --version producing 2.4.2.3). After checking my helloworld.exe is launching well (which is the case), updating all path: mono_set_dirs(/usr/etc, usr/lib) and my const char* file. It's

Re: [Mono-dev] Compiling System.Xml and System.LINQ dll

2009-08-23 Thread Robert Jordan
Tamal Saha wrote: Hi, I wish to build Mono System.Xml and System.Linq dll from mono source code and use those dll's on Windows platform. Where should I start from? You don't need to build these assemblies because you could borrow them from a Mono installation. But if you feel like having to

Re: [Mono-list] String.GetHashcode

2009-08-23 Thread Robert Jordan
Juan Urroa wrote: Hi, I must duplicate the behavior of .net string.GetHashCode in mono I used reflector to get this code: Please refrain from posting decompiled MS.NET code on this list. http://mono-project.com/Contributing#Important_Rules Robert

Re: [Mono-list] GLib Critical Error at attemting to embed Mono (and other minor troubles).

2009-08-23 Thread Robert Jordan
Lucyberad wrote: I got an assertion error on mono_jit_exec. The console output an error from Glib: http://www.nabble.com/file/p25093790/visual_mono_glib_asssertion_error.png (right-click: show image to view it fullsize) Are you calling mono_set_dirs ()? If yes, post the code. More than

Re: [Mono-dev] Embedding mono and reducing the number of etc/lib required files

2009-08-22 Thread Robert Jordan
romain lelong wrote: - Is it possible to fuse all these lib etc files directly inside the .EXE file or into one big external resources file ? I would like to hide all these small files and limit the risk for an user to damage or hijack my program by removing/replacing the libraries in these

Re: [Mono-list] mono 2.4 on windows 2000 server MVC

2009-08-21 Thread Robert Jordan
I wonder why consultants are *always* misinterpreting customer's demands :) The OP wants to run Mono + Apache under Win2k. Robert Abe Gillespie wrote: Sure. Need a consultant to help? ;) While MVC is officially fully supported on Mono, you will more than likely run into some

Re: [Mono-dev] Change how mono_method_get_param_names works

2009-08-18 Thread Robert Jordan
Hi Rodrigo, Rodrigo Kumpera wrote: Hi Paolo, I think that mono_method_get_param_names should be changed to not require the caller to figure out the number of parameters. In adition to that, this function has no way to return an error back to the caller. My suggestion is to change it to

Re: [Mono-dev] New error handling framework for mono

2009-08-13 Thread Robert Jordan
Hi, Zoltan Varga wrote: Hi, I still it would be easier to simply pass a int* or use an int return value, instead of a structure which needs to be initialized/cleaned up, and store any excess state in TLS. This is because most code can't do anything with an error other than cleaning up

Re: [Mono-dev] New error handling framework for mono

2009-08-13 Thread Robert Jordan
: MonoString *str; int status = mono_string_new_wrapper (foo, str); instead of MonoString *str = mono_string_new_wrapper (foo, error); Robert On Thu, Aug 13, 2009 at 7:28 PM, Robert Jordan robe...@gmx.net wrote: Hi, Zoltan Varga wrote: Hi, I still it would be easier to simply pass a int

Re: [Mono-list] ODBC related error

2009-08-07 Thread Robert Jordan
Bharti Mishra wrote: Thanx for your response You said, use System.Data instead of Microsoft.Data.Odbc. so I like to ask you If I use system.data then will it provide databese connection and will it support odbc in mono. http://www.mono-project.com/ODBC because when we run our

Re: [Mono-list] ODBC related error

2009-08-06 Thread Robert Jordan
Bharti Mishra wrote: ** (/usr/lib/mono/2.0/mod-mono-server2.exe:22010): WARNING **: The following assembly referenced from /tmp/wwwrun-temp-aspnet-0/5519dae6/assembly/shadow/0b38ee2b/caf7cdf5_c1cf23de_0001/FNSDatabase.Net.dll could not be loaded: Assembly: Microsoft.Data.Odbc

Re: [Mono-list] Support for AxInterop.MSChartLib.dll

2009-08-06 Thread Robert Jordan
devi.visolve wrote: Hi , Does mono supports AxInterop.MSChartLib.dll ? The mono analyzer reports NotImplementedException. Even then we tried. It does not unless you stick with Windows. The assembly is a generated COM Interop stub for an ActiveX control. Robert

Re: [Mono-list] Support for AxInterop.MSChartLib.dll

2009-08-06 Thread Robert Jordan
devi wrote: Thanks your immediate response. Actually we are trying to run a .net app in Mono. The application needs AxInterop.MSChartLib.dll (to generate chart ). What is the work around to run this appln to run in Mono. There is no workaround. You must rewrite the charting code using

Re: [Mono-list] MVC site on fastcgi + nginx produces NotImplementedException in System.Web.Routing.Route.GetRouteData unless PATH_INFO is specified

2009-08-06 Thread Robert Jordan
Hi Sergii, Sergii Volchkov wrote: Since System.Web.Routing.Route.GetRouteData is likely to throw NotImplementedException only if (Request.PathInfo != String.Empty), I tried to add the following parameter to nginx.conf: fastcgi_param PATH_INFO ; After the change, everything

Re: [Mono-list] P/Invoke to dlopen

2009-08-05 Thread Robert Jordan
Dino Viehland wrote: For IronPython's new ctypes module (basically P/Invoke for Python) I need to be able to P/Invoke out to dlopen and dlsym. Ideally I was hoping that Mono's P/Invoke mapping mechanism was going to cover and convert LoadLibrary/GetProcAddress to the appropriate functions.

Re: [Mono-list] P/Invoke to dlopen

2009-08-05 Thread Robert Jordan
Dallman, John wrote: Dino Viehland wrote: So for dlopen I need to know what the P/Invoke signature should look like. Ideally that signature would work on all *nix systems. Robert has given you the runes for Linux, but dlopen and dlsym come from different places on other *nix systems:

Re: [Mono-list] OS X Compilation

2009-08-05 Thread Robert Jordan
Abe Gillespie wrote: I'm currently stuck while trying to configure glib: configure: error: *** You must have either have gettext support in your C library, or use the *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html This happens regardless of whether I set

Re: [Mono-dev] Mono.Cairo on OSX

2009-08-04 Thread Robert Jordan
Hi Christian, Christian Hergert wrote: It looks like Mono.Cairo is trying to load libcairo.so.2 on OS X. Creating the following Mono.Cairo.dll.config works for me. configuration dllmap dll=libcairo-2.dll target=libcairo.2.dylib/ /configuration However, I'm not sure how to go

Re: [Mono-list] Service do not start

2009-08-04 Thread Robert Jordan
Sergio C. Charrua wrote: Hello all! i've been developing som Windows Services, using VS2005/2008 with no problems at all. Everything compiles correctly, Moma says everything is 100% correct, and everything run in windows (XP, Server, etc...). I've a CentOS 5.3 server running Mono since

Re: [Mono-list] Service do not start

2009-08-04 Thread Robert Jordan
Sergio C. Charrua wrote: i followed your tip and tryed this: as you can see, my start.sh script has the export LD_LIBRARY_PATH=/usr/local/lib/ declaration, but in the command line, if i did something like: echo $LD_LIBRARY_PATH i got something like /opt/mono/bin(or similar...) which

Re: [Mono-aspnet-list] The imported type 'ASP.default_asp' is defined multiple times

2009-08-03 Thread Robert Jordan
nzsaint wrote: Robert Jordan wrote: The application must be pre-compiled for the virtual path /. Then you can run it from any virtual path. This limitation will be fixed in the next 2-4-x iteration. So does this mean that the application needs to go in the root directory (/srv/www

Re: [Mono-list] [Mono-dev] Mono 2.4.2.2: too many roots set other errors

2009-08-03 Thread Robert Jordan
Maxim wrote: Hi Zoltan! Thanks for answer! I look at SVN logs and can't find r139249 in branch /source/branches/mono-2-4-2/ between r139258 and r138662. So, could you tell me please, is this bug fixed in Mono 2.4.2.2 or in Mono 2.4.2.3? If only in latest, I'll just upgrade mono.

Re: [Mono-dev] VBNC and embedding

2009-07-31 Thread Robert Jordan
bass...@gmail.com wrote: Hi guys, I have successfully integrated mono as scripting engine using CSharpCodeProvider and the embedding api. However, ever since mono 2.0, switching to Microsoft.VisualBasic.VBCodeProvider() as the code provider will always give me VBNC_CRASH at line 0 as an

Re: [Mono-list] Re placing ASMX files at Runtime

2009-07-26 Thread Robert Jordan
Gnanam wrote: Hi, I'm running Mono v1.2.4 on RedHat ES 5. I've implemented Code Behind throughout my web services. My question is, in my production environment, sometimes I end up replacing few ASMX files (because of application level bug fixes) while the Apache Mono service is running

Re: [Mono-list] Mono XSP compile error

2009-07-22 Thread Robert Jordan
Ben Di Maggio wrote: Hm. Same result, unfortunately. Mono's binary is at /usr/bin/mono and there seem to be a bunch of mono-related files in /usr/lib/mono so I tried this: Which mono version is this? (mono --version) Robert ___ Mono-list maillist

Re: [Mono-list] Mono XSP compile error

2009-07-22 Thread Robert Jordan
Ben Di Maggio wrote: 1.0.6, according to that command. I looked again at the site I got the rpms from (http://dag.wieers.com/rpm/packages/mono/) and I realize now that the version I installed is way below the version of the XSP source I'm using (got that from here

Re: [Mono-list] Unhandled Exception at System.Windows.Forms.DataGridViewButtonCell.GetValue

2009-07-20 Thread Robert Jordan
qzhan15 wrote: I have installed wine, and libuser32.dll.so (link to user32.dll.so) is located at /usr/lib/wine, and already configure the ld.so.conf and run ldconfig. then the EntryPointNotFoundException disappear but finally aborted during executing the native method. Mono for Linux cannot

Re: [Mono-dev] Adding a dll to gac

2009-07-17 Thread Robert Jordan
PFJ wrote: Hi I've added the SharpUSBlib dll to gac using gacutil. However, when I try to link to it (using -r:ICSharp.USBlib or -r:SharpUSBlib, all I get back is that it is missing some sort of metadata (the report is on my machine at home). Is there something I'm missing here? Gmcs

Re: [Mono-dev] p/invoke marshal struct to pointer

2009-07-17 Thread Robert Jordan
Gladish, Jacob wrote: The mono runtime seems to have a specific check for this cause and throws the exception. I guess what's confusing is that if it's really not allowed, then why would the Microsoft runtime allow it? Maybe it allows it because the said structure is blittable in full. Please

Re: [Mono-list] Embedding Mono : Classes

2009-07-16 Thread Robert Jordan
Chris Howie wrote: On Wed, Jul 15, 2009 at 6:45 PM, Alex Kusterx.passion.and.the.oper...@gmail.com wrote: and, how do I take parameters in a internal function call ? It's no different from P/Invoke, if you are familiar with that. You are simply writing the P/Invoke target in your embedding

Re: [Mono-list] can we add kernel32 dll in mono

2009-07-15 Thread Robert Jordan
Bharti Mishra wrote: hi, I am executing existind vb.net project in mono onto opensuse platfom. I am getting following error System.Dllnotfoundexception:kernel32. how can I add kernel32 dll in mono. and can you explain me this error. Kernel32.dll is a unmanaged core Windows DLL. It's

Re: [Mono-list] Pre-compiled Assemblies

2009-07-15 Thread Robert Jordan
This option was not backported to 2-4. Robert Abe Gillespie wrote: configure --help is not showing that option. I used it anyways just in case it wasn't documented - no change. What I ended up doing was manually editing the Makefile in the docs dir. Now I'm not terribly familiar with the

Re: [Mono-list] Embedding Mono : Classes

2009-07-15 Thread Robert Jordan
Alex Kuster wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Chris, Thanks for the quick reply I have more questions.. How do I set/get the contents of a variable of X class Instance (Assuming that I Already have the MonoObject) ? See mono_class_get_field_from_name (),

Re: [Mono-dev] Memory usage on Mono remoting

2009-07-14 Thread Robert Jordan
pablosantosl...@terra.es wrote: Also, you mentioned in a previous email that the TcpChannel should be changed so it uses Asynch sockets. I've seen you use AsyncCallBack on XSP. My question is: I guess AsynchCallback will use a thread underneath, won't it? If so: what's the advantage over

Re: [Mono-dev] Value 6323991190089764104 is outside the valid range [ 0, 3155378975999999999 ]. Parameter name: ticks

2009-07-14 Thread Robert Jordan
c.esquibel wrote: I have also seen the following variation of this message: Value 4671289079185280264 is outside the valid range [ 0, 31553789759 ]. Parameter name: ticks ... Microsoft Virtual PC 6.0.156.0 CentOS release 5.3 (Final) mono-core.i386 1.2.4-2.el5 1.2.4 is OLD.

Re: [Mono-list] DllNotFoundException

2009-07-14 Thread Robert Jordan
Mikro Trekker wrote: Setting these in Mono cmd prompt (Vista x64) doesn't have any effect on debugging. I see nothing when running EXE in Mono... Why ? SET MONO_LOG_LEVEL=debug SET MONO_LOG_MASK=dll mono TEST.exe mono --debug test.exe Why? Because your test.exe was compiled with

Re: [Mono-list] DllNotFoundException

2009-07-14 Thread Robert Jordan
Mikro Trekker wrote: Now I am getting Unknown trace level error: H:\Work\SET MONO_LOG_LEVEL=debug H:\Work\SET MONO_LOG_MASK=dll H:\Work\mono --debug TEST.exe Unknown trace flag: dll Unknown trace loglevel: debug It works for me. You've probably permuted the env vars. Robert

Re: [Mono-list] how to execute exe file which creates logs in event viewer.

2009-07-14 Thread Robert Jordan
Bharti Mishra wrote: hi, I am using mono2.4.2 on Open Suse11.1 platform. I have existing vb.net code, in which I execute one .exe file before project execution, that exe file creats log in EventViewer (windows). now I have to run that .exe in linux platform, so can you tell me ,I can

Re: [Mono-list] Service or daemon with Mono?

2009-07-14 Thread Robert Jordan
jos_ wrote: Hello, What is the recommended way to write a service-like software in Mono? My first guess would be to use the normal class ServiceBase existing in Mono (and .NET of course). But there seems to be little information on how this works with Mono, and from what I've read it is

Re: [Mono-list] DllNotFoundException

2009-07-13 Thread Robert Jordan
Mikro Trekker wrote: I am using Mono 2.4 on Vista. Project executable (C#) works fine on Windows platform. All managed DLLs that EXE is using reside in the same directory where EXE is located. When I try to run EXE then I get DllNotFoundException ? Unlike MS.NET, Mono is not loading

Re: [Mono-list] DllNotFoundException

2009-07-13 Thread Robert Jordan
Mikro Trekker wrote: The error was caused by libeay32.dll. As my EXE uses managed DLL that uses this library then there was version conflict. Mono is shipping this DLL also! Is there any DLL tracing switch I can use to see what and where Mono loads its DLLs ? Set the env vars

Re: [Mono-dev] ** ERROR **: Type System.DateTime which is passed to unmanaged code must have a StructLayout attribute aborting...

2009-07-11 Thread Robert Jordan
Darrek wrote: I get this message when trying to run a project in Mono while using a COM dll. It errors whenever the constructor is called. Is there any way to get around this? Mono does not support DateTime marshaling for COM interop. The only way to fix this is to change the signature from

Re: [Mono-dev] == operator comparing COM interops

2009-07-09 Thread Robert Jordan
Tom Hindle wrote: Hi, I submitted bug https://bugzilla.novell.com/show_bug.cgi?id=520437. Basically doing: if (interop1 == interop2) { } where interop1 and interop2 are the same COM object (IUnknown intptr is the same ptr) returns false on mono and true in .NET. The only current

Re: [Mono-list] Need some help installing Mono on Redhat 2.6

2009-07-09 Thread Robert Jordan
LKeene wrote: we get a bunch of GDIplus.dll missing errors. We can't effectively diagnose what the problem is because we are unsure of whether or not we've Did you install libgdiplus? If not, get it from here: http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.4.2.tar.bz2 linked

Re: [Mono-dev] Marshalling C-strings that need to be g_free()d

2009-07-07 Thread Robert Jordan
Jon Shemitz wrote: Sorry for the newbie question, but my Windows .NET experience doesn't help me here, nor does MonoDoc or Google. (I'm sure I just don't know how to ask the right questions, yet, as this must be a FAQ): If I have a C function like void caller_owns_string(char**

Re: [Mono-list] Low level mouse hook via SetWindowsHookEx

2009-07-05 Thread Robert Jordan
Jonathan Pryor wrote: For the love of $deity, you shouldn't do this on Windows either. The problem is that hooks involve inserting your DLL into every process' address space, which will thus require loading the CLR. However, until .NET 4.0 (unreleased), only one version of the CLR can

Re: [Mono-list] ASP.Net default language setting lost while update

2009-07-02 Thread Robert Jordan
Jochen Wezel - CompuMaster GmbH wrote: Is there any plan to prevent overriding of my custom settings? Or if no and it always overrides, can it override with the default M$ value (=VB) to keep compatible to M$ behaviour? Use your app's web.config for this kind of changes. VB cannot be set as

Re: [Mono-list] ASP.Net compilation error with C# and Mono V2.4.2

2009-07-02 Thread Robert Jordan
Jochen Wezel - CompuMaster GmbH wrote: Hello, I've got this error when trying to access my test website and if I've put a file cammWM.dll into my bin directory: ... Stack Trace: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded. at

Re: [Mono-list] Managed C++ Class Library

2009-07-01 Thread Robert Jordan
eSPiYa wrote: I've been using C# and Mono for almost a year for the cross-platform implementation of my projects. Now, I'm starting to migrate some of the existing C++ projects to .NET 2.0 instead of creating a wrapper for it due to performance issues. http://www.mono-project.com/CPlusPlus

Re: [Mono-dev] Embedded API - pinning objects

2009-06-29 Thread Robert Jordan
Steve Baer wrote: Hi, I've just started playing with embedding mono in a C++ app so I'll probably have plenty more questions. I'm a little confused about the lifetime of a MonoObject*. Say I create a MonoObject with the following code MonoObject* mobj = mono_object_new(domain, mclass);

Re: [Mono-list] Threading ThreadPriority under Mono/Linux vs Windows

2009-06-26 Thread Robert Jordan
Oenren wrote: Am I missing something here? ThreadPriority is not implemented. Even if it was, you still won't be able to raise it under a non-root account. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com

Re: [Mono-list] Threading ThreadPriority under Mono/Linux vs Windows

2009-06-26 Thread Robert Jordan
Oenren wrote: Robert Jordan wrote: Oenren wrote: Am I missing something here? ThreadPriority is not implemented. Even if it was, you still won't be able to raise it under a non-root account. So does this means Mono hasn't implement the option ThreadPriority or the combination

Re: [Mono-dev] nunit test upgrading task force

2009-06-25 Thread Robert Jordan
Same for corlib/Test/System.IO/*. Robert Atsushi Eno wrote: Done. Thanks! Atsushi Eno Robert Jordan wrote: Atsushi, Atsushi Eno wrote: * list of the files I have made an easy list of such old test files on a spreadsheet: http://spreadsheets.google.com/pub?key=rkWl

Re: [Mono-dev] nunit test upgrading task force

2009-06-24 Thread Robert Jordan
Atsushi, Atsushi Eno wrote: * list of the files I have made an easy list of such old test files on a spreadsheet: http://spreadsheets.google.com/pub?key=rkWl-ZQHJvcu6tkJOeFFg3Aoutput=html I've fixed all Test/System.Collections/*.cs in r136771 but I'm apparently too dumb to edit the

Re: [Mono-dev] nunit test upgrading task force

2009-06-23 Thread Robert Jordan
Stifu wrote: We could automate the change using a regexp and do a massive replace, no? Using Notepad++ (http://notepad-plus.sourceforge.net/uk/regExpList.php), this seems to work fine: Find: AssertEquals \((.+[^,]),(.+[^,]), (.+[^,])\); Replace with: Assert.AreEqual (\2, \3, \1);

Re: [Mono-list] license

2009-06-23 Thread Robert Jordan
ignorator wrote: i have found that in the faq Or if you ship an application that requires to statically link the Mono runtime and you are not able to provide the object code to relink Mono, you must obtain a commercial license from Novell. what does provide the object code to relink Mono

Re: [Mono-dev] Detect List from C code

2009-06-20 Thread Robert Jordan
Joachim Ante wrote: Hi, Whats the best way of checking if a MonoField* refers to a System.Generic.Container.List? The check needs to be high performance. The public API does not expose the necessary functions to achieve this, but you could use a managed helper: public static bool

Re: [Mono-dev] Detect List from C code

2009-06-20 Thread Robert Jordan
Joachim Ante wrote: Hi, Olexandr pointed out that the class name is always List`1. So it seems that comparing the class name also checking against the mono image of the class against mscorlib is a safe way of checking if it is System.Generic.Container.List. mono_class_get_name () of

Re: [Mono-list] Mono XSP Compile error

2009-06-18 Thread Robert Jordan
-2.4/test/1.1/webcontrols' permission looks fine, root can Read, Write, Execute to /opt and /opt/mono Sorry, my bad. The configure line must be: ./configure --prefix=/opt/mono --with-runtime=/opt/mono/bin/mono Robert Robert Jordan wrote: PayableOnDeath wrote: I have been using

Re: [Mono-dev] Unhandled Exception in Normalization.cs Combine()

2009-06-17 Thread Robert Jordan
Tom Philpot wrote: Now, string.Normalize(NormalizationForm.FormC) doesn't do anything using mono (r136228). Have you updated and rebuilt both mono mcs trees? Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-list] Reset mono

2009-06-17 Thread Robert Jordan
Andrus Moor wrote: Robert, You have the rights implicitly. Write a page or WS method that performs System.IO.Directory.Move(/tmp/www-data-temp-aspnet-0, /tmp/www-data-temp-aspnet-0.old); I tried System.IO.Directory.Move(/tmp/www-data-temp-aspnet-0, /tmp/www-data-temp-aspnet-0.old);

Re: [Mono-list] Mono XSP Compile error

2009-06-17 Thread Robert Jordan
PayableOnDeath wrote: Hi I am trying to install Mono, XSP, and mod_mono When I try to make XSP I get the following error /usr/bin/mcs -debug+ -debug:full -nologo -unsafe -nowarn:618 ... error CS0006: cannot find metadata file `System.Web.dll' The mono installation detected by xsp's

<    4   5   6   7   8   9   10   11   12   13   >