Re: [Mono-dev] Problem in Mono's implementation of System.IO.StreamReader?

2010-07-12 Thread Thiago Padilha
). On Sun, Jul 11, 2010 at 4:42 AM, Roman Procopie procopie.ro...@gmail.com wrote: Hi I had same problem, in similar circumstances. It seems that you need to pass the actual StreamReader to the further use of the stream. Regards Roman On 8 July 2010 22:22, Thiago Padilha tpadilh...@gmail.com

[Mono-dev] Problem in Mono's implementation of System.IO.StreamReader?

2010-07-08 Thread Thiago Padilha
Hi, I'm using StreamReader to read some text from a network stream that will contain a two part message : the first part(the one I'm reading) contains some headers in plain text, the second part may contain any kind of data. It doesnt matter the data in the second part of the message, I

Re: [Mono-dev] Problem in Mono's implementation of System.IO.StreamReader?

2010-07-08 Thread Thiago Padilha
Neverming, it seems to be the correct behavior according to http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx On Thu, Jul 8, 2010 at 4:22 PM, Thiago Padilha tpadilh...@gmail.com wrote:  Hi,  I'm using StreamReader to read some text from a network stream

Re: [Mono-dev] (WCF) Binding elements order

2010-07-07 Thread Thiago Padilha
);            ctx.BuildInnerChannelFactoryIRequestChannel ();        } Atsushi Eno On 2010/07/06 21:34, Thiago Padilha wrote:   Hi Atsushi,   While examining the file Binding.cs I found the following comment on the two overloads of CreateContext method : // FIXME: it seems that binding elements are // validated so

Re: [Mono-dev] Problem in SvcHttpHandler.cs ?

2010-07-06 Thread Thiago Padilha
code now.) Atsushi Eno On 2010/07/05 21:27, Thiago Padilha wrote:  Hi Atsushi,  I have started messing with WCF last week but I'm very interested in learning, If you need help with anything just send me a message.  Also, today I'm starting to develop an http binding/channel to allow REST

Re: [Mono-dev] Problem in SvcHttpHandler.cs ?

2010-07-06 Thread Thiago Padilha
(imagine if you have implemented WS-AtomicTransaction aside TransactionFlowBindingElement, and we don't have working code now.) Atsushi Eno On 2010/07/05 21:27, Thiago Padilha wrote:  Hi Atsushi,  I have started messing with WCF last week but I'm very interested in learning, If you need

[Mono-dev] (WCF) Binding elements order

2010-07-06 Thread Thiago Padilha
Hi Atsushi, While examining the file Binding.cs I found the following comment on the two overloads of CreateContext method : // FIXME: it seems that binding elements are // validated so that the last item is a transport. If you were unsure about where the binding elements should be

Re: [Mono-dev] Problem in SvcHttpHandler.cs ?

2010-07-05 Thread Thiago Padilha
mentioned, I'd rather finish the rewrite first and then fix the actual issue. The idea above is to use Uri comparison using UriComponents based on HostNameComparisonMode value (which is ignored so far). Atsushi Eno On 2010/06/29 21:46, Thiago Padilha wrote:    Hi,    I'm hosting a WCF service

[Mono-dev] (WCF) Possible bug in ChannelFactoryBase.cs

2010-07-05 Thread Thiago Padilha
Hi, I'm not sure about this, but maybe there's a small bug in the 'CreateChannel(EndpointAddress)' method : public TChannel CreateChannel ( EndpointAddress remoteAddress) { return CreateChannel (remoteAddress, null);

[Mono-dev] Problem in SvcHttpHandler.cs ?

2010-06-29 Thread Thiago Padilha
Hi, I'm hosting a WCF service using asp.net/mono from trunk (r159644) but encountered a problem when accessing the service from a virtual machine : The argument HTTP context did not match any of the registered listener manager (could be mismatch in URL, method etc.)

[Mono-dev] Hosting simple WCF service in XSP

2010-06-28 Thread Thiago Padilha
Is it possible? Im a newbie to WCF so I followed the steps in http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight to setup a simple service and it worked fine under asp.net development server(visual web developer 2010), but when I try with xsp2/mono 2.6 it fails.

Re: [Mono-dev] Sqlite Error when building XSP

2010-06-23 Thread Thiago Padilha
love life enough that you want to enhance its beauty, you want to bring a little more music to it, a little more poetry to it, a little more dance to it. Osho On Tue, Jun 22, 2010 at 6:34 PM, Thiago Padilha tpadilh...@gmail.com wrote:  Hi,  Ive downloaded xsp 2.6.4 from http

[Mono-dev] Sqlite Error when building XSP

2010-06-22 Thread Thiago Padilha
Hi, Ive downloaded xsp 2.6.4 from http://ftp.novell.com/pub/mono/sources-stable/ and tried to build on my parallel mono environment under /home but got this error : /home/thiago/monodev/bin/mono dbpage_test_setup.exe Unhandled Exception: System.DllNotFoundException: sqlite3 at (wrapper

[Mono-dev] Create a 'MonoImage' from a byte array.

2010-06-16 Thread Thiago Padilha
I'm trying to create a MonoImage/MonoAssembly from a byte array like this : //body omited, this is a simple function that return contents of a binary file and returns the file size in bytes as an out parameter static char *read_file_contents(char *fullpath, int *outfilesize); static MonoImage

[Mono-dev] Create a 'MonoImage' from a byte array. (corrected)

2010-06-16 Thread Thiago Padilha
 I'm trying to create a MonoImage/MonoAssembly from a byte array like this : //body omited, this is a simple function that return contents of a binary file and returns the file size in bytes as an out parameter static char *read_file_contents(char *fullpath, int *outfilesize); static char

[Mono-dev] Installing pre-load hooks on windows(bug?)

2010-06-16 Thread Thiago Padilha
I use a callback function to control assembly loading with this code : MonoAssembly *pre_hook(MonoAssemblyName *aname, gchar **assemblies_path, gpointer user_data) { char *name = aname-name; printf(\nTRYING TO LOAD ASSEMBLY : %s\n, name); return

[Mono-dev] Setting the assembly location

2010-06-14 Thread Thiago Padilha
I have a very simple C program that links against mono, heres part of the code : MonoDomain *domain; char *file = ManagedAssembly.exe; char* exePath = getexedir(); //method that returns the exe directory mono_set_dirs (exePath, exePath);

[Mono-dev] Setting the assembly location(complete)

2010-06-14 Thread Thiago Padilha
I have a very simple C program that links against mono, heres part of the code : // MonoDomain *domain;        char *file = ManagedAssembly.exe;        char* exePath = getexedir(); //method that returns the exe directory        mono_set_dirs (exePath, exePath);        mono_config_parse

Re: [Mono-dev] Embedding Mono

2010-06-09 Thread Thiago Padilha
Hi Jonathan, I'm also working with an embedded mono application, do you know if I can have full control on the assembly loader for mono? So far I only found a way to specify the probing directory, but what I really need is to instrument assemblies on demand, and that can only be done if I

[Mono-dev] Custom Assembly Loader

2010-06-08 Thread Thiago Padilha
Hi, How can I control the process of assembly loading when embedding mono? I know the calling 'mono_set_dirs (myapp_lib, myapp_etc);' will tell where the loader should find assemblies, but what If I want to customize the loading process to load code from memory? The reason for doing that is

[Mono-dev] Fwd: Problem creating a parallel mono environment

2010-06-04 Thread Thiago Padilha
-- Forwarded message -- From: Thiago Padilha tpadilh...@gmail.com Date: Fri, Jun 4, 2010 at 6:42 AM Subject: Re: [Mono-dev] Problem creating a parallel mono environment To: Bojan Rajkovic severedcr...@gmail.com  I did not run any autogen scripts since I used the tarball(as I

[Mono-dev] Customizing Mono for a specific app

2010-06-04 Thread Thiago Padilha
Hi I want to distribute a portable ASP.NET application with its own managed web server - aspNETserve, however this server only seems to work when its assemblies are installed in the GAC, otherwise the ' ApplicationManager.CreateObject' throws a FileNotFoundException for failing to find the

[Mono-dev] Problem creating a parallel mono environment

2010-06-03 Thread Thiago Padilha
Hi, I'm trying to setup mono 2.6.4 on Ubuntu 10.04, but I have little experience with linux, I'm following the instructions here - http://www.mono-project.com/Parallel_Mono_Environments . The reason for that is to try monodevelop 2.4 which won't compile against mono 2.4.4 that comes with