Re: [Mono-dev] Cross-platform fsync()

2007-01-09 Thread Robert Jordan
Patrick Earl wrote: Greetings all. I've recently run into the need for a cross platform fsync() call. As far as I know, all of the flavors of unix that mono supports provide the fsync call themselves. On windows, there is a _commit() function that does the same thing. It seems like the

Re: [Mono-dev] Remoting unit tests (HttpChannel) failing after r69986

2007-01-08 Thread Robert Jordan
Lluis Sanchez wrote: El dg 24 de 12 del 2006 a les 17:33 +0100, en/na Robert Jordan va escriure: Hi! After this patch http://lists.ximian.com/pipermail/mono-patches/2006-December/084885.html the HttpChannel unit tests are timing out. Has this already been fixed? It works for me

Re: [Mono-dev] 'sizeof' returns different results between .NET and Mono/Linux: a bug?

2007-01-07 Thread Robert Jordan
Lionel Cuir wrote: Trying to understand what was wrong, I discovered that a given struct has not the same size for .NET and for Mono / Linux, even when playing with the Pack args. That seems very surprising... and I would it a bug of Mono on Linux. Any advice on this? DateTime has

Re: [Mono-dev] Allocating unmanaged memory

2007-01-04 Thread Robert Jordan
Leszek Ciesielski wrote: Hi, I need to allocate unmanaged memory AND make sure it is filled with 0's. Is there some clever/fast way to do this? So far, I found only Marshal.WriteByte, which sets one byte at a time. untested: public static IntPtr Alloc (int bytes) { int p = (int)

Re: [Mono-dev] Exception catching in C...

2007-01-04 Thread Robert Jordan
Thomas Wiest wrote: On a related note, in my example project if I throw an exception that isn't handled (on purpose), the program prints the Unhandled Exception information but doesn't exit as expected. It just sits there. I've attached the example project. Sorry for the size, I tried to

Re: [Mono-dev] Exception catching in C...

2007-01-03 Thread Robert Jordan
Thomas Wiest wrote: Hey, I'm embedding Mono and I'd like to know if there's a way for C to catch all unhandled exceptions. From this line on the interop page, it seems it is possible: It is very important that the unmanaged code not propagate any exceptions -- it must catch all

Re: [Mono-dev] Embedding Mono and HandleRef...

2006-12-31 Thread Robert Jordan
Thomas Wiest wrote: Robert Jordan wrote: You don't need HandleRefs when using icalls and the embedded API. Just declare the icalls as non-static and they will automatically get the MonoObject* pointer of the managed object: Ah, very interesting. I assume this increases the ref count which

Re: [Mono-dev] __arglist and P/Invoke

2006-12-31 Thread Robert Jordan
Argiris Kirtzidis wrote: If I try to use Mono, I encounter two problems: 1) The Mono C# compiler doesn't add 'vararg' to the method definition for printf. 2) If I try to execute the sample (compiled with MS.NET's C# compiler) a internal exception is thrown: Unhandled Exception:

Re: [Mono-dev] TagLib docs generation?

2006-12-31 Thread Robert Jordan
Andrés G. Aragoneses [ knocte ] wrote: I've noticed the following type of files: http://svn.myrealbox.com/source/trunk/taglib-sharp/docs/en/TagLib/SupportedMimeType+%3c%3ec__CompilerGenerated1+%3c%3ec__CompilerGenerated3.xml

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

2006-12-30 Thread Robert Jordan
Argiris Kirtzidis wrote: Hi all, I'm using the Mono embedding API, and noticed that if I call 'mono_add_internal_call' after the managed program started execution (with 'mono_jit_exec'), the internal call doesn't get registered and a MissingMethodException is thrown when the managed code

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

2006-12-30 Thread Robert Jordan
? Not substantial. Robert - Original Message - From: Robert Jordan [EMAIL PROTECTED] To: mono-devel-list@lists.ximian.com Sent: Saturday, December 30, 2006 9:14 AM Subject: Re: [Mono-dev] Registering internal calls at runtime Argiris Kirtzidis wrote: Hi all, I'm using

Re: [Mono-dev] Embedding Mono and HandleRef...

2006-12-30 Thread Robert Jordan
Thomas Wiest wrote: Hey, I'm using the Mono embedding API and I'm using HandleRef's instead of IntPtr's (as per the instructions on the interop page). http://www.mono-project.com/Interop_with_Native_Libraries However, the HandleRef's seem to only be marshaled to IntPtr's if

Re: [Mono-dev] Question about Remoting and Localendpoint

2006-12-29 Thread Robert Jordan
pablosantosluac wrote: Hi all (Lluis¿?), Is there a way to retrieve a Localendpoint at a remoting application? I mean, you export an object using remoting, then is it possible when a method is invoked inside the object, to retrieve data about the remoting channel or even better, the

[Mono-dev] Remoting unit tests (HttpChannel) failing after r69986

2006-12-24 Thread Robert Jordan
Hi! After this patch http://lists.ximian.com/pipermail/mono-patches/2006-December/084885.html the HttpChannel unit tests are timing out. Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] Remoting unit tests (HttpChannel) failing after r69986

2006-12-24 Thread Robert Jordan
Felipe Almeida Lessa wrote: On 12/24/06, Robert Jordan [EMAIL PROTECTED] wrote: After this patch http://lists.ximian.com/pipermail/mono-patches/2006-December/084885.html the HttpChannel unit tests are timing out. I don't know much of Mono libs internals, but isn't the last if changed

Re: [Mono-dev] SQL query encoding problem using mod_mono

2006-12-21 Thread Robert Jordan
Ronan wrote: Hi, Inserting and extracting special characters from a MySQL database works fine with console application or web application using XSP. But web application using mod_mono don't insert or extract correctly special characters as accents (special characters are stored as '?').

Re: [Mono-dev] CreateInstanceAndUnwrap crashing

2006-12-21 Thread Robert Jordan
Justin Tulloss wrote: I recompiled it successfully and got further, but every example dies in Die is pretty vague, at least in this context. Please post the exception/error message you got. CreateInstanceAndUnwrap. The specific call that eventually causes all this is: HttpListenerWrapper lw

Re: [Mono-dev] CreateInstanceAndUnwrap crashing

2006-12-21 Thread Robert Jordan
Justin Tulloss wrote: On 12/21/06, Robert Jordan [EMAIL PROTECTED] wrote: Justin Tulloss wrote: I recompiled it successfully and got further, but every example dies in Die is pretty vague, at least in this context. Please post the exception/error message you got. It's an unhandled file

Re: [Mono-dev] CreateInstanceAndUnwrap crashing

2006-12-21 Thread Robert Jordan
Robert Jordan wrote: Justin Tulloss wrote: On 12/21/06, Robert Jordan [EMAIL PROTECTED] wrote: Justin Tulloss wrote: I recompiled it successfully and got further, but every example dies in Die is pretty vague, at least in this context. Please post the exception/error message you got. It's

Re: [Mono-dev] ObjectDisposedException etc lacks #ctor(String, Exception)

2006-12-19 Thread Robert Jordan
Andy Hume wrote: I was using new ObjectDisposedException(..., caughtException) in my code, and thus on Mono it fails at runtime with MissingMethodException as that exception has no #ctor(string message, Exception inner) in Mono. These missing bits are already on the class status report:

Re: [Mono-dev] ASP.NET MySql connection

2006-12-19 Thread Robert Jordan
Dariusz Linowski wrote: Hello, I rewrote my code skiped VDW toolbox controls and now is more better but not good (: Currently I receive message: error CS0006: cannot find metadata file `1.0.8.0' What is wrong? On the httpd.conf I have: MonoPath visual

Re: [Mono-dev] System.IO.Directory.CreateDirectory bug!

2006-12-16 Thread Robert Jordan
Leszek Ciesielski wrote: Do i fill a bug report? is it correct this behavior? Just checked on MS.Net 2.0, an exception is thrown when you try to create a directory with a same name as file. I guess we have to stick with MS behaviour, not MSDN, if they differ. So this is a bug. This bug has

Re: [Mono-dev] SuspendedThread failed (Error in gc)

2006-12-14 Thread Robert Jordan
shashidhar wrote: hi, i am using mono 1.2.1 while running my application on xsp sometimes i am getting error in gc SuspendedThread failed error i dont know how to fix this one. can any one help me to fix this one On Windows? It's a known bug.

Re: [Mono-dev] 'svn status' doesn't work?

2006-12-11 Thread Robert Jordan
Andrés G. Aragoneses [ knocte ] wrote: I have made a 'svn update' with my 'mcs' module from SVN and now if I try to 'svn status' I get this error: [EMAIL PROTECTED]:~/Projects/mono/SVNmods/mcs svn status svn: 'tests/gtest-264.cs' has an unknown value for the property svn:eol-style [EMAIL

Re: [Mono-dev] 'svn status' doesn't work?

2006-12-11 Thread Robert Jordan
Andrés G. Aragoneses [ knocte ] wrote: Robert Jordan escribió: It's now fixed it SVN. You may have to rm the tests folder and svn up, if the error persists. Thanks Robert, it works now. BTW, could you tell the exact command you issued to fix this? Yeah, sorry: svn ps svn:eol

[Mono-dev] NET_2_0 class status not available

2006-12-11 Thread Robert Jordan
Hi, The NET_2_0 class status seems to be broken: http://mono.ximian.com/class-status/mono-HEAD-vs-fx-2/class-status-mscorlib.html Robert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com

Re: [Mono-dev] Iterating the classes of a mono image using the embedding API

2006-12-05 Thread Robert Jordan
Argiris Kirtzidis wrote: Hi all, Is there a way to get all the classes/types defined in a image using the embedding API ? I looked through all the functions and I can't find one that will allow iteration of all the classes, am I missing something ? How one would get a list of the

[Mono-dev] [PATCH] leak in ves_icall_Type_MakeGenericType

2006-12-05 Thread Robert Jordan
Hi, The `MonoType **types' local var is not free()d. I replaced the g_new with g_newa. Robert Index: metadata/icall.c === --- metadata/icall.c(revision 69048) +++ metadata/icall.c(working copy) @@ -1999,7 +1999,7 @@

Re: [Mono-dev] Improving memory usage in /System.Web.SessionState/SessionSQLServerHandler.cs

2006-11-28 Thread Robert Jordan
Hi Hubert, Hubert FONGARNAND wrote: Could someone commit this patch? Let me check it first against another DB providers. Robert Thanks Le lundi 27 novembre 2006 à 12:17 +0100, Hubert FONGARNAND a écrit : Hi, When using Npgsql, if you try to send (INSERT or UPDATE) a bytea (blob)

Re: [Mono-dev] Load Librery ....

2006-11-18 Thread Robert Jordan
Kimerop Kimeropweb.com wrote: Greetings to all…. As a bookstore can be loaded, elaborated in another language for example DLL or a bookstore of linux, and to implement its functions…. In tactical mission the bookstore of linux (sys/io.h) ioperm and outb Some example, Gracias…. outb is an

Re: [Mono-dev] `WsiClaims' does not exist - 1.2.1

2006-11-18 Thread Robert Jordan
blackdog wrote: in my web service when i want to check the default wsdl i get the following since installing 1.2.1 *Description: *Error compiling a resource required to service this request. Review your source file and modify it to fix this error. *Error message: *

Re: [Mono-dev] Changes in mono makes monodevelop crashing

2006-11-17 Thread Robert Jordan
Hubert FONGARNAND wrote: Just as information It seem's that changes in Serialization in the .NET 2.0 profile break monodevelop today This is due to this change in System.Collection.Hashtable: 2006-11-16 Miguel de Icaza [EMAIL PROTECTED] * Hashtable.cs: Serialize EqualityComparer.

Re: [Mono-dev] Serialization issue with anonymous methods?

2006-11-16 Thread Robert Jordan
Johan Hernandez wrote: Hi my name is Johan Hernandez(excuse me for my english). I was looking for a list of known issues for Mono 1.2 but I can't find it, so I will post my issue here. Please compile the attachments in this mail and run the sample. I got this Serialization error:

Re: [Mono-dev] AppDomains

2006-11-14 Thread Robert Jordan
Matthijs ter Woord wrote: I made a testcase, see attached file. The following output is expected: Foo DoTest, 'Hello, World', True done Under MS.NET 1.1 I got the same self-explanatory exception like in Mono, so it seems that the serialization of delegates constructed from non-public static

Re: [Mono-dev] AppDomains

2006-11-13 Thread Robert Jordan
Matthijs ter Woord wrote: Hi, I'm the project coordinator of the NApf project. (see http://www.codeplex.com/NApf) For testing our project, we designed a special test harness, which starts small test applications in separate AppDomains. To transfer test states back to the runner, the

Re: [Mono-dev] AppDomains

2006-11-13 Thread Robert Jordan
Robert Jordan wrote: Matthijs ter Woord wrote: Hi, I'm the project coordinator of the NApf project. (see http://www.codeplex.com/NApf) For testing our project, we designed a special test harness, which starts small test applications in separate AppDomains. To transfer test states back

Re: [Mono-dev] [PATCH] Cleanup in System.Runtime.Serialization

2006-11-13 Thread Robert Jordan
Jensen Somers wrote: I noticed that the OnDeserializedAttribute, OnDeserializingAttribute, OnSerializedAttribute and OnSerializingAttribute had the Serializable attribute, and the .NET 2.0 classes don't. It gives a warning on the class status page. I don't know if it's intended for some

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

2006-11-10 Thread Robert Jordan
Philipp Baer wrote: Great to see Mono 1.2 released but could anybody please have a look at bug 79462? I still get a failed to create shadow copy with 1.2 when I try to start my mono applications. I've created a patch for me that creates the shadow copies in /tmp instead of the DynamicBase

Re: [Mono-dev] Static Patch

2006-11-10 Thread Robert Jordan
Nick Berardi wrote: Sorry this was my first shot at trying to contribute to Mono I thought I would start small. Please provide feed back on my latest change. Now you've inserted a BOM at the start of Math.cs :-) Additionally, Convert.cs won't compile because static classes are not allowed to

Re: [Mono-dev] XSP crashing when hit from Firefox 2

2006-11-10 Thread Robert Jordan
Morten Mertner wrote: I have a problem with XSP - it crashes when hit from Firefox 2.0 client, but the web app works fine when hit from IE 7.. I'm using Mono 1.1.18-r1 and XSP 1.1.18. Below is the output from XSP when started on the console and hit with FF2: Exception rethrown at [0]:

Re: [Mono-dev] Fwd: Static Patch

2006-11-10 Thread Robert Jordan
Miguel Ángel Pérez wrote: But static classes can have a static constructor where you can initialize things. http://msdn2.microsoft.com/en-us/library/79b3xss3.aspx http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_10_11.asp Both Convert Math

Re: [Mono-dev] ARM PInvoke issue when using long

2006-11-08 Thread Robert Jordan
D M wrote: It seems there is an issue with mono PInvoke on a 32 bit ARM platform. If I have a native method declared as: [DllImport(MyDll)] static extern long Test1(int n1, long n2, long n3, int n4, long n5); C long is usually 32 bit on 32 bit platforms, while C# long is 64 bit. The correct

Re: [Mono-dev] ARM PInvoke issue when using long

2006-11-08 Thread Robert Jordan
Jonathan Pryor wrote: On Wed, 2006-11-08 at 11:29 +0100, Robert Jordan wrote: It seems there is an issue with mono PInvoke on a 32 bit ARM platform. If I have a native method declared as: [DllImport(MyDll)] static extern long Test1(int n1, long n2, long n3, int n4, long n5); C long

Re: [Mono-dev] Assembly.GetEntryAssembly() returns null

2006-11-07 Thread Robert Jordan
Michał Ziemski wrote: But IMHNRBOAIKO (in my humble, not really based on any indepth knwoledge, opinion) Assembly.GetEntryAssembly shouldn't be null inside an assembly loaded by mod_mono. Every ASP.NET application is executed in a separate app domain. Since ExecuteAssembly is never called

Re: [Mono-dev] Compilation issue

2006-11-04 Thread Robert Jordan
[EMAIL PROTECTED] wrote: Con fecha 3/11/2006, Robert Jordan [EMAIL PROTECTED] escribió: Applying this patch solved part of the problem. but I still cannot compile. The error now is: libtest.c: In function `mono_test_empty_struct': libtest.c:957: Internal compiler error

Re: [Mono-dev] Compilation issue

2006-11-04 Thread Robert Jordan
[EMAIL PROTECTED] wrote: Con fecha 4/11/2006, Robert Jordan [EMAIL PROTECTED] escribió: [EMAIL PROTECTED] wrote: Con fecha 3/11/2006, Robert Jordan [EMAIL PROTECTED] escribió: Applying this patch solved part of the problem. but I still cannot compile. The error now is: libtest.c

Re: [Mono-dev] Compilation issue

2006-11-04 Thread Robert Jordan
Robert Jordan wrote: Try this: Index: libtest.c === --- libtest.c (revision 67351) +++ libtest.c (working copy) @@ -944,9 +944,9 @@ STDCALL int mono_test_empty_struct (int a, EmptyStruct es, int b

Re: [Mono-dev] Compilation issue

2006-11-03 Thread Robert Jordan
RMD wrote: Hello all. I'm trying to install mono-1-1-18 on a heavily patched redhat7.3 system, and when trying to compile it i get the following error: (this is the last part of the compilation output) /usr/bin/ld:./ldscript.mono:1: parse error in VERSION script collect2: ld returned 1

Re: [Mono-dev] TextReader, TextWriter and IDisposable

2006-10-21 Thread Robert Jordan
Leszek Ciesielski wrote: Hi, when I tested my vs2005 projects against xbuild, I found an annoying bug. My 2.0 code did not compile. I attach a snippet, alongs with comments. It seems that 1.0 TextReader/Writer did not implement IDisposable (or implemented it explicitly), although I cannot

Re: [Mono-dev] Parameter names and class status

2006-10-20 Thread Robert Jordan
Leszek Ciesielski wrote: Hi, I took a quick glance at corcompare utility, and it seems to ignore parameter names. And those are also part of API contract (eg. Spring uses them in configuration files). So I made a quick update to the GetSignature method. Please review. Would you please post

Re: [Mono-dev] Parameter names and class status

2006-10-20 Thread Robert Jordan
Leszek Ciesielski wrote: On 10/20/06, Leszek Ciesielski [EMAIL PROTECTED] wrote: On 10/20/06, Robert Jordan [EMAIL PROTECTED] wrote: Leszek Ciesielski wrote: Hi, I took a quick glance at corcompare utility, and it seems to ignore parameter names. And those are also part of API contract (eg

Re: [Mono-dev] A bug in the latest SVN System.Data (concurrency exception)?

2006-10-18 Thread Robert Jordan
Marek Habersack wrote: Hey folks, I've just noticed that whenever I try to update a dataset using the adapter, e.g.: cmdBuilder = CreateCommandBuilder(adapter); adapter.Update(ds.Users); (CreateCommandBuilder is a wrapper function that takes care of internals) I get a:

Re: [Mono-dev] problems with nunit and mcs/mono from svn...

2006-10-16 Thread Robert Jordan
Rafael Ferreira wrote: I just upgraded mono/mcs to the latest in trunk and now nunit is failing miserably with the following trace (it works fine with 1.1.13.7): [EMAIL PROTECTED] System.Threading]$ nunit-console run.dll Unhandled Exception: System.TypeLoadException: Could not load type

Re: [Mono-dev] On the way to bootstrap vbnc on Mono - How to debug the runtime on cygwin?

2006-10-15 Thread Robert Jordan
Hi Kornél, Kornél Pál wrote: Hi, Today I have made a lot of progress in making vbnc bootstrap on Mono. But I'm stuck with a SIGSEGV. And I have no experience at all in debugging the runtime. Debugging with GDB under Linux: http://www.mono-project.com/Debugging#Debugging_with_GDB

Re: [Mono-dev] RV: Please Help

2006-10-15 Thread Robert Jordan
Jorge Londoño wrote: Hi, I am using XSP, this is message from console application: An unhandled exception of type 'System.Web.Services.Protocols.SoapHeaderException' occurred in system.web.services.dll Additional information: Method 'Read' not found in type

Re: [Mono-dev] Patch to System.Web.SessionState.SessionSQLServerHandler

2006-10-13 Thread Robert Jordan
Miguel de Icaza wrote: Hello, Thanks for commiting my previous patch, but it's not complete because the INSERT query is column index dependent too. Here's the small patch which correct this. Thanks to commit! Does that mean that it is currently broken? Because we have already done

Re: [Mono-dev] Suggestion: Mono.Collection really useful

2006-09-30 Thread Robert Jordan
Francisco Modesto wrote: I'm new with Mono and C#. I come from java world. I think you are doing a great job, congratulations! I've to admit that mono (C#) language are more powerful than java. Events is one thing I miss in high level languages. Mono is not C#. See

Re: [Mono-dev] Mono - CreateProcess error

2006-09-26 Thread Robert Jordan
Honey, Steve wrote: A search of google says this was a bug which was supposed to be corrected in 1.1.16. I was running 1.1.13 so I upgraded to 1.1.17 but still have the problem. I also tried adding Process.Dispose() to the code but that hasn't help either (don't know if it should have, but

Re: [Mono-dev] Static Variables

2006-09-11 Thread Robert Jordan
Patrick Earl wrote: Hi all. I'm trying to track down a bug relating to static variables. You can see what the bug is all about here: http://bugzilla.ximian.com/show_bug.cgi?id=79211 I can easily examine the call that attempts to retrieve the value for ipv4Supported. However, I

Re: [Mono-dev] [PATCH] System.ServiceProcess API compatibilityfixes - try #2

2006-09-05 Thread Robert Jordan
Gert Driesen wrote: * we implement managed daemons for both Windows and Linux, and use either .NET remoting or web services to access these daemons remotely. I already wrote a native (unmanaged) Win32 service wrapper which embeds Mono's runtime and provides the same functionality like MS.NET.

Re: [Mono-dev] xsp2 on debian

2006-09-03 Thread Robert Jordan
Mirco Bauer wrote: On Fri, 2006-09-01 at 09:00 -0500, Michael Schurter wrote: The Debian Mono Group is doing an excellent job packaging Mono for Etch, so I have no idea why this bug has stayed open for so long. Thats because we have nobody who can maintain actively ASP.NET related things.

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

2006-09-03 Thread Robert Jordan
Andreia Gaita wrote: While you're talking about libMonoPosixHelper.so, I've stumbled onto a problem while trying to get System.IO.Compression to work with both the latest and the stable versions. Any call to deflate always blows up with an exception. I've looked at the source, and it's fine,

Re: [Mono-dev] File System-like storage

2006-08-31 Thread Robert Jordan
pablosantosluac wrote: Hi, Is there any library that can be used to store a file system like structure inside only one file? Ok, don't tell me a ZIP file... I already tried and performance is quite bad (tried with different libraries even)... Already tried with compression turned off?

Re: [Mono-dev] BindingList?

2006-08-31 Thread Robert Jordan
Mads Bondo Dydensborg wrote: Hi all I have been tasked with getting some windows C# code to compile/run using mono under Linux. I have run into the problem, that BindingList is not implemented in mono. (Which is also evident from the status page). I was wondering if there are

Re: [Mono-dev] File System-like storage

2006-08-31 Thread Robert Jordan
pablosantosluac wrote: but, can you add files?? Yes, but off-line. We're using a differential file system, which writes the changes into a parallel directory hierarchy: data.zip(the zip file) data.zip.diff\ (the differential file system) No way to use a ZIP file on-line. I thought you

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

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

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

2006-08-30 Thread Robert Jordan
Sebastien Pouliot wrote: On Wed, 2006-08-30 at 14:45 +0200, Robert Jordan wrote: About Mono's plugin: w/out a working CAS it's grossly negligent to even think about an implementation that allows the execution of assemblies from untrusted sources. Even if they were signed with God's own key

Re: [Mono-dev] Invoking method from base class in embedded environment

2006-08-28 Thread Robert Jordan
Janne Rantala wrote: Hi, I have two classes, simply Class1 and Class2. Class1 has only one method, public string get(). Class2 extends Class1. Now when I create an instance of Class1 in embedded environment, and wish to invoke that get() -method, either function

Re: [Mono-dev] Mach-o based exception handling

2006-08-27 Thread Robert Jordan
Hi, latency wrote: I don't know how your Application runs that scripts, but from your short description it seems that all of your user-scripts are being run from the same application domain as the hosting programm. If you try to adopt your programm that those scripts are being run in

Re: [Mono-dev] Bugs in Serialization

2006-08-27 Thread Robert Jordan
Hi, Check whether the assembly SRC, Version=1.0.2063.23042 has the same version on both sides. Robert admin rex wrote: Valentin, The serialized object is within the same module of the calling code. They are under the same namespace. So the assembly should be load when the application

Re: [Mono-dev] Application deployment questions

2006-08-25 Thread Robert Jordan
Hi, Originally I use Mono-1.1.13, and now I switch to use Mono-1.1.16. I tried to use mkbundle.exe but exceptions throw. Sources: 1 Auto-dependencies: False embedding: D:\test\x.exe Compiling: as -o temp.o temp.s Unhandled Exception: System.ComponentModel.Win32Exception: Cannot find

Re: [Mono-dev] internal call from c# to c++

2006-08-25 Thread Robert Jordan
Erik Christensen wrote: Hi, Trying to make a program, where it's possible to use C# to script to the Core (C++ code). I don't want to use P/Invoke. I can run the Internal calls example from http://http://www.mono-project.com/Embedding_Mono http://www.mono-project.com/Embedding_Mono

Re: [Mono-dev] Where is mono_burg_arity supposed to be defined ?

2006-08-25 Thread Robert Jordan
Andreas Lagemann wrote: Hi, I'm trying to compile mono on WinXP because I want to use the mono runtime in a C++ application(i.e. embedding mono) running under windows. So in order to get a working libmono.lib I tried to compile mono from svn as described on the mono pages. So first I built

Re: [Mono-dev] [PATCH] Rename mono-1.dll to mono.dll (win32, remove version)

2006-08-25 Thread Robert Jordan
Hi, Kornél Pál wrote: The name mono-1.dll is unusual on Windows. And I see no reason to version the dll. This dll is private to Mono or the application that bundles it. As only one Mono version can be installed to a single directory there is no reason to version the dll name. The name

Re: [Mono-dev] NullReferenceException thrown inside catch

2006-08-25 Thread Robert Jordan
Janne Rantala wrote: The Windows port seems to use SEH. Maybe a SEH handler could be able to catch the exception: #include windows.h MonoException *ex; __try { mono_runtime_invoke ( ..., ex); } __except (EXCEPTION_EXECUTE_HANDLER) { /* simulate a NRE */ ex =

Re: [Mono-dev] NullReferenceException thrown inside catch

2006-08-25 Thread Robert Jordan
Robert Jordan wrote: That works very well, thanks. It would be nice if both Linux and Windows version would work the same way though. Please file a bug, because the SEH handler above only cures the symptoms partially. It seems that Mono's SIGSEGV handler doesn't get installed at all

Re: [Mono-dev] Application deployment questions

2006-08-24 Thread Robert Jordan
Lucifer wrote: Hi everyone, I have read this article though sill not quite understand how to do it. http://www.mono-project.com/Guidelines:Application_Deployment The normal way to run an application compiled with Mono would be to invoke it through the Mono runtime, like this: mono

Re: [Mono-dev] [PATCH] Generate Consts.vb from Consts.cs (new patch)

2006-08-24 Thread Robert Jordan
Ympostor wrote: Kornél Pál wrote: I've done some more work on cs2vb.pl; now I consider it being complete. I might be wrong but I am wondering if it is consistent to use Perl for this kind of things, inside the mono project. It would be more logical to use Mono itself, and then not having

Re: [Mono-dev] NullReferenceException thrown inside catch

2006-08-24 Thread Robert Jordan
Robert Jordan wrote: Hi, Janne Rantala wrote: I found out that when NullReferenceException is thrown inside catch clause in embedded environment, Mono crashes. Normally when method is invoked with mono_runtime_invoke, exceptions are stored in MonoObject but somehow this does not happen

Re: [Mono-dev] NullReferenceException thrown inside catch

2006-08-24 Thread Robert Jordan
Robert Jordan wrote: Robert Jordan wrote: Hi, Janne Rantala wrote: I found out that when NullReferenceException is thrown inside catch clause in embedded environment, Mono crashes. Normally when method is invoked with mono_runtime_invoke, exceptions are stored in MonoObject but somehow

Re: [Mono-dev] Embedded Mono/Program freezes

2006-08-23 Thread Robert Jordan
, installed...) so I can't make sure everything compile afterward. Someday I'll check cygwin source code to see where it checks for my user's name to inject random faults :-| Thanks On Sat, 2006-08-19 at 15:56 +0200, Robert Jordan wrote: Janne Rantala wrote: 2006/8/19, Robert Jordan

Re: [Mono-dev] UdpClient Client Property bug

2006-08-23 Thread Robert Jordan
Matt Durgavich wrote: Hi all, I've been doing some socket development, and was surprised to see the following not compile. using System.Net.Sockets; public class TestClass { public static void Main() { UdpClient cli= new UdpClient(); Socket sock= cli.Client; -

Re: [Mono-dev] Novice in embeding Mono

2006-08-21 Thread Robert Jordan
Hi, Lucifer wrote: I'm new to Mono and unfamiliar with gcc compiler. Now I'd like to embed Mono runtime into my application. However, how can I specify the search path of runtime-dependent DLLs(mscorlib.dll) for my application? I've compiled my application with gcc as following command:

Re: [Mono-dev] local file based EventLog implementation

2006-08-21 Thread Robert Jordan
Hello, Miguel de Icaza wrote: I'd prefer the pure approach, meaning using your original EventLogMessages.dll. But we need approval from Miguel on this. Someone please send me a summary ;-) My feeling: I dont know why we need another dll. 1) The Win32-EventLog doesn't log strings. For

Re: [Mono-dev] Building Mono from source and Embedding Mono

2006-08-21 Thread Robert Jordan
Hey, Please don't cross post! I'm trying to embed mono in a C++ application on Windows and I keep getting a link error saying that mono_jit_init(const char *) is not found. I am using `pkg-config mono --cflags --libs` as an option to g++ and it looks like it should be working, but still I

Re: [Mono-dev] Embedded Mono/Program freezes

2006-08-20 Thread Robert Jordan
Janne Rantala wrote: 2006/8/20, Robert Jordan [EMAIL PROTECTED]: I can reproduce it. The socket connection to the web server hosting the web service remains open after the first mono_runtime_exec_managed_code terminates and the second run freezes the process. If I use mono_thread_attach

Re: [Mono-dev] Embedded Mono/Program freezes

2006-08-19 Thread Robert Jordan
Janne Rantala wrote: 2006/8/19, Robert Jordan [EMAIL PROTECTED]: You wrote that you're using mono_runtime_exec_managed_code (). If I understand the code correctly, the function will shutdown the runtime after the callback terminates. That's probably not what you expect, isn't it? Try

Re: [Mono-dev] Embedded Mono/Program freezes

2006-08-19 Thread Robert Jordan
Janne Rantala wrote: 2006/8/19, Robert Jordan [EMAIL PROTECTED]: Janne Rantala wrote: You said earlier that mono_runtime_exec_managed_code also shuts down the runtime, even if it does that, is it a problem in my case? Because I said: if I understand the code correctly. There is definitely

Re: [Mono-dev] Embedded Mono/Program freezes

2006-08-18 Thread Robert Jordan
Hey, Why do I have to deduce from other of your posts what you're trying to do? :-) Please try to be more detailed. I understand you have a server app which embeds mono (under Windows) and which sometimes acts as a *WebService client*. At least I can deduce this from the trace and from your

Re: [Mono-dev] System.Net

2006-08-18 Thread Robert Jordan
matt westerburg wrote: I am new to Mono, but not C#. I have installed mono a couple of times and messed around with it on a few distros. But I have never gotten the System.Net library. I am just inquiring to whether there is a working version of the class library? There is no library with

Re: [Mono-dev] System.Net

2006-08-18 Thread Robert Jordan
Please reply on the list. matt westerburg wrote: So if I had code that utilized System.Net and I just leave it with using System; Would it be compatible or would methods and classes be different? Like in MS.NET, System.Net is a namespace which happens to be implemented in the System

Re: [Mono-dev] Embedded Mono/Program freezes

2006-08-18 Thread Robert Jordan
Hi, Janne Rantala wrote: Now to the bug: Web servers usually deny more then 2 open connections from a specific client. Since your server acts on behalf of its clients, you're probably somehow reaching the limit. After reading your reply I thought that this must have been the reason. So I

Re: [Mono-dev] CIL to CIL optimizer

2006-08-14 Thread Robert Jordan
Felipe Almeida Lessa wrote: A CIL-to-CIL optimizer could probably do constant folding very easily or simplify some of the bad code generated by mcs for things like: [snip] Shouldn't it be the case of optimizing mcs and not creating another tool? If it's too difficult to fix mcs (I suspect

Re: [Mono-dev] Remoting implementation question - calls on System.Object

2006-08-14 Thread Robert Jordan
Hey, Brian Crowell wrote: Hey, here's a question-- does the remoting framework in Mono forward System.Object calls on MarshalByRefObjects? I'm looking at a stack trace that suggests it does, in which case, that could be a major source of your performance problems in XSP. Indeed, it does

Re: [Mono-dev] Remoting implementation question - calls on System.Object

2006-08-14 Thread Robert Jordan
Robert Jordan wrote: Hey, Brian Crowell wrote: Hey, here's a question-- does the remoting framework in Mono forward System.Object calls on MarshalByRefObjects? I'm looking at a stack trace that suggests it does, in which case, that could be a major source of your performance problems

Re: [Mono-dev] Mono 1.1.13.8 compilation problems

2006-08-11 Thread Robert Jordan
William Lahti wrote: Then I did make clean; make. Same mcs unusable errors: make[6]: Entering directory `/Users/Fury/Sources/mono- 1.1.13.8/mcs' *** The compiler 'mcs' doesn't appear to be usable. *** Trying the 'monolite' directory. make[7]: Entering directory

Re: [Mono-dev] resgen2 does not convert .resources to .resx file

2006-08-09 Thread Robert Jordan
Justin Dearing wrote: I was using resgen2 to convert a StringBuilder.resources from the SharpDevelop sources to a resx file. It failed as illustrated below: C:\Program Files\SharpDevelop\2.0\data\templates\project\CSharpresgen2 DefaultResources.resources DefaultResources.resx Error: Object

Re: [Mono-dev] System.Web.UI.Control.ResolveClientUrl

2006-08-09 Thread Robert Jordan
Andrew Skiba wrote: Hello. Robert, I see that Gonzalo approved your patch for bug #77539. Are you going to commit it soon? I want to commit the attached patch, and it depends on yours. Oops, I missed Gonzalos approval. I'll do it ASAP. Robert

Re: [Mono-dev] System.Web.UI.Control.ResolveClientUrl

2006-08-09 Thread Robert Jordan
Andrew, Robert, I see that Gonzalo approved your patch for bug #77539. Are you going to commit it soon? I want to commit the attached patch, and it depends on yours. It's in SVN. Thanks for the heads up. Robert ___ Mono-devel-list mailing list

Re: [Mono-dev] Keep-alive connection with Remoting?

2006-08-08 Thread Robert Jordan
Ympostor wrote: Ympostor wrote: Hello. I have done a small proof of concept of Remoting and found out that it works as a connection-made-by-demand. I thought that the MarshalRefByObj worked using always the same connection. Is there a way to use only a connection (with a somewhat

<    3   4   5   6   7   8   9   10   >