Re: [Mono-list] Mono from CVS, segmentation fault

2003-08-18 Thread Sam Clegg
On Fri, Aug 15, 2003 at 04:37:40AM +0200, Øyvind Hvamstad wrote:
> Hi, happy to hear about the 0.26 release.
> 
> Since no packages are released from debian and I really would like the
> ThreadPool fixes, I tried to make a checkout from cvs. I'm unable to
> make it build though.
> 
> I ran the mono-build.sh script and it completes successfully. Then I try
> 'make fullbuild', but it turns out with a segmentation fault:
> 
> make[1]: Entering directory `/usr/local/src/mcs/mcs'
> mcs-g /target:exe /out:mcs.exe AssemblyInfo.cs anonymous.cs
> assign.cs attribute.cs driver.cs cs-tokenizer.cs cfold.cs class.cs
> codegen.cs const.cs constant.cs convert.cs decl.cs delegate.cs enum.cs
> ecore.cs expression.cs flowanalysis.cs genericparser.cs interface.cs
> iterators.cs literal.cs location.cs modifiers.cs namespace.cs
> parameter.cs pending.cs report.cs rootcontext.cs statement.cs support.cs
> typemanager.cs symbolwriter.cs tree.cs cs-parser.cs
> /usr/local/src/install/bin/mcs: line 2:  6800 Segmentation fault 
> /usr/local/src//install/bin/mono /usr/local/src//install/bin/mcs.exe
> "$@"

I had the same problem once.  Have you tried running the above
command with the un-installed mono
(/usr/local/src/mono/mono/mini/mono).  This worked for me IIRC.

It has something to do with differnce between the libmono.so that
libtool creates during "make" and the one it installs during
"make install".  I never found time to track this down though.
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $


pgp0.pgp
Description: PGP signature


Re: [Mono-list] Remoting

2003-08-04 Thread Sam Clegg
On Mon, Aug 04, 2003 at 04:00:01PM +0200, Wilhelm Patrick wrote:
>   switch (appMode) 
>   {
> default:
> case AppMode.Server:
>   // Register a new channel with the runtime remoting services
>   ChannelServices.RegisterChannel(new TcpChannel(13100));
> 
>   // Register a type as a well-known type
>   RemotingConfiguration.RegisterWellKnownServiceType(
>   typeof(RemoteCtrl),
>   "remotectrl",
>   WellKnownObjectMode.Singleton
>   );
>   //...
> 
>   break;
> case AppMode.Client:
>   RemotingConfiguration.RegisterWellKnownServiceType(
> typeof(RemoteCtrl),
> "remotectrl",
> WellKnownObjectMode.Singleton
>   );
> 
>   RemoteCtrl remoteCtrl = 
>   (RemoteCtrl)RemotingServices.Connect(
>   typeof(RemoteCtrl),
>   "tcp://localhost:13100/remotectrl"
>   );
>   remoteCtrl.GetPatternGeneratorCtrl(out patGenCtrl);
>   //...
> 
>   break;
>   }

You need to RegisterChannel on the client side as well, like the 
error says.  You can do this withou specifing a port:

ChannelServices.RegisterChannel(new TcpChannel());

You also probably don't want to RegisterWellKnownServiceType on
the client side.

Strange if works under windows though.
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $


pgp0.pgp
Description: PGP signature


Re: [Mono-list] Unboxing values from embedded mono

2003-08-04 Thread Sam Clegg
On Mon, Aug 04, 2003 at 12:45:50PM +0200, Paolo Molaro wrote:
> We added it a while back: use mono_object_unbox() to get a pointer
> to the data:
> 
>   gint32 *int32p = mono_object_unbox (obj);
>   gint32 value = *int32p;

Should this maybe be a macro?  Its a one line function right now
and I guess it gets called a lot.
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $


pgp0.pgp
Description: PGP signature


[Mono-list] some links fixed on website

2003-07-14 Thread Sam Clegg
Some of the links were out of date.  Attached patch for the ones
I found.
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $
Index: resources
===
RCS file: /mono/mono/doc/resources,v
retrieving revision 1.39
diff -u -r1.39 resources
--- resources   19 Apr 2003 21:24:51 -  1.39
+++ resources   14 Jul 2003 13:53:53 -
@@ -12,7 +12,7 @@
The http://msdn.microsoft.com/net";>Microsoft.NET site.
 
The Microsoft .NET Framework 1.0 can be downloaded http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true";>here
+   
href="http://msdn.microsoft.com/library/default.asp?url=/downloads/list/netdevframework.asp";>here
 
New methods that are not documented in 1.0, are documented http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/framewrkaddend.asp";>here
@@ -87,8 +87,8 @@
You can get the documentation for the ECMA specs from:
 

-   * http://www.ecma.ch/ecma1/STAND/ecma-334.htm";>C# Language 
Specification
-   * http://www.ecma.ch/ecma1/STAND/ecma-335.htm";>Common 
Language Infrastructure
+   * http://www.ecma-international.org/publications/standards/ECMA-334.HTM";>C# 
Language Specification
+   * http://www.ecma-international.org/publications/standards/ECMA-335.HTM";>Common 
Language Infrastructure

 
 


pgp0.pgp
Description: PGP signature


[Mono-list] array casts in mint

2003-07-11 Thread Sam Clegg
The attached code works in mono but fails in mint.  Seems that
mint can't cast from Object[] to Array.

Is this a bug?  Is there much interest in fixing bugs in the
interpreter now that mini is working?

I am interested in the interpreter because I am working on some
optimisations that are better suited (at the moment anyway) to it.
They involve runtime aggregation of remoting calls.  In the end,
what I plan to do is, from with the JIT, select certain methods
and run them through my optimising interpreter.  It looks like
switching from JIT to interp at runtime is possible since they 
share most data structures.  Has anyone else tried to do thie
before?
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $
using System;
using System.Collections;

public class CastTest
{
public static int Main (string[] args)
{
object[] my_array = new object[2];
Array array = (Array) my_array.Clone();
Console.WriteLine ("Got Clone");
return 0;
}
}


pgp0.pgp
Description: PGP signature


[Mono-list] typo in mono/tests/Makefile.am

2003-07-07 Thread Sam Clegg

-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $
Index: Makefile.am
===
RCS file: /mono/mono/mono/tests/Makefile.am,v
retrieving revision 1.140
diff -u -r1.140 Makefile.am
--- Makefile.am 4 Jul 2003 09:59:52 -   1.140
+++ Makefile.am 7 Jul 2003 11:25:24 -
@@ -226,7 +226,7 @@
  
 testb: $(TEST_PROG) $(TESTBS)
for i in $(TESTBS); do  \
-   ./test-driver $(TEST_PROG) $$ii $(RUNTIME_ARGS);\
+   ./test-driver $(TEST_PROG) $$i $(RUNTIME_ARGS); \
done
  
 testjit: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS)


pgp0.pgp
Description: PGP signature


[Mono-list] interpreter exceptions

2003-07-06 Thread Sam Clegg
mint.exe doesn't seem to report unhandled exceptions.  The attached
patch seemed to work for me, although i imagine there is probably some
reason for the current behaviour.

sam
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $
Index: interp.c
===
RCS file: /mono/mono/mono/interpreter/interp.c,v
retrieving revision 1.238
diff -u -r1.238 interp.c
--- interp.c27 Jun 2003 07:52:01 -  1.238
+++ interp.c6 Jul 2003 16:36:20 -
@@ -4353,6 +4353,8 @@
g_error ("No entry point method found in %s", image->name);
 
rval = mono_runtime_run_main (method, argc, argv, &exc);
+   if (exc)
+   mono_unhandled_exception (exc);
 
return rval;
 }


pgp0.pgp
Description: PGP signature


Re: [Mono-list] kernel support

2003-06-20 Thread Sam Clegg
On Tue, Jun 17, 2003 at 04:40:38PM -0700, George Farris wrote:
> This of course doesn't work since it registers both mono and wine
> binaries.
> 
> What we really need is native support under Linux so that the "file"
> command returns something like so:
> 
> MONO 32-bit LSB executable, Intel 80386, version 1 (SYSV) for Linux

If nono compiles to native code (Intel 80386), wouldn't it make sense
to simply use ELF files.  For IL assemblies 'file' probably shouldn't 
mention mono, intel or linux.

> There will be times when one just wants the app to run under Linux
> because it is designed for it.

Isn't the whole point of .NET to eliminate platform dependacies.
As long as the correct asseblies are present applications should
run anywhere, right?

sam
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $


pgp0.pgp
Description: PGP signature


Re: [Mono-list] kernel support

2003-06-17 Thread Sam Clegg
On Mon, Jun 16, 2003 at 09:08:56PM -0700, George Farris wrote:
> Does anyone know what the plans are for kernel support of mono
> binaries?  Right now a binary mono file shows as:

The debian package installs support for direct running 
of PE files using mono through the kernel CONFIG_BINFMT_MISC
system.  I suspect other distros have their own ways of
installing such handlers.

> MS Windows PE 32-bit Intel 80386 console executable

This is what 'file' says, I guess the 80386 part is slightly 
misleading.

sam
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.12 2003/04/14 10:50:50 sam Exp $


pgp0.pgp
Description: PGP signature


Re: [Mono-list] monodocs problem

2003-06-12 Thread Sam Clegg
On Thu, Jun 12, 2003 at 12:15:36PM -0600, Ron Bellomo wrote:
> But, I have had some problems opening the monodocs viewer. I get an
> error message that the viewer could not open libgtkhtml-3.0.so and I
> cannot find a place to go grab that file. Can someone point me in the
> right direction?

In debian/unstable the package is libgtkhtml3.0-2.  On redhat you
might be able to find it through rpmfind.net.  Otherwise you can
compile it yourself from the gtkhtml cvs module on cvs.gnome.org
IIRC.
-- 
sam clegg
:: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 
$superduper: .signature,v 1.12 2003/04/14 10:50:50 sam Exp $


pgp0.pgp
Description: PGP signature


Re: [Mono-list] Web service

2003-02-18 Thread Sam Clegg
On Tue, Feb 18, 2003 at 01:56:49PM -0600, [EMAIL PROTECTED] wrote:
> Hi chris,
> 
> Web Services need some work before you will be able to "bind" them in Mono.

Is there anyone working on this?  I'd like to help make this
stuff possible.  IIRC I read somewhere that the SOAP still needs
a lot of work.
-- 
sam clegg
:: [EMAIL PROTECTED] 
:: http://superduper.net/ 
:: PGP : D91EE369 :: YIM : samuelbclegg :: freenode : samo
:: ICQ : 14962308 :: AIM : samuelbclegg :: MSN : sambclegg
$superduper: .signature,v 1.9 2002/10/23 11:20:39 sam Exp $



msg00789/pgp0.pgp
Description: PGP signature