[Mono-list] Fw: monodoc doesn't start

2004-02-18 Thread Yuri Leikind


Hello all, 

I have compiled  gtk-sharp-0.16  and then monodoc-0.10.
When I run browser.exe, I get


Unhandled Exception: System.DllNotFoundException: libglade-2.0-0.dll
in <0x0005c> (wrapper managed-to-native) Glade.XML:glade_xml_new_from_buffer 
(byte[],int,string,string)
in <0x00105> Glade.XML:.ctor (System.Reflection.Assembly,string,string,string)
in <0x0006f> Monodoc.Browser:.ctor ()
in <0x002b2> Monodoc.Driver:Main (string[])


I see that the glade library installed is glade-sharp.dll, not libglade-2.0-0.dll,
but symlinking or copying doesn't work.

What's wrong?


-- 
Best regards,
Yuri Leikind

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] monodoc doesn't start

2004-02-20 Thread Yuri Leikind
Hello all, 

I have compiled  gtk-sharp-0.16  and then monodoc-0.9.
When I run browser.exe, I get


Unhandled Exception: System.DllNotFoundException: libglade-2.0-0.dll
in <0x0005c> (wrapper managed-to-native) Glade.XML:glade_xml_new_from_buffer 
(byte[],int,string,string)
in <0x00105> Glade.XML:.ctor (System.Reflection.Assembly,string,string,string)
in <0x0006f> Monodoc.Browser:.ctor ()
in <0x002b2> Monodoc.Driver:Main (string[])


I see that the glade library installed is glade-sharp.dll, not libglade-2.0-0.dll,
but symlinking or copying doesn't work.

What's wrong?


-- 
Best regards,
Yuri Leikind
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] embedded xml docs

2004-05-24 Thread Yuri Leikind
Hello all,

I use Mono 0.31 packages from Debian Unstable.

I found out that the /doc option in mcs does not work. 
I searched in mailing list archives and found out
that this feature is not implemented, partially to the different
way the Mono project chose for its documentation - storing
docs in separate files and viewing help with Monodoc.

Ok. I use Monodoc. 

But how do I extract documentation from a source file using 
Mono, if there is a way?


-- 
Best regards,
Yuri Leikind

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] nunit-console

2004-05-26 Thread Yuri Leikind
Hello all,

If an NUnit  test references types in some other assembly, and is compiled with 
/r:SomeOtherAssembly.dll,
should nunit-console load this assembly at runtime, or should I run nunit-console with 
this assembly
as one of the input files.

I am asking because both variants just don't work for me.

The test is compiled with this command:

  mcs /r:NUnit.Framework.dll,dict.dll /target:library  /out:tests/tests.dll  
tests/tests.cs

As you see, tests/tests.dll references dict.dll in the current directory.

Now I run the test:

[EMAIL PROTECTED]:~/cs/dict$ nunit-console  /nologo  ./tests/tests.dll

** (/usr/share/dotnet/bin/nunit-console.exe:16921): WARNING **: Could not find 
assembly dict
Unhandled Exception: System.NullReferenceException: Object reference not set to an 
instance of an object

Server stack trace: 
in (unmanaged) /usr/lib/libmono.so.0 [0x400c76e2]
[LINES SKIPPED BY ME]
in <0x00177> System.Runtime.Remoting.RemotingServices:InternalExecuteMessage 
(System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallMessage)


Exception rethrown at [0]: 

in <0x0028f> NUnit.Core.TestDomain:LoadAssembly (string,string)
in <0x00095> NUnit.Util.NUnitProject:LoadTest (NUnit.Core.TestDomain,string)
in <0x0016d> NUnit.Console.ConsoleUi:MakeTestFromCommandLine 
(NUnit.Core.TestDomain,NUnit.Util.ConsoleOptions)
in <0x0016d> NUnit.Console.ConsoleUi:Main (string[])




Ok. now let's give dict.dll as an argument:

[EMAIL PROTECTED]:~/cs/dict$ nunit-console  /nologo  dict.dll  ./tests/tests.dll
Unhandled Exception: System.DllNotFoundException: shlwapi.dll
in <0x00053> (wrapper managed-to-native) NUnit.Util.ProjectPath:PathCanonicalize 
(System.Text.StringBuilder,string)
in <0x00038> NUnit.Util.ProjectPath:Canonicalize (string)
in <0x0001a> NUnit.Util.ProjectPath:RelativePath (string,string)
in <0x0015f> NUnit.Util.ProjectConfig:get_PrivateBinPath ()
in <0x00154> NUnit.Util.NUnitProject:LoadTest (NUnit.Core.TestDomain,string)
in <0x0016d> NUnit.Console.ConsoleUi:MakeTestFromCommandLine 
(NUnit.Core.TestDomain,NUnit.Util.ConsoleOptions)
in <0x0016d> NUnit.Console.ConsoleUi:Main (string[])


What am I doing wrong?

I use Mono 0.31 packages from Debian Unstable.

-- 
Best regards,
Yuri Leikind

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Monodevelop crashes on startup, in Gtk.Application.RunIteration ();

2004-06-10 Thread Yuri Leikind
Hello all,

I have already posted this letter to [EMAIL PROTECTED], but since I received no reply,
I am resending it now to this list, hoping to obtain some help. 
I am sorry for those who read this twice.

I just compiled beta2 Mono packages, together with monodevelop.

Monodevelop crashes after the splash screen:

$ monodevelop 
Creating DefaultWorkbench

Unhandled Exception: System.NullReferenceException: Object reference not set to an 
instance of an object
in (unmanaged) (wrapper managed-to-native) Gtk.Application:gtk_main_iteration ()
in <0x4> (wrapper managed-to-native) Gtk.Application:gtk_main_iteration ()
in <0x7> Gtk.Application:RunIteration ()
in [0x001eb] (at 
/home/leikind/src/monodevelop-0.4/src/Main/Base/Commands/AutostartCommands.cs:201) 
MonoDevelop.Commands.StartWorkbenchCommand:Run ()
in [0x002ba] (at 
/home/leikind/src/monodevelop-0.4/src/Main/StartUp/MonoDevelopMain.cs:142) 
MonoDevelop.SharpDevelopMain:Main (string[])


I compiled gtk-sharp-0.93 with all optional assemblies, and gtk and gnome samples and 
the 
Monodoc browser all work well.

I run Debian Testing, gtk is  2.2.4,  libgnome2  - 2.4.0

What can be wrong?


-- 
Best regards,
Yuri Leikind

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Instantiating an object via AppDomain.CreateInstance

2004-06-17 Thread Yuri Leikind
ion.MonoMethod,object,object[],object[]&)
in <0x00172> System.Runtime.Remoting.RemotingServices:InternalExecuteMessage 
(System.MarshalByRefObject,System.Runtime.Remoting.Messaging.IMethodCallMessage)


Exception rethrown at [0]: 

in <0x00748> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke 
(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&)

===

Does anyone have a clue to this incompatibility?  

-- 
Best regards,
Yuri Leikind
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Remoting + interface parameter names = a bug ?

2004-06-18 Thread Yuri Leikind
Hello all,

Looks like I have found an astonishing thing:

If I have a server that exposes some type via remoting, and 
this type implements an interface with the help of which
the type is accessed in the remoting client, the parameter names
in interface methods declarations influence runtime. 

In other words, if the parameters names are not the same,
the call to the remote object will raise an exception.

Here is the code for you to believe me:

== IFactorial.cs   ==

namespace ProofOfConcepts{
public interface IFactorial{
//ulong CalculateFactorial(uint a);  // With this line everything  works
ulong CalculateFactorial(uint b);// With this line it doesn't
}
}


== Server.cs   ==
using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;

namespace ProofOfConcepts{

public class Calculator : MarshalByRefObject, IFactorial{
public ulong CalculateFactorial(uint a){
ulong res = 1;
for (uint i=1 ; i<=a; i++)
res = res * i;
Console.WriteLine("!{0} = {1}", a, res);
return res;
}
}

class Server{
public Server(){
HttpChannel channel = new HttpChannel(6);
ChannelServices.RegisterChannel(channel);
Type facType = Type.GetType("ProofOfConcepts.Calculator");
RemotingConfiguration.RegisterWellKnownServiceType(
facType,
"MyEndPoint",
WellKnownObjectMode.Singleton );
}

void Listen(){
Console.WriteLine("Press Enter to exit...");
Console.ReadLine( );
}

public static void Main(){
new Server().Listen();
}
}

}

== Client.cs   ==

using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;


namespace ProofOfConcepts{
class Client{
public static void Main(){
HttpChannel channel = new HttpChannel(0);
ChannelServices.RegisterChannel(channel);
MarshalByRefObject obj = 
(MarshalByRefObject) RemotingServices.Connect(
typeof(ProofOfConcepts.IFactorial),
"http://localhost:6/MyEndPoint";);
IFactorial cal = (IFactorial) obj;
Console.WriteLine("!4 = {0}", cal.CalculateFactorial(4));
}
}
}

==

To compile these, issue the following commands:

mcs   /t:library /out:IFactorial.dll IFactorial.cs

mcs  /r:IFactorial.dll,System.Runtime.Remoting.dll  /out:Server.exe Server.cs

mcs  /r:IFactorial.dll,System.Runtime.Remoting.dll  /out:Client.exe Client.cs


Now run the server, then start the client.

I get the following in the Client.exe console::

===

[EMAIL PROTECTED]:~/cs/appDomains/my_remoting$ mono Client.exe 

Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.

Server stack trace: 
in <0x005ea> 
System.Runtime.Remoting.Channels.SoapMessageFormatter:BuildMethodCallFromSoapMessage 
(System.Runtime.Serialization.Formatters.SoapMessage,string)
in <0x001f5> System.Runtime.Remoting.Channels.SoapServerFormatterSink:ProcessMessage 
(System.Runtime.Remoting.Channels.IServerChannelSinkStack,System.Runtime.Remoting.Messaging.IMessage,System.Runtime.Remoting.Channels.ITransportHeaders,System.IO.Stream,System.Runtime.Remoting.Messaging.IMessage&,System.Runtime.Remoting.Channels.ITransportHeaders&,System.IO.Stream&)


Exception rethrown at [0]: 

in <0x00748> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke 
(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&)

===

If you cache in the interface  line 
ulong CalculateFactorial(uint b);  
to
ulong CalculateFactorial(uint a);  
recompile all the three assemblies, and run again, everything will work just fine.

I run Mono 0.95

On MS .NET it works fine in all cases

Does anyone have any comments?

-- 
Best regards,
Yuri Leikind
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Remoting + interface parameter names = a bug ?

2004-06-18 Thread Yuri Leikind
On Fri, 18 Jun 2004 16:06:06 +0200
Lluis Sanchez <[EMAIL PROTECTED]> wrote:

>  This is a very complete bug report. If you can file it in
>  bugzilla.ximian.com it would be perfect.

I have done so (bug# 60427).



-- 
Best regards,
Yuri Leikind


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Resources and Mono

2004-06-18 Thread Yuri Leikind
Hello all,

Can anyone give a hint or a link how to use 
resources (System.Resources) in Mono?


-- 
Best regards,
Yuri Leikind


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Remoting betweem Mono and MS .NET

2004-06-21 Thread Yuri Leikind
Hello all,

Is remoting between Mono and MS .NET supposed to be possible?

I tried different variants, seems line currently you cannot remote
between these 2 platforms.


-- 
Best regards,
Yuri Leikind

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Remoting betweem Mono and MS .NET

2004-06-21 Thread Yuri Leikind
On Mon, 21 Jun 2004 16:35:39 +0200
"RoBiK" <[EMAIL PROTECTED]> wrote:

>  I use remoting between Mono and MS.NET, and it works fine for me. What
>  problems do you have?
>  
>  Robert


I run a remoting server on Linux, and try to use it from the Windows machine.
Here is my code:

common interface, build as a separate assembly
==
namespace ProofOfConcepts{
public interface ITest{
string SayHello();
}
}

== Client

using System;
using System.IO;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;

namespace ProofOfConcepts{
class Client{

ITest ar;

public Client(string host, int port, string endPoint){
HttpChannel channel = new HttpChannel(0);
ChannelServices.RegisterChannel(channel);
MarshalByRefObject obj = 
(MarshalByRefObject) RemotingServices.Connect(
typeof(ProofOfConcepts.ITest),
"http://"; +  host + ":" + port + "/" + endPoint);
ar = (ITest) obj;
}

public string SayHello(){
return ar.SayHello();
}

public static void Main(string[] args){
Client client = new Client(args[0],  6, "MyEndPoint");
Console.WriteLine(client.SayHello());
}
}
}
== Server
using System;
using System.IO;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;

namespace ProofOfConcepts{

public class AssemblyCache : MarshalByRefObject, ITest{
public string SayHello(){
return "hello";
}
}

class RemotingServer{

public RemotingServer(object obj){
HttpChannel channel = new HttpChannel(6);
ChannelServices.RegisterChannel(channel);
MarshalByRefObject mobj = (MarshalByRefObject) obj;
RemotingServices.Marshal(mobj, "MyEndPoint"); 
}

void Listen(){
Console.WriteLine("Press Enter to exit...");
Console.ReadLine( );
}

public static void Main(){
AssemblyCache ar = new AssemblyCache();
RemotingServer rServer = new RemotingServer(ar);
rServer.Listen();
}
}
}
==

Here is what I get running the client:


Unhandled Exception: System.Net.WebException: The underlying connectio
n was closed: The request was canceled.

Server stack trace:
   at System.Net.HttpWebRequest.CheckFinalStatus()
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult async
Result)
   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.Pr
ocessAndSend(IMessage msg, ITransportHeaders headers, Stream inputStre
am)
   at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.Pr
ocessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream re
questStream, ITransportHeaders& responseHeaders, Stream& responseStrea
m)
   at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncPro
cessMessage(IMessage msg)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IM
essage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageD
ata& msgData, Int32 type)
   at ProofOfConcepts.ITest.SayHello()
   at ProofOfConcepts.Client.Main(String[] args)
===

My Mono version is 0.95,  MS .NET version 1.1.4322


-- 
Best regards,
Yuri Leikind


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] make install building mcs package

2004-07-02 Thread Yuri Leikind
Hello all,

I build all Mono packages with --prefix=/opt. Strange thing, after I have
successfully built the mcs package, and try to install it, I get the message 
that mcs is needed to perform installation, as though it is missing (it is not):

[EMAIL PROTECTED]:~/src/mcs-1.0$ sudo make install
*** You need a C# compiler installed to build MCS. (make sure mcs works from the 
command line)
*** Read INSTALL.txt for information on how to bootstrap
*** a Mono installation.
make: *** [platform-check] Error 1
[EMAIL PROTECTED]:~/src/mcs-1.0$ which mcs
/opt/bin/mcs


Only if I create a symlink :  ln -s /opt/bin/mcs  /usr/bin/mcs, make install works.
The same is with the mono program, I have to symlink it.

I guess it shouldn't be so, shoud it?

-- 
Best regards,
Yuri Leikind


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] make install building mcs package

2004-07-02 Thread Yuri Leikind
On Fri, 2 Jul 2004 08:25:53 -0500
Ian Joyce <[EMAIL PROTECTED]> wrote:

>  You need to have mcs or mono in your shells path.  Type 'env' at your
>  prompt to see what directories are in your path.  You'll see /usr/bin
>  is in that list.  So you'll either need to continue to do the
>  symlinking or add /opt/bin to your shells path.


Didn't you notice the which command I issued: 

>  > [EMAIL PROTECTED]:~/src/mcs-1.0$ which mcs
>  > /opt/bin/mcs

Haven't  you noticed I HAVE ALREADY BUILT the package, and
I would not have been able to do it without mcs in my path.

>  
>  --Ian
>  
>  On Fri, 2 Jul 2004 16:08:36 +0300, Yuri Leikind
>  <[EMAIL PROTECTED]> wrote:
>  > 
>  > Hello all,
>  > 
>  > I build all Mono packages with --prefix=/opt. Strange thing, after I have
>  > successfully built the mcs package, and try to install it, I get the message
>  > that mcs is needed to perform installation, as though it is missing (it is 
> not):
>  > 
>  > [EMAIL PROTECTED]:~/src/mcs-1.0$ sudo make install
>  > *** You need a C# compiler installed to build MCS. (make sure mcs works from 
> the command line)
>  > *** Read INSTALL.txt for information on how to bootstrap
>  > *** a Mono installation.
>  > make: *** [platform-check] Error 1
>  > [EMAIL PROTECTED]:~/src/mcs-1.0$ which mcs
>  > /opt/bin/mcs
>  > 
>  > Only if I create a symlink :  ln -s /opt/bin/mcs  /usr/bin/mcs, make install 
> works.
>  > The same is with the mono program, I have to symlink it.
>  > 
>  > I guess it shouldn't be so, shoud it?
>  > 
>  > --
>  > Best regards,
>  > Yuri Leikind
>  > 
>  > ___
>  > Mono-list maillist  -  [EMAIL PROTECTED]
>  > http://lists.ximian.com/mailman/listinfo/mono-list
>  >
>  ___
>  Mono-list maillist  -  [EMAIL PROTECTED]
>  http://lists.ximian.com/mailman/listinfo/mono-list


-- 
Best regards,
Yuri Leikind

Лицензия GNU GPL есть необходимый инструмент для защиты 
схемы производства свободного ПО на ранних этапах 
конкуренции с консервативными рыночными отношениями, 
построенными по шаблонам материального производства.

Sanitar, 31 мая 2004 года, 23:49

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] make install building mcs package

2004-07-02 Thread Yuri Leikind
On Fri, 02 Jul 2004 07:24:28 -0600
"Raja R Harinath" <[EMAIL PROTECTED]> wrote:

>  I don't see anything wrong with this behaviour :-)  Perfectly expected.
>  Please check the PATH of root.

Please read my letter a  bit more attentively, esp. pay attention to the which command.
I do have /opt/bin in my path. 

-- 
Best regards,
Yuri Leikind

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] make install building mcs package

2004-07-02 Thread Yuri Leikind
On Fri, 2 Jul 2004 16:08:36 +0300
Yuri Leikind <[EMAIL PROTECTED]> wrote:

>  Hello all,
>  
>  I build all Mono packages with --prefix=/opt. Strange thing, after I have
>  successfully built the mcs package, and try to install it, I get the message 
>  that mcs is needed to perform installation, as though it is missing (it is not):
>  
>  [EMAIL PROTECTED]:~/src/mcs-1.0$ sudo make install
>  *** You need a C# compiler installed to build MCS. (make sure mcs works from 
> the command line)
>  *** Read INSTALL.txt for information on how to bootstrap
>  *** a Mono installation.
>  make: *** [platform-check] Error 1


Read this:

>  [EMAIL PROTECTED]:~/src/mcs-1.0$ which mcs
>  /opt/bin/mcs

The point is, I have /opt/bin/  in my path and I must be able to use it without any 
symlinking, see?

It only happens while installing. Building is Ok.
-- 
Best regards,
Yuri Leikind


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] make install building mcs package

2004-07-02 Thread Yuri Leikind
On Fri, 2 Jul 2004 09:01:50 -0500
Ian Joyce <[EMAIL PROTECTED]> wrote:

>  When you sudo to root does root inherit YOUR path?

That does make a point. 
As user, I do have /opt/bin in PATH, as root - I don't

Sorry everyone, the bug turned out to be in my head ;-|

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list