[Mono-dev] [PATCH] System.Net.Sockets.TcpListener 2.0 Updates

2006-07-07 Thread Ivan N. Zlatev
The attached patch includes updates for the TcpListener class to .Net 2.0. Please someone review and commit. Cheers, -- Ivan N. Zlatev Web: http://www.i-nZ.net GPG Key: http://files.i-nZ.net/i-nZ.asc "It's all some kind of whacked out conspiracy." TcpListener_Updates.diff Description: Binary d

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Kornél Pál
System.Reflection.Emit is far from metadata. So you should rewrite large parts of gmcs if you would like to use Cecil. If you only want to generate IL code it could be easier but for edit and continue you need metadata as well. I think the easiest solution is to compile using gmcs and load the

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread David Srbecky
I need to compile source code and there is a great C# compiler - gmcs. gmcs will save the update using System.Reflection.Emit and so this is how I need to get the data. Consider this: - I compile program using gmcs and save it to assembly Foo.exe - I make gmcs to reemit one method using System.R

[Mono-dev] problem compiling mod_mono from svn on Suse 10.1

2006-07-07 Thread Joe Audette
I'm having a problem compiling mod_mono from svn on Suse 10.1. using autogen.sh --prefix=/usr I get this which looks ok to me: Configuration summary for mod_mono * Installation prefix = /usr * Apache version = 2.2 * Apache modules directory = /usr/lib/apache2 * apxs = /usr/sbin/apxs2

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Kornél Pál
Cecil can read and write metadata and IL code so you can even modify existing metadata or IL code. If you want to compile source code to IL code you need a compiler. Neither System.Reflection.Emit nor Cecil provides any compiler so this is not a difference. Kornél - Original Message -

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread David Srbecky
I do not see how Cecil can help me - can you please outline how could I use it? I know that Cecil can write new IL code and metadata to an assembly, but that's not what I want to do - I somehow want to obtain new IL code and metadata from a given source code of one method. David Kornél Pál wr

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Kornél Pál
Why do you want to extend System.Reflection.Emit when Cecil already can do that? As far as I know Cecil can be used with .NET Framework as well so you don't even need two different runtimes. BTW according to your previous messages you don't only want to change IL code but you want to modify met

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread David Srbecky
> If you want to modify existing assemblies you should use Cecil > (http://www.mono-project.com/Cecil) because it is designed to do this > while System.Reflection.Emit is designed to emit new code and in fact I do not want to save the new IL code to assembly, I want to save it to memory to chan

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Kornél Pál
If you want to modify existing assemblies you should use Cecil (http://www.mono-project.com/Cecil) because it is designed to do this while System.Reflection.Emit is designed to emit new code and in fact it have less support for metadata creation than C# requires because Microsoft is not using i

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread David Srbecky
Hello, Here is a longer description of how I want to make the basic Edit and Continue work. My questions are at the end. Microsoft's .NET runtime will run the modifiable application and the IDE with debugger (SharpDevelop). Mono will be used to do the System.Reflection.Emit stuff - compile the

[Mono-dev] TCPListner compatiblity

2006-07-07 Thread tcmichals
On Microsoft the API is public for example // Summary: // Gets the underlying network System.Net.Sockets.Socket. // The underlying System.Net.Sockets.Socket. public Socket Server { get; } On Mono it is On Mono it is protected Socket Server { get; } Thus the module is compiled on Windows using VS

Re: [Mono-dev] web service interface

2006-07-07 Thread Miguel de Icaza
Hello, > I've been tasked with removing the generated html interface and wsdl file > from a web service that is running on Mono. I can do this in IIS but have > been unable to do so in Mono. > > Any ideas? Edit $prefix/etc/mono/version/DefaultWsdlHelpGenerator.aspx Miguel _

Re: [Mono-dev] BUG? System.Windows.Forms not working with resources?

2006-07-07 Thread Peter Dennis Bartok
Thaqt's news to me that that method is not implemented. Usually works just fine. Can you create a sample (or post or privately provide your application) so we can test this? Silent failure is not intended. Peter -Original Message- From: ""Andrés G. Aragoneses [ knocte ]"" <[EMAIL PROTEC

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Janne Rantala
2006/7/7, Atsushi Eno <[EMAIL PROTECTED]>: I made a fix in svn, but I have no test case for embedded scenario.If you are using mono from svn, can you please try it?Atsushi EnoHi Atsushi,I didn't get that same error anymore, instead I got "Fatal error in gc, collecting from unknown thread". If this

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Brian Crowell
Brian Crowell wrote: > Barring those two things, such a set of classes might be trivial to write. > They'd essentially just be wrappers for the runtime's metadata services. Oh, er, except for the part about starting with source code. How do you generate the code for just *one* method? --Brian

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Brian Crowell
Kornél Pál wrote: > According to Microsoft's public announcements they have done significant > modifications to their runtime to support Edit and Continue so this > probably it's as easy as writing some managed code. Under the .NET Framework, yes. You could probably write a set of classes that

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Brian Crowell
David Srbecky wrote: > Yes, you are right - changing running program is probably extremely > difficult, but I want to use Microsoft runtime which has this > functionality already implemented and available via really simple API. > So this is not a problem. > > The problem is that I need to get t

Re: [Mono-dev] Web service client - SendOrPostCallback could notbeloaded

2006-07-07 Thread Janne Rantala
2006/7/7, Kornél Pál <[EMAIL PROTECTED]>: mono_jit_init takes a file name. If you pass the name of a file that has"v2.0.50727" in it's header the runtime should load mscorlib.dll version2.0.0.0. Make sure that the assembly has the correct version number in it's header for example using corflags.exe

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Kornél Pál
You cannot use Mono's System.Reflection.Emit on Microsoft .NET Framework runtime because both implementation rely on internal calls that requires the same runtime and mscorlib.dll version. Kornél - Original Message - From: "David Srbecky" <[EMAIL PROTECTED]> To: Sent: Friday, July 07,

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Kornél Pál
Hi, According to Microsoft's public announcements they have done significant modifications to their runtime to support Edit and Continue so this probably it's as easy as writing some managed code. Kornél - Original Message - From: "Brian Crowell" <[EMAIL PROTECTED]> To: "David Srbecky

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread David Srbecky
Brian Crowell wrote: > David Srbecky wrote: >> The idea is that I will emit disk assembly using >> System.Reflection.Emit as usually, but later on I will re-emit body of >> some function and fetch changed data into memory. Once I got the data >> I can feed it to the .NET runtime - that should no

Re: [Mono-dev] Edit and Continue / Function body rewrite

2006-07-07 Thread Brian Crowell
David Srbecky wrote: > The idea is that I will emit disk assembly using System.Reflection.Emit > as usually, but later on I will re-emit body of some function and fetch > changed data into memory. Once I got the data I can feed it to the .NET > runtime - that should not be a problem. Er, I don'

Re: [Mono-dev] Web service client - SendOrPostCallback could notbeloaded

2006-07-07 Thread Kornél Pál
mono_jit_init takes a file name. If you pass the name of a file that has "v2.0.50727" in it's header the runtime should load mscorlib.dll version 2.0.0.0. Make sure that the assembly has the correct version number in it's header for example using corflags.exe. If problem is still there please

Re: [Mono-dev] Web service client - SendOrPostCallback could not beloaded

2006-07-07 Thread Janne Rantala
2006/7/7, Kornél Pál <[EMAIL PROTECTED]>: Use mono_init_version () to initialize the runtime with a specific runtimeversion.If you initialize the runtime using an assembly you should compile it withthe appropriate version of the compiler or use .config files to specify the runtime version.Use eithe

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Janne Rantala
2006/7/7, Robert Jordan <[EMAIL PROTECTED]>: Janne Rantala wrote:> 2006/7/7, Robert Jordan <[EMAIL PROTECTED]>: Janne Rantala wrote:>> > 2006/6/30, Robert Jordan < [EMAIL PROTECTED]>:>> >> Janne Rantala wrote:>> >> > 2006/6/30, Miguel de Icaza <[EMAIL PROTECTED]>:>> >> >> >> >> >> Hello,>>

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Robert Jordan
Janne Rantala wrote: > 2006/7/7, Robert Jordan <[EMAIL PROTECTED]>: >> >> Janne Rantala wrote: >> > 2006/6/30, Robert Jordan <[EMAIL PROTECTED]>: >> >> >> >> Janne Rantala wrote: >> >> > 2006/6/30, Miguel de Icaza <[EMAIL PROTECTED]>: >> >> >> >> >> >> Hello, >> >> >> >> >> >> > When I try to initi

[Mono-dev] Snippets in mcs

2006-07-07 Thread Daniel Morgan
John, This is awesome! I love seeing snippets, examples, and samples in mcs. I wish we did this with other class libraries. I remember trying gtk+ back in 1998. I liked how it actually included examples to play with. This sure cuts the learning curve in half. So, if mono release tarball

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Janne Rantala
2006/7/7, Robert Jordan <[EMAIL PROTECTED]>: Janne Rantala wrote:> 2006/6/30, Robert Jordan <[EMAIL PROTECTED]>: Janne Rantala wrote:>> > 2006/6/30, Miguel de Icaza < [EMAIL PROTECTED]>:>> >> Hello,>> >> > When I try to initialize client from embedded Mono, I got this error>> >> > sta

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Robert Jordan
Janne Rantala wrote: > 2006/6/30, Robert Jordan <[EMAIL PROTECTED]>: >> >> Janne Rantala wrote: >> > 2006/6/30, Miguel de Icaza <[EMAIL PROTECTED]>: >> >> >> >> Hello, >> >> >> >> > When I try to initialize client from embedded Mono, I got this error >> >> > stating that SendOrPostCallback could no

Re: [Mono-dev] Web service client - SendOrPostCallback could not beloaded

2006-07-07 Thread Janne Rantala
2006/7/7, Kornél Pál <[EMAIL PROTECTED]>: Use mono_init_version () to initialize the runtime with a specific runtimeversion.If you initialize the runtime using an assembly you should compile it withthe appropriate version of the compiler or use .config files to specify the runtime version.Use eithe

Re: [Mono-dev] Web service client - SendOrPostCallback could not beloaded

2006-07-07 Thread Kornél Pál
Use mono_init_version () to initialize the runtime with a specific runtime version. If you initialize the runtime using an assembly you should compile it with the appropriate version of the compiler or use .config files to specify the runtime version. Use either "v1.1.4322" or "v2.0.50727" for

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Janne Rantala
2006/6/30, Robert Jordan <[EMAIL PROTECTED]>: Janne Rantala wrote:> 2006/6/30, Miguel de Icaza <[EMAIL PROTECTED]>: Hello, > When I try to initialize client from embedded Mono, I got this error >> > stating that SendOrPostCallback could not be loaded? It means that this method has not

Re: [Mono-dev] xsp - mod_mono charset problem

2006-07-07 Thread Kornél Pál
Hi, Use globalization configuration element just like with Microsoft ASP.NET: http://msdn2.microsoft.com/en-us/library/hy4kkhe0.aspx fileEncoding is the encoding of source files (.aspx, .ascx, ...) responseEncoding is the encoding of input (posted data) responseEncoding is the encoding of output

[Mono-dev] xsp - mod_mono charset problem

2006-07-07 Thread subscription.sapi
We are porting a web application developed on Visual Studio .NET 2003 (obviously on microsoft Windows environment). Copying through ftp all files from Windows on Linux, because probably files are in ISO-8859-1 encoding on windows, same files encoding is retained on linux filesystem. For ap

Re: [Mono-dev] Make install fails this morning

2006-07-07 Thread Dick Porter
On Fri, 2006-07-07 at 10:01 +0200, Hubert FONGARNAND wrote: > make[3]: Entering directory `/home/hubert/mono/mcs/class/System' > MONO_PATH="../../class/lib/net_1_1_bootstrap: > $MONO_PATH" /home/hubert/mono/mono/runtime/mono-wrapper > ../../class/lib/net_1_1_bootstrap/gacutil.exe /i > ../../clas

[Mono-dev] BUG? System.Windows.Forms not working with resources?

2006-07-07 Thread Andrés G. Aragoneses [ knocte ]
Hello. I have just downloaded Mono 1.1.16 today and tried a SWF application with it. It failed silently (no exceptions thrown!! :( ), so I began debugging it and I have discovered that mono exits when reaches the following line: this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetOb

Re: [Mono-dev] Patch for TimeZone.cs to fix DateTime.Kind bug

2006-07-07 Thread Atsushi Eno
Hi, Your patch is in svn (with some tests) now. Thanks. Atsushi Eno Thong Nguyen wrote: > Hi, > > The property DateTime.Now, DateTime.UtcNow and the methods > DateTime.ToLocalTime() and DateTIme.ToUniversalTime() don't set the > DateTime.Kind property as they should. > > I've reported this as

[Mono-dev] web service interface

2006-07-07 Thread cstokes
Hi I've been tasked with removing the generated html interface and wsdl file from a web service that is running on Mono. I can do this in IIS but have been unable to do so in Mono. Any ideas? Thanks Chris Stokes -- View this message in context: http://www.nabble.com/web-service-interface-tf1

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Janne Rantala
2006/7/7, Atsushi Eno <[EMAIL PROTECTED]>: Atsushi Eno wrote:> Janne Rantala wrote:>> 2006/7/3, Atsushi Eno <[EMAIL PROTECTED]>:>>> Hello,>>> Another error about web services is this which I usually get when >>> trying>>> to initialize client: Unhandled Exception: System.TypeInitial

[Mono-dev] Make install fails this morning

2006-07-07 Thread Hubert FONGARNAND
make[3]: Entering directory `/home/hubert/mono/mcs/class/System' MONO_PATH="../../class/lib/net_1_1_bootstrap:$MONO_PATH" /home/hubert/mono/mono/runtime/mono-wrapper  ../../class/lib/net_1_1_bootstrap/gacutil.exe /i ../../class/lib/default/System.dll /f /gacdir /usr/lib /root /usr/lib /package

Re: [Mono-dev] Web service client - SendOrPostCallback could not be loaded

2006-07-07 Thread Atsushi Eno
Atsushi Eno wrote: > Janne Rantala wrote: >> 2006/7/3, Atsushi Eno <[EMAIL PROTECTED]>: >>> Hello, >>> Another error about web services is this which I usually get when >>> trying >>> to initialize client: Unhandled Exception: System.TypeInitializationException : An exception >