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

2006-08-28 Thread Janne Rantala
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 mono_class_get_method_from_name cannot find it and

Re: [Mono-dev] NullReferenceException thrown inside catch

2006-08-25 Thread Janne Rantala
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 =

[Mono-dev] NullReferenceException thrown inside catch

2006-08-24 Thread Janne Rantala
Hi, 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 in this case. This happened when I tried to print

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

2006-08-21 Thread Janne Rantala
It looks to me as if there is still something weird with ServicePointManager. When I run that web service from two different clients they both work fine. But when third one is started it just freezes, and after 100 seconds I get that The request timed out. message again. Now I tried setting that

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

2006-08-20 Thread Janne Rantala
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, everything works as

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

2006-08-19 Thread Janne Rantala
2006/8/19, Robert Jordan [EMAIL PROTECTED]: 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

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

2006-08-19 Thread Janne Rantala
when I run that program two times everything still works fine but I get that The request timed out. Is it because that runtime shutdown or something else? Last time you wrote that the second request is timing out. If the third is timing out, we are back to the first guess: the socket

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

2006-08-18 Thread Janne Rantala
Hi! 2006/8/18, Robert Jordan [EMAIL PROTECTED]: Hey, Why do I have to deduce from other of your posts what you're trying to do? :-) Please try to be more detailed. Sorry about that, you did fine job crawling those posts though :) I understand you have a server app which embeds mono (under

Re: [Mono-dev] [Mono-list] Mono SVN - compiling on windows

2006-07-30 Thread Janne Rantala
2006/7/31, Alan McGovern [EMAIL PROTECTED]: Hi,Basically, i'm slowly being driven demented trying to compile Mono SVN on windows. I just can't seem to get it to work. I've read the guide on the mono website about compiling mono, but i still can't get it compiled. I was hoping that someone who has

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

2006-07-26 Thread Janne Rantala
2006/7/26, Atsushi Eno [EMAIL PROTECTED]: Hmm, then I don't think I should change OpenExeConfigurationInternal()to skip the check for the argument exception, since you load your ownexe which has a corresponding config file and it is expected thatthe config file should be loaded. There would be a

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

2006-07-26 Thread Janne Rantala
Hi,I've loaded assembly (compiled in VS.NET) in embedded environment. This assembly is supposed to work as a client for web service. However this does not work because Assembly.GetEntryAssembly returns null when called from managed code. This causes ConfigurationManager to throw ArgumentException

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

2006-07-26 Thread Janne Rantala
2006/7/26, Janne Rantala [EMAIL PROTECTED]: Hi,I've loaded assembly (compiled in VS.NET) in embedded environment. This assembly is supposed to work as a client for web service. However this does not work because Assembly.GetEntryAssembly returns null when called from managed code. This causes

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

2006-07-25 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 Eno Hi again,I tried that web service from embedded mono -problem again. I still get that exePath must be specified

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

2006-07-25 Thread Janne Rantala
2006/7/25, Atsushi Eno [EMAIL PROTECTED]: Hi,Janne Rantala wrote: 2006/7/25, Atsushi Eno [EMAIL PROTECTED]: Hi, Janne Rantala wrote: 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

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

2006-07-25 Thread Janne Rantala
2006/7/25, Atsushi Eno [EMAIL PROTECTED]: Hi, OK, try the following steps: - change the error message in OpenExeConfigurationInternal()in the first throw ArgumentException in ConfigurationManager.cs in mcs/class/System.Configuration/System.Configuration, towhatever you like. - Rebuild all, and

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

2006-07-25 Thread Janne Rantala
2006/7/25, Atsushi Eno [EMAIL PROTECTED]: Hi, I noticed that ClientConfigurationSystem still uses GetEntryAssembly() which however looks correct. What does that method return in your code? If GetEntryAssembly() returns null and you don't have a configuration file, then maybe we should just remove

Re: [Mono-dev] Fatal error in gc

2006-07-12 Thread Janne Rantala
2006/7/13, Miguel de Icaza [EMAIL PROTECTED]: Hello, I'm trying to run web service client from embedded environment but I keep getting this Fatal error in gc, collecting from unknown thread. error when web service is invoked. I've tried with few different web service assemblies but they all give

Re: [Mono-dev] Building with Visual Studio 2005

2006-07-10 Thread Janne Rantala
2006/7/10, Rusmin Susanto [EMAIL PROTECTED]: Hello. I am trying to build Mono with Visual Studio 2005. I managed to build it. However, when I run mono, I got the following error message:Thread %p calling into managed code is not registered with the GC. On UNIX, this can be fixed by

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.TypeInitializationException : An exception

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

2006-06-30 Thread Janne Rantala
Hi,I created simple web service client which tries to access net.xmethods.www.CurrencyExchangeService. Assembly is created with Visual Studio 2005 and it works fine in that environment. When I try to initialize client from embedded Mono, I got this error stating that SendOrPostCallback could not

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

2006-06-30 Thread Janne Rantala
2006/6/30, Robert Jordan [EMAIL PROTECTED]: Robert Jordan wrote: 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

[Mono-dev] Multiple domains

2006-06-29 Thread Janne Rantala
Hi,First, could someone specify what root domain exactly means and what is it meant for? Mono project's web site says about mono_jit_init that That will return a MonoDomain where your code will be executed. You can create multiple domains. Each domain is isolated from the other domains and code

[Mono-dev] Re: Mono in Visual Studio 2005

2006-05-24 Thread Janne Rantala
Looks like my libmono-project was missing files loca-propagation.c and wapihandles.c. :janne2006/5/23, Janne Rantala [EMAIL PROTECTED] :Hello,I'm trying to run embedded Mono samples in Visual Studio 2005. It's been a while since the last time I did this, so I updated Mono source files from svn

[Mono-dev] Mono in Visual Studio 2005

2006-05-23 Thread Janne Rantala
Hello,I'm trying to run embedded Mono samples in Visual Studio 2005. It's been a while since the last time I did this, so I updated Mono source files from svn and also updated Glib (in VSDependencies) to version 2.6.6 . But, everything else in Mono Solution builds fine, not the embedded samples

Re: [Mono-dev] Re: r58871 - trunk/mono/mono/metadata

2006-04-05 Thread Janne Rantala
Hi guys!I may have same situation with my VS2005, what kind of updates you did? Cheers,Janne2006/4/4, Jonathan S. Chambers [EMAIL PROTECTED]:Yes, I am. I will upgrade.Thanks. -Original Message-From: Zoltan Varga [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 04, 2006 3:43 PMTo: Jonathan

Re: [Mono-dev] Re: r58871 - trunk/mono/mono/metadata

2006-04-05 Thread Janne Rantala
Ok, more stupid questions follow :) Since I'm trying to run embed Mono samples, those project files use glib from Vsdependencies package, I'm I right? Those files are old as version 2.0.4.19, is there updated Vsdependencies or does it have to be done manually? Or I'm I completely lost with this?

[Mono-dev] Re: XmlSerializer / exePath must be specified

2006-03-30 Thread Janne Rantala
the results are less hopeful.Any ideas?Janne2006/3/21, Janne Rantala [EMAIL PROTECTED] :Hi,I'm trying to run web service proxy with embedded Mono but I keep getting this error message. Can anybody give me a hint where to specify that exePath? Unhandled Exception: System.TypeInitializationException

Re: [Mono-dev] Embedded Mono/errors in domain-internals.h

2006-03-20 Thread Janne Rantala
reportingproblems withit. ZoltanOn 3/17/06, Janne Rantala [EMAIL PROTECTED] wrote: Hi! Building libmono gives me error \mono\os\win32\util.c no such file or directory? Janne 2006/3/16, Zoltan Varga [EMAIL PROTECTED] : Hey, This should be fixed as well. Zoltan On 3/16/06, Janne Rantala [EMAIL

Re: [Mono-dev] Bad images on mono website (in Embedding Mono)

2006-03-20 Thread Janne Rantala
Hi,I've been missing those images too, does anyone here know who could fix this?Cheers,Janne2006/3/17, Martin Olsson [EMAIL PROTECTED] :At this page:http://www.mono-project.com/Embedding_Mono In this section:How Embedding WorksThere are several references to images, like:[Image:existing.png]

[Mono-dev] XmlSerializer / exePath must be specified

2006-03-20 Thread Janne Rantala
Hi,I'm trying to run web service proxy with embedded Mono but I keep getting this error message. Can anybody give me a hint where to specify that exePath? Unhandled Exception: System.TypeInitializationException : An exception was thrownby the type initializer for

Re: [Mono-dev] Embedded Mono/errors in domain-internals.h

2006-03-16 Thread Janne Rantala
: ';'.\mono\utils\monobitset.c(327) : error C2059: syntax error : 'type'Janne2006/3/16, Zoltan Varga [EMAIL PROTECTED]: Hey,This should now be fixed in SVN. ZoltanOn 3/16/06, Janne Rantala [EMAIL PROTECTED] wrote: Hi, Since last update I've been getting hundreds of errrors when I rebuild Mono

[Mono-dev] Embedded Mono/errors in domain-internals.h

2006-03-15 Thread Janne Rantala
Hi,Since last update I've been getting hundreds of errrors when I rebuild Mono solution in Visual Studio 2005. There are errors in other files as well, but here is few of them if someone could tell me what's the problem. These errors occur when genmdesc is being built.

[Mono-dev] Embedded Mono - how to update correctly

2006-03-14 Thread Janne Rantala
Hi,What is the right way to do things when I want to update files from svn and use them with embedded mono? What I'm doing now is after updating mono, mcs and libgdiplus from svn, I run ./autogen.sh --prefix=/opt/mono --with-preview=yes; make; make install. When that's done, I clean and rebuild

Re: [Mono-dev] Embedded Mono webservice problem

2006-03-02 Thread Janne Rantala
System.Configuration.DefaultConfig:GetConfig (System.String sectionName)in 0x00017 System.Configuration.ConfigurationSettings:GetConfig (System.StringsectionName) in 0x001cd System.Xml.Serialization.XmlSerializer:.cctor ()--- End of inner exception stack trace ---:janne2006/1/20, Janne Rantala [EMAIL

[Mono-dev] Undeclared identifier in threads.c/VS2005

2006-03-01 Thread Janne Rantala
Hi all,I'm currently trying to build Mono in Visual Studio 2005, but it seems that there is undeclared identifier __func__ in threads.c which causes build to fail. Revision of threads.c is 57160. Looks like latest changes to that file have been made six days ago, am I the only one having these

[Mono-dev] Building Mono in VS fails

2006-01-31 Thread Janne Rantala
Hi,I just updated Mono source from svn, ran autogen.sh, make and make install in Cygwin. When I tried building Mono solution in VS2005, I got these errors:.\mono\metadata\metadata.c(1855) : error C2275: 'gboolean' : illegal use of this type as an _expression_

Re: [Mono-dev] Embedded Mono webservice problem

2006-01-20 Thread Janne Rantala
but it doesn't help either. Mono does find assemblies and gac with current setting though. :janne 2006/1/19, Robert Jordan [EMAIL PROTECTED]: Janne Rantala wrote: Hi, I'm having problems accessing webservice assembly from embedded mono. Only thing that the assembly does is create the service stub class

[Mono-dev] Embedded Mono webservice problem

2006-01-19 Thread Janne Rantala
Hi,I'm having problems accessing webservice assembly from embedded mono. Only thing that the assembly does is create the service stub class, it doesn't even call the service method. Here's the error message I get: Unhandled Exception: System.Reflection.TargetInvocationException: Exception hasbeen

Re: [Mono-dev] Embedded Mono webservice problem

2006-01-19 Thread Janne Rantala
does find assemblies and gac with current setting though.:janne 2006/1/19, Robert Jordan [EMAIL PROTECTED]: Janne Rantala wrote: Hi, I'm having problems accessing webservice assembly from embedded mono. Only thing that the assembly does is create the service stub class, it doesn't even call

Re: [Mono-dev] make error on r55409

2006-01-12 Thread Janne Rantala
Hi, Have you found solution to this problem yet? I had quite similar error message today but I have no idea what might be causing that. :janne System.Windows.Forms\ButtonBase.cs(554,12): error CS0103: The name `use_compatib le_text_rendering' does not exist in the context of

Re: [Mono-dev] make error on r55409

2006-01-12 Thread Janne Rantala
joe_audette [at] yahoo dotcom http://www.joeaudette.com http://www.mojoportal.com- Original Message From: Janne Rantala [EMAIL PROTECTED]To: mono-devel-list@lists.ximian.com Sent: Thursday, January 12, 2006 11:19:53 AMSubject: Re: [Mono-dev] make error on r55409Hi, Have you found

Re: [Mono-dev] make error on r55409

2006-01-12 Thread Janne Rantala
From: Janne Rantala [EMAIL PROTECTED]To: mono-devel-list@lists.ximian.com Sent: Thursday, January 12, 2006 11:19:53 AMSubject: Re: [Mono-dev] make error on r55409Hi, Have you found solution to this problem yet? I had quite similar error message today but I have no idea what might be causing

[Mono-dev] Embedding Mono

2006-01-07 Thread Janne Rantala
Hasn't anyone used Visual Studio 2005 for running Mono embed samples? I'm still trying to figure why I get Access violation reading location -error messages when I try to run my program. I've located the error in GetSystemTimeAsFileTime -method which is called from __security_init_cookie(), but

[Mono-dev] Running Mono embed samples in Visual Studio 2005

2006-01-02 Thread Janne Rantala
Hi, I'm trying to run Mono test-invoke sample in Visual Studio 2005 (Windows XP SP2), but when I start the program it gives me error Unhandled exception at 0x000530ea in Monotest.exe: 0xC005: Access violation reading location 0x000530ea.. I've tried to locate the source for this