Re: [Mono-list] .NET ORB using Java

2004-05-12 Thread Mark Gimelfarb
Yet another solution:
Get JLCA from here:
http://msdn.microsoft.com/vstudio/downloads/tools/jlca/
convert the code to C# and compile it under Mono. 
This is the way I've gotten os-ohio (os-ohio.sourceforge.net) converted to C#.
I'm not going to tell you that you won't have to do some manual labor, but it's 
very small relative to having to rewrite it from scratch. 

Also, ikvm can run a lot of java programs w/o recompiling or converting them to 
CLR-compliant language, as Jonathan indicates. For instance, I'm running James 
under IKVM for some time now. Not that I don't have a JRE on my box, it's just 
so cool :)

Regards,
 Mark.



Quoting Jonathan Pryor <[EMAIL PROTECTED]>:

> On Wed, 2004-05-12 at 03:37, Vibhu Sharma wrote:
> > Hi
> > 
> > Here is what we are thinking of doing...
> > 
> > 0. Take a Java implementation of some ORB - say OpenORB.
> > 1. Take the sources [.java files] and compile them in J# to get a .NET
> > implementation.
> 
> Alternate solution: Compile the .java files with a *real* Java compiler,
> and use the Java .class files from .NET.
> 
> You can do this by using IKVM.NET; see: http://www.ikvm.net.  They
> provide a Java VM for .NET.
> 
> > 1.1 this would be JDK 1.1.4 compatible - so somethings may not
> > work.
> 
> Exactly, which is one reason to prefer IKVM.
> 
> > 1.2 Does Microsoft have any plans to upgrade J# to support
> > Java 2? [especially JDK 1.4 and above]?
> 
> Mono can't speak for Microsoft, but I would imagine that the answer is
> NO.  (Not just "no", but NO.)  Why?  Microsoft doesn't have a license to
> Java 2, only to Java 1.1.x.  I can't see this changing any time soon.
> 
> > 1.2.1 We don't really care for swing etc at this stage
> > - i.e no UI related stuff is needed
> > 1.2.2 We also don't care about RMI, JNI etc. for this
> > particular task
> > 1.3 Has there been some work done on above? 
> 
> IKVM.NET?
> 
> > Once the ORB is built, this would essentaily be a .NET
> > assembly [.dll] targetting the CLR rather than being a .jar targeting
> > a JVM
> > 
> > 2. We can then do IDL2Java to get the .java files.
> > 3. Recompile these stubs using J# to create yet another .NET assembly
> > - in case this piece requires changes, would be painful
> > because you wont want to edit and recompile the stubs everytime
> > 
> > 4. We can then use any .NET compliant language like C# to write the
> > clients in.
> > 
> > 5. On Mac OSX, we would be doing Cocoa development, so UI in Objective
> > C and non-UI in Java [using OpenORB], and since both support Cocoa,
> > life would/should be simpler.
> > 
> > - this means no mono or CORBA remoting needed.
> 
> Huh?  Doesn't an ORB imply CORBA remoting?  Or did I miss something?
> 
> > - may not be a popular thought for this forum, but please let
> > me know if this has been tried and if there are some pitfalls related
> > to this.
> 
> Well, there's always Remoting.Corba...
> 
> Personally, I'd go for SOAP.  Everything supports that, including
> AppleScript (IIRC), and it's fairly easy (trivial?) to write an ASP.NET
> web service that talks SOAP.  Of course, I'm not privy to all you're
> trying to do, so...
> 
> You might also try IKVM.NET.  It uses GNU Classpath to provide its Java
> class library, so not all required functionality may be available.
> 
>  - Jon
> 
> 
> ___
> 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


Re: [Mono-list] Newbie: Where to start

2004-05-12 Thread Erik Dasque
Corey,

the monkey guide is what you need. Right now it's been taken offline 
for maintenance.  What OS do you use ?

If you use Windows, you can follow 
http://www.codeproject.com/csharp/hellomono.asp . I am not sure the 
installation part is up to date as we fixed a lot of ENV variable type 
issues recently. If you use Linux, what distro do you use ?

Erik

On May 12, 2004, at 11:08 AM, Leonard Tulipan wrote:

Hi there!

I've been following what you're doing for a little while now.
My background:
I know C and C++ but do most my stuff with php, bash and perl (all 
scripting) at the moment.
I also found a lot of info on the go-mono website.
But tutorials are not really available.

My aim is to make a cross-platform app that supports Desktop-Systems 
and PockePC PDA.
So, where do I start with this. A nice little Mono HelloWorld app 
would be nice.
I just don't see which components I need. OK, there is a GPL IDE  ( 
http://www.icsharpcode.net/opensource/sd/ ) and mono has a lot of 
binaries to offer.
But then, what do I need to get the apps running? I want the demo to 
work on Linux and my PDA

Sorry if I seem a bit ignorant but because there is so much 
documentation on on go-mono "I donot see the wood for the trees", if 
you know what I mean. A 1-2-3 starter kit would be great.

Cheers
Leonard
___
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


[Mono-list] Mono for Windows

2004-05-12 Thread Roberto J. Dohnert
I read somewhere that Evolution 2.0 will be available for the Windows 
OS.  My question is that if this is true and not a rumor to get hopes up 
will it be developed using Mono and will the average user need Mono to 
be installed to use it.  Also is there any plans to port MonoDevelop to 
Windows?  If there are not thats something I would be interested in 
working on seeing on the Windows platform.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] .NET ORB using Java

2004-05-12 Thread Jonathan Pryor
On Wed, 2004-05-12 at 03:37, Vibhu Sharma wrote:
> Hi
> 
> Here is what we are thinking of doing...
> 
> 0. Take a Java implementation of some ORB - say OpenORB.
> 1. Take the sources [.java files] and compile them in J# to get a .NET
> implementation.

Alternate solution: Compile the .java files with a *real* Java compiler,
and use the Java .class files from .NET.

You can do this by using IKVM.NET; see: http://www.ikvm.net.  They
provide a Java VM for .NET.

> 1.1 this would be JDK 1.1.4 compatible - so somethings may not
> work.

Exactly, which is one reason to prefer IKVM.

> 1.2 Does Microsoft have any plans to upgrade J# to support
> Java 2? [especially JDK 1.4 and above]?

Mono can't speak for Microsoft, but I would imagine that the answer is
NO.  (Not just "no", but NO.)  Why?  Microsoft doesn't have a license to
Java 2, only to Java 1.1.x.  I can't see this changing any time soon.

> 1.2.1 We don't really care for swing etc at this stage
> - i.e no UI related stuff is needed
> 1.2.2 We also don't care about RMI, JNI etc. for this
> particular task
> 1.3 Has there been some work done on above? 

IKVM.NET?

> Once the ORB is built, this would essentaily be a .NET
> assembly [.dll] targetting the CLR rather than being a .jar targeting
> a JVM
> 
> 2. We can then do IDL2Java to get the .java files.
> 3. Recompile these stubs using J# to create yet another .NET assembly
> - in case this piece requires changes, would be painful
> because you wont want to edit and recompile the stubs everytime
> 
> 4. We can then use any .NET compliant language like C# to write the
> clients in.
> 
> 5. On Mac OSX, we would be doing Cocoa development, so UI in Objective
> C and non-UI in Java [using OpenORB], and since both support Cocoa,
> life would/should be simpler.
> 
> - this means no mono or CORBA remoting needed.

Huh?  Doesn't an ORB imply CORBA remoting?  Or did I miss something?

> - may not be a popular thought for this forum, but please let
> me know if this has been tried and if there are some pitfalls related
> to this.

Well, there's always Remoting.Corba...

Personally, I'd go for SOAP.  Everything supports that, including
AppleScript (IIRC), and it's fairly easy (trivial?) to write an ASP.NET
web service that talks SOAP.  Of course, I'm not privy to all you're
trying to do, so...

You might also try IKVM.NET.  It uses GNU Classpath to provide its Java
class library, so not all required functionality may be available.

 - Jon


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


[Mono-list] RE: serving off solaris

2004-05-12 Thread Michael
Well, it would appear that mono and solaris are not good friends. I have
tried to use the (may 12) cvs of mono, xsp, and mod_mono. However mono
would not get past autogen.sh...

../autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

Running libtoolize...
You should update your `aclocal.m4' by running aclocal.
Running aclocal  ...
Running autoheader...
WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING: [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
autoheader: `config.h.in' is unchanged
Running automake --gnu  ...
runtime/Makefile.am:36: `monotwo_DATA' is used but `monotwodir' is undefined.
runtime/Makefile.am:33: `monoone_DATA' is used but `monoonedir' is undefined.
runtime/Makefile.am:29: `monobins_DATA' is used but `monobinsdir' is
undefined.
**Error**: automake failed.




So I am currenly running cvs of mod_mono and xsp with beta1 of mono.
But neither apache nor xsp appear to like serving...

APACHE ERROR

/usr/local/apache2/bin/apachectl start
Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libmod_mono.so into server:
ld.so.1: /usr/local/apache2/bin/httpd: fatal: relocation error: file
/usr/local/apache2/modules/libmod_mono.so: symbol setenv: referenced
symbol not found


XSP ERROR

mono /usr/local/bin/xsp.exe --root . --applications /mono:.
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: /usr/local/apache2/htdocs/test
Hit Return to stop the server.
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Runtime.Remoting.Lifetime.LifetimeServices

Server stack trace:
in (unmanaged)
System.Runtime.Remoting.Lifetime.LifetimeServices:get_LeaseTime ()
in <0x00028> System.Runtime.Remoting.Lifetime.Lease:.ctor ()
in <0x00084> (wrapper remoting-invoke-with-check)
System.Runtime.Remoting.Lifetime.Lease:.ctor ()
in <0x00024> System.MarshalByRefObject:InitializeLifetimeService ()
in <0x8>
System.Runtime.Remoting.ObjectHandle:InitializeLifetimeService ()
in <0x00098>
System.Runtime.Remoting.RemotingServices:CreateClientActivatedServerIdentity
(System.MarshalByRefObject,System.Type,string)
in <0x003fc> System.Runtime.Remoting.RemotingServices:Marshal
(System.MarshalByRefObject,string,System.Type)
in <0x00010> System.Runtime.Remoting.RemotingServices:Marshal
(System.MarshalByRefObject)
in <0x001bc>
System.Runtime.Remoting.Messaging.CADMessageBase:MarshalArgument
(object,System.Collections.ArrayList&)
in <0x000c8>
System.Runtime.Remoting.Messaging.CADMethodReturnMessage:.ctor
(System.Runtime.Remoting.Messaging.IMethodReturnMessage)
in <0x0014c>
System.Runtime.Remoting.Messaging.CADMethodReturnMessage:Create
(System.Runtime.Remoting.Messaging.IMessage)
in <0x000c8> System.AppDomain:ProcessMessageInDomain
(byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage,byte[]&,System.Runtime.Remoting.Messaging.CADMethodReturnMessage&)
in <0x000dc> (wrapper remoting-invoke-with-check)
System.AppDomain:ProcessMessageInDomain
(byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage,byte[]&,System.Runtime.Remoting.Messaging.CADMethodReturnMessage&)
in <0x00050>
System.Runtime.Remoting.Channels.CrossAppDomainSink:ProcessMessageInDomain
(byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage)


Exception rethrown at [0]:
 ---> System.OverflowException: Resulting timespan is too big.
in <0x00298> System.TimeSpan:FromMilliseconds (double)
in <0x0005c> System.TimeSpan:FromSeconds (double)
in <0x0005c> System.Runtime.Remoting.Lifetime.LifetimeServices:.cctor ()
--- End of inner exception stack trace ---

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


So it would be greatly appreciated if anyone could shead any light on (I'm
sure) my silly user errors. Thanks everyone!


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


Re: [Mono-list] NAnt config file framework problem with mono 0.91.99

2004-05-12 Thread Gert Driesen
- Original Message - 
From: "GUnit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 12, 2004 7:25 PM
Subject: [Mono-list] NAnt config file framework problem with mono 0.91.99


> The latest CVS version fixed the problem with the NAnt config file
> encoding. Thx.
>
> I am now getting the following error when trying to build with NAnt:
>
> "The current runtime framework 'mono-1.0' is not correctly configured in
> the NAnt configuration file."
>
> This configuration file worked under mono 0.31 and I have not modified
> my NAnt version.  I tried updating
> NAnt and the nant build failed with a similar error. The NAnt config
> file and error message follow.

Recently, some changes to the packaging /directory structure of Mono were
made that will no longer allow the old configuration section to work.

NAnt cvs will now determine the location of mono using pkg-config (will this
only work when dev packages are installed ?), so you should no longer have
to manually modify the NAnt configuration file.

However, we (well, at least I am) will wait until the packaging / directory
structure of Mono has finalized before making more changes to NAnt, so you
might still have problems for now ...  We might even be facing more probems
soon, but I guess Ian (also a member of the NAnt team) is going to be
tackling those ...

If you rebuild NAnt from cvs, you should at least get a more meaningful
error message, and the mono prefix should be pixed up automatically :

$ export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvsroot/nant
$ cvs -z3 co nant
$ cd nant
$ make

Gert

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


[Mono-list] NAnt config file framework problem with mono 0.91.99

2004-05-12 Thread GUnit
The latest CVS version fixed the problem with the NAnt config file 
encoding. Thx.

I am now getting the following error when trying to build with NAnt:

"The current runtime framework 'mono-1.0' is not correctly configured in 
the NAnt configuration file."

This configuration file worked under mono 0.31 and I have not modified 
my NAnt version.  I tried updating
NAnt and the nant build failed with a similar error. The NAnt config 
file and error message follow.

Thanks.

NAnt configuration:
--


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   name="mono-1.0"
   family="mono"
   version="1.0"
   description="GNOME projects port of the .NET Framework"
   runtimeengine="mono"
   sdkdirectory="/usr/bin"
   frameworkdirectory="/usr/bin"
   frameworkassemblydirectory="/usr/lib"
   clrversion="${clrversion}"
   >
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   al
   true
   
   
   mcs
   true
   
   
   mbas
   true
   
   
   monoresgen
   true
   
   
   monosn
   true
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


  
NAnt error:

nant /f:DC_IAPI.build
Compat mode: the request from 
/home/user1/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/log4net.dll 
to load System.Data was remapped (http://www.go-mono.com/remap.html)
Compat mode: the request from 
/home/user1/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/log4net.dll 
to load System.Web was remapped (http://www.go-mono.com/remap.html)
[Console.ConsoleStub:Shadowing files(False) -- cleanup=False  - [] <>]
[Console.ConsoleStub:Creating HelperArgs(System.String[])  - [] <>]
[Console.ConsoleStub:NAnt.Core Loaded: NAnt.Core, Version=0.85.1549.0, 
Culture=neutral, PublicKeyToken=null  - [] <>]
NAnt 0.85 (Build 0.85.1549.0; mono-1.0.unix; nightly; 3/29/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

[Core.Project:Error creating URI in project constructor. Moving on...   
- [] <>]
Exception: System.UriFormatException
Message: The format of the URI could not be determined.
Source: System
in <0x00120> System.Uri:Parse (string)
in <0x00056> (wrapper remoting-invoke-with-check) System.Uri:Parse (string)
in <0x00089> System.Uri:.ctor (string,bool)
in <0x00012> System.Uri:.ctor (string)
in <0x00056> (wrapper remoting-invoke-with-check) System.Uri:.ctor (string)
in <0x0019e> NAnt.Core.Project:.ctor (string,NAnt.Core.Level,int)

[Core.TypeFactory:Creating TaskBuilder for 'AttribTask'  - [] <>]
[Core.TypeFactory:Adding 'attrib' from 
/home/user1/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/NAnt.Core.dll:NAnt.Core.Tasks.AttribTask  
- [] <>]
...
BUILD FAILED

The current runtime framework 'mono-1.0' is not correctly configured in 
the NAnt configuration file.

[Core.ConsoleDriver:NAnt Build Failure  - [] <>]
Exception: NAnt.Core.BuildException
Message: The current runtime framework 'mono-1.0' is not correctly 
configured in the NAnt configuration file.
Source: NAnt.Core
in <0x0076d> NAnt.Core.ProjectSettingsLoader:ProcessFrameworks 
(System.Xml.XmlNode)
in <0x00104> NAnt.Core.ProjectSettingsLoader:ProcessSettings ()
in <0x005cb> NAnt.Core.Project:CtorHelper 
(System.Xml.XmlDocument,NAnt.Core.Level,int)
in <0x0025f> NAnt.Core.Project:.ctor (string,NAnt.Core.Level,int)
in <0x0034a> NAnt.Core.ConsoleDriver:Main (string[])

Consult the log4net output for more information.

Try 'nant -help' for more information
[Console.ConsoleStub:'Int32 Main(System.

Re: [Mono-list] Firebird Connection

2004-05-12 Thread Carlos Guzmán Álvarez
Hello:

I use Firebird NET Provider 1.6 Beta3 (Sources compiled with Mono 0.91)
and a connection string like this one:
 string connectionString =  
 "Database=/opt/firebird/examples/employee.fdb;" + 
	  "User=SYSDBA;" +
	  "Password=Password;" +
	  "Dialect=3;" +
	  "Server=localhost";

I have done a little test (open and close a connection) using the 1.6
sources from CVS and works fine (against Firebird 1.5 SS).
Are you sure that the Firebird server is up and running ?? and that
connections to the port 3050 are not being blocked ??


--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] SQLDataReader error

2004-05-12 Thread Jonathan Stowe
On Wed, 2004-05-12 at 18:27, Ellis, Edward wrote:
> I get the following error:
> 
> ** (GetAnalysisTime_C.exe:31073): WARNING **: Missing method get_HasRows
> in assembly /home/d3j409/GetAnalysisTime_C.exe typeref index 26
>  
> ** ERROR **: file mini.c: line 3191 (mono_method_to_ir): assertion
> failed: (cmethod)
> aborting...
> Aborted
> 
> I believe it is caused by the following statement:
> 
> if (!(Reader.HasRows)) return ""; //Specified job wasn't
> found
> 
> Is this a bug in mini, SQLDataReader, or "a loose nut behind the wheel"?
> 

In SqlResultSet.cs:

  public bool HasRows {
 get { throw new NotImplementedException (); }
  }


However this is not in SqlDataReader where it should be:

ServiceHierarchy.cs(73) error CS0117:
`System.Data.SqlClient.SqlDataReader' does not contain a definition for
`HasRows'
Compilation failed: 1 error(s), 0 warnings
make: *** [ServiceHierarchy.exe] Error 1

I take it you are running an assembly compiled with the MS SDK?

I would file a bug.

/J\
> J. Edward Ellis 
> Battelle, Pacific Northwest National Laboratory
> (509) 375-3627 office
> (509) 521-6361 cell
> (509) 372-4725 FAX
> mailto:[EMAIL PROTECTED] 
> 
> ___
> 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


Re: [Mono-list] Bus error xsp-0.13 [was: Problems with xsp-0.12 tarball?]

2004-05-12 Thread mono
Well, I'm glad I'm not the only one then. I thought I did everything 
properly. I'm going to play around with the build of mono-0.91 tonight
if I get the chance. I'm really eager to write some cross platform 
asp.net classes. I worked for a MS based hosting company and asp.net is
our primary selling point, and I want to encourage cross platform 
development.

Scott Muc

On Wed, 12 May 2004 10:20:09 +0100
 Jonathan Stowe <[EMAIL PROTECTED]> wrote:
On Wed, 2004-05-12 at 04:59, Scott Muc wrote:
Thanks for the quick reply Cory!

I've tried downloading it several times. I take it they don't have any
md5sums located on their site? 

I'll try to stick with xsp-0.13 then. I just need to figure out why it
does the following:
spark# mono /usr/local/bin/xsp.exe --version
xsp.exe 0.13.0.0
(c) 2002,2003 Ximian, Inc.
(c) 2003 Novell, Inc.
Minimalistic web server for testing System.Web
spark# mono /usr/local/bin/xsp.exe
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: /usr/local/share/doc/xsp/test
Hit Return to stop the server.
Bus error (core dumped)
I am also seeing this on FreeBSD 4.9-RELEASE with the mono from the
ports collection (0.31) I can't confirm that it still does it with Beta
1 as there is no port at the moment and it fails on the install when
building from the tarball.
All I did was make a request to the machines IP from my desktop. I'm not
familiar with the analysis of debugging .core files, so if someone can
point me in the right direction I'll greatly appreciate it.
Thanks
Scott Muc
On Tue, 2004-05-11 at 20:42, Cory Nelson wrote:
> IIRC, 0.13 is 0.12 with a minor bug fix to web services.  Moving back
> probably won't help.  Compiles fine for me though- perhaps it got
> corrupted when you downloaded it?
> 
> On Tue, 11 May 2004 20:36:59 -0700, Scott Muc <[EMAIL PROTECTED]> 
wrote:
> > 
> > Hey everyone,
> > 
> > I'm doing my best to get Mono and XSP running on FreeBSD 4.9. I got
> > mono-0.31 installed from the ports collection, and I am installing xsp
> > from source.
> > 
> > I downloaded the xsp-0.12 src from go-mono.com, and when it came to
> > un-tarring it I see the following results:
> > 
> > xsp-0.12/nunit-tests/standalone/PaxHeaders.19433/test1.cs
> > tar: xsp-0.12/nunit-tests/standalone/PaxHeaders.19433/test1.cs: Unknown
> > file type 'x', extracted as normal file
> > 
> > This results in source that's not able to be compiled.
> > 
> > I had no problems un-tarring xsp-0.13. I am getting bus errors when
> > running xsp-0.13 so that's why I want to try out xsp-0.12.
> > 
> > Thanks,
> > Scott Muc
> > 
> > ___
> > 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

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


[Mono-list] SQLDataReader error

2004-05-12 Thread Ellis, Edward
I get the following error:

** (GetAnalysisTime_C.exe:31073): WARNING **: Missing method get_HasRows
in assembly /home/d3j409/GetAnalysisTime_C.exe typeref index 26
 
** ERROR **: file mini.c: line 3191 (mono_method_to_ir): assertion
failed: (cmethod)
aborting...
Aborted

I believe it is caused by the following statement:

if (!(Reader.HasRows)) return "";   //Specified job wasn't
found

Is this a bug in mini, SQLDataReader, or "a loose nut behind the wheel"?

J. Edward Ellis 
Battelle, Pacific Northwest National Laboratory
(509) 375-3627 office
(509) 521-6361 cell
(509) 372-4725 FAX
mailto:[EMAIL PROTECTED] 

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


Re: [Mono-list] Mono Virtual Hosts

2004-05-12 Thread Jonathan Stowe
On Wed, 2004-05-12 at 17:30, Andrew Arnott wrote:
> Does CVS fix the Virtual Hosts problem yet?  I want to host multiple
> Mono web sites, as opposed to merely virtual directories.  Here is
> someoneâs hack that supposedly fixes it.  Just wondering if itâs in
> CVS yet.

It's not in the CVS no. I would guess that posting a patch on a bulletin
board is not a particularly efficient way of getting it applied :-)

/J\

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


[Mono-list] Mono Virtual Hosts

2004-05-12 Thread Andrew Arnott










Does CVS fix the Virtual Hosts problem yet?
 I want to host multiple Mono web sites,
as opposed to merely virtual directories.  Here is someone’s hack that
supposedly fixes it.  Just wondering if it’s in CVS yet.

 





http://www.gotmono.com/cgi-bin/yabb/YaBB.pl?board=ASPX;action="">










[Mono-list] Building from CVS: gmcs.exe not found

2004-05-12 Thread Andrew Arnott








I downloaded CVS yesterday, and updated it this morning.  I
ran from the cvs\mono directory:

 

./autogen.sh –prefix=/usr

./make fullbuild

 

My mono files are found in /usr/bin/mono, etc.  So I
believe the prefix above is correct.  But the build fails with the error
below.  It appears that the gmcs.exe file is being looked for in the /
directory rather than /usr/bin/.  

 

make[3]: Entering directory `/root/cvs/mono/runtime'

if test -f ../../mcs/gmcs/gmcs.exe; then
f=../../mcs/gmcs/gmcs.exe; else f=/gmcs.exe; fi; \

echo "cp -f $f ."; \

cp -f $f .

cp -f /gmcs.exe .

cp: cannot stat `/gmcs.exe': No such file or directory

make[3]: *** [gmcs.exe] Error 1

make[3]: Leaving directory `/root/cvs/mono/runtime'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/cvs/mono/runtime'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/cvs/mono'

make: *** [all] Error 2

biscuit:~/cvs/mono # locate gmcs.exe

/usr/bin/gmcs.exe

/usr/lib/mono/2.0/gmcs.exe

biscuit:~/cvs/mono #

 

I created a symbolic link to it in the / directory, and got
passed that error.  Then the build crashed with this error:

 

cp -f ../../../mcs/class/lib/default/System.Web.Services.dll
.

cp -f
../../../mcs/class/lib/default/System.Windows.Forms.dll .

cp -f ../../../mcs/class/lib/default/System.Xml.dll .

make[3]: Leaving directory `/root/cvs/mono/runtime/net_1_1'

Making all in net_2_0

make[3]: Entering directory `/root/cvs/mono/runtime/net_2_0'

cp -f ../../../mcs/class/lib/net_2_0/mscorlib.dll .

cp: cannot stat
`../../../mcs/class/lib/net_2_0/mscorlib.dll': No such file or directory

make[3]: *** [mscorlib.dll] Error 1

make[3]: Leaving directory `/root/cvs/mono/runtime/net_2_0'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/cvs/mono/runtime'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/cvs/mono'

make: *** [all] Error 2

 

I’ve never managed to get a make fullbuild to work with
any snapshot, so I may have environment variables that need to be initialized?  I
don’t know.   But any help would be appreciated.








[Mono-list] GetFileName95 Flags 0x00800000 not yet implemented?

2004-05-12 Thread Ellis, Edward
When I call ShowDialog on an OpenFileDialog I get the following
exception:

fixme: commdlg: GetFileName95 Flags 0x0080 not yet implemented

This apparently is coming from wine, but are there parameters that I can
set that will allow me to use the OpenFileDialog without generating this
exception?  I am not trying to do anything fancy, just get a filename.

J. Edward Ellis 
Battelle, Pacific Northwest National Laboratory
(509) 375-3627 office
(509) 521-6361 cell
(509) 372-4725 FAX
mailto:[EMAIL PROTECTED] 
The following code does not work.


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


RE: [Mono-list] Problem installing mono

2004-05-12 Thread Rodolfo Campero
Inline...

From: Werner Kratochwil <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [Mono-list] Problem installing mono
Date: Tue, 11 May 2004 10:24:17 +0200
Hi!

I tried to install mono on my Linux 9.0 system today.
But I got the following dependency error:
Failed dependencies:
mono-posix = 0.91-0.ximian.8.3 is needed by 
mono-core-0.91-0.ximian.8.3

For the other dependencies I installed:

* icu-2.6.1-1.ximian.8.5.i586.rpm
* libicu26-2.6.1-1.ximian.8.5.i586.rpm
I skipped the devel-version, because I thought it would be covered by the 
non-devel-version:
* libicu-devel-2.6.1-1.ximian.8.5.i586.rpm

Then I installed
* mono-core-0.91-0.ximian.8.3.i586.rpm
and I got the above dependency error.
Any ideas?
How do I get this posix module?
You can get the rpms from http://www.go-mono.com/download.html
Go to the "packages" section of your distro.
IIRC you need to install mono-core and mono-posix at the same time, passing 
both filenames when you call rpm -ivh.


I have tried to install older versions of mono before, but never made it. 
Could this cause the problem?

I'd really like to get rid of Microsoft. It sucks.
Nice regards
Werner

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/

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


RE: [Mono-list] Might this be a bug?

2004-05-12 Thread Ellis, Edward
Adding a mapping to /etc/mono/config worked for me!  Thanks!

J. Edward Ellis 
Battelle, Pacific Northwest National Laboratory
(509) 375-3627 office
(509) 521-6361 cell
(509) 372-4725 FAX
mailto:[EMAIL PROTECTED] 


-Original Message-
From: Iain McCoy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 1:50 AM
To: Peter Dennis Bartok
Cc: Ellis, Edward; [EMAIL PROTECTED]
Subject: Re: [Mono-list] Might this be a bug?

I get this error too, but for me it goes away once I add a mapping to go
from gdiplus.dll to libgdiplus.dll.so. Should such a mapping be created?

On Wed, 2004-05-12 at 02:58, Peter Dennis Bartok wrote:
> It's not a bug. It's a problem loading winelib. We fixed a build
issue,
> but I'm not sure whether or not the package you are using already has
the
> fix. I'll find out.
> 
> Peter
> 
> -Original Message-
> From: "Ellis, Edward" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: 11 May, 2004 10:31
> Subject: [Mono-list] Might this be a bug?
> 
> 
> Is this a bug or should I do further troubleshooting?  I could start
> small and work up, but I thought, "Why not go for the gusto?"  This
> looks like it might be an installation problem, but as a newbie, I am
> not sure.
> 
> I ran a simple WindowForms VB application written in VB.NET and got
the
> following exception:
> 
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Drawing.GDIPlus --->
> System.DllNotFoundException: gdiplus.dll
> in <0x00053> (wrapper managed-to-native)
> System.Drawing.GDIPlus:GdiplusStartup
>
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartu
> pOutput&)
> in <0x00068> System.Drawing.GDIPlus:.cctor ()
> --- End of inner exception stack trace ---
> 
> in (unmanaged) System.Drawing.GDIPlus:GdipCreateFontFromHfont
> (intptr,intptr&,System.Drawing.LOGFONTA&)
> in <0x000c7> System.Drawing.Font:FromHfont (intptr)
> in <0x00018> System.Windows.Forms.Control:get_DefaultFont ()
> in <0x001c1> System.Windows.Forms.Control:.ctor ()
> in <0xe> System.Windows.Forms.ScrollableControl:.ctor ()
> in <0xa> System.Windows.Forms.ContainerControl:.ctor ()
> in <0x00016> System.Windows.Forms.Form:.ctor ()
> in <0xa> Namer.Form1:.ctor ()
> in <0x0004f> (wrapper remoting-invoke-with-check) Namer.Form1:.ctor ()
> in <0x0001b> Namer.Form1:Main ()
> 
> I have the following RPMs installed:
> cairo-0.1.22-0.ximian.6.2.i386.rpm
> gal-0.23-1.ximian.6.6.i386.rpm
> gtk-sharp-0.91.1-0.ximian.6.0.i386.rpm
> icu-2.6.1-1.ximian.6.5.i386.rpm
> libgal2.0_6-1.99.11-0.ximian.6.1.i386.rpm
> libgdiplus-0.3-0.ximian.6.1.i386.rpm
> libgtkhtml3.0_4-3.0.10-0.ximian.6.1.i386.rpm
> libicu26-2.6.1-1.ximian.6.5.i386.rpm
> libicu-devel-2.6.1-1.ximian.6.5.i386.rpm
> libpixman-0.1.1-0.ximian.6.0.i386.rpm
> mono-basic-0.91-0.ximian.6.3.i386.rpm
> mono-core-0.91-0.ximian.6.3.i386.rpm
> mono-data-0.91-0.ximian.6.3.i386.rpm
> monodoc-0.15-0.ximian.6.1.i386.rpm
> mono-drawing-0.91-0.ximian.6.3.i386.rpm
> mono-ms-enterprise-0.91-0.ximian.6.3.i386.rpm
> mono-ms-extras-0.91-0.ximian.6.3.i386.rpm
> mono-posix-0.91-0.ximian.6.3.i386.rpm
> mono-preview-0.91-0.ximian.6.3.i386.rpm
> mono-remoting-0.91-0.ximian.6.3.i386.rpm
> mono-web-forms-0.91-0.ximian.6.3.i386.rpm
> mono-web-services-0.91-0.ximian.6.3.i386.rpm
> mono-window-forms-0.91-0.ximian.6.3.i386.rpm
> mono-ziplib-0.91-0.ximian.6.3.i386.rpm
> wine-20040408-1rh9winehq.i386.rpm
> winelib-0.2-0.ximian.6.2.i386.rpm
> 
> J. Edward Ellis
> Battelle, Pacific Northwest National Laboratory
> (509) 375-3627 office
> (509) 521-6361 cell
> (509) 372-4725 FAX
> mailto:[EMAIL PROTECTED]
> 
> 
> ___
> 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
-- 
Iain McCoy <[EMAIL PROTECTED]>

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


[Mono-list] Newbie: Where to start

2004-05-12 Thread Leonard Tulipan
Hi there!

I've been following what you're doing for a little while now.
My background:
I know C and C++ but do most my stuff with php, bash and perl (all 
scripting) at the moment.
I also found a lot of info on the go-mono website.
But tutorials are not really available.

My aim is to make a cross-platform app that supports Desktop-Systems and 
PockePC PDA.
So, where do I start with this. A nice little Mono HelloWorld app would 
be nice.
I just don't see which components I need. OK, there is a GPL IDE  ( 
http://www.icsharpcode.net/opensource/sd/ ) and mono has a lot of 
binaries to offer.
But then, what do I need to get the apps running? I want the demo to 
work on Linux and my PDA

Sorry if I seem a bit ignorant but because there is so much 
documentation on on go-mono "I donot see the wood for the trees", if you 
know what I mean. A 1-2-3 starter kit would be great.

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


Re: [Mono-list] Firebird Connection

2004-05-12 Thread Enver ALTIN
On Wed, 2004-05-12 at 16:49 +0200, [EMAIL PROTECTED]
wrote:
> Unhandled Exception: FirebirdSql.Data.Firebird.FbException: Unable to complete
> network request to host "localhost".

Are you sure you have it running? Can you access the firebird server
using isql?
-- 
 __
|  |
|  |  Enver ALTIN (a.k.a. skyblue)
|  |  Software developer, IT consultant
|FRONT |
|==|  FrontSITE Bilgi Teknolojisi A.Ş.
|_SITE_|  http://www.frontsite.com.tr/


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] Firebird Connection

2004-05-12 Thread Pavol STÁREK PSŽ
Hi,

try 127.0.0.1 as server...

p.
[EMAIL PROTECTED] wrote:
Hi,

I tried to acces data from Firebird on Linux with Mono 0.91 but I got a
Firebird Exception:
Unhandled Exception: FirebirdSql.Data.Firebird.FbException: Unable to complete
network request to host "localhost".
in <0x000d0> FirebirdSql.Data.Firebird.FbDbConnection:Connect ()
in <0x0004f> (wrapper remoting-invoke-with-check)
FirebirdSql.Data.Firebird.FbDbConnection:Connect ()
in <0x001e2> FirebirdSql.Data.Firebird.FbConnection:Open ()
in <0x00066> Test:Main (string[])
I use Firebird NET Provider 1.6 Beta3 (Sources compiled with Mono 0.91)
and a connection string like this one:
 string connectionString =  
 "Database=/opt/firebird/examples/employee.fdb;" + 
	  "User=SYSDBA;" +
	  "Password=Password;" +
	  "Dialect=3;" +
	  "Server=localhost";

Any idea to fix this problem?

Thanks.

eric lemoine ([EMAIL PROTECTED])



___
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


Re: [Mono-list] offtopic, but cool

2004-05-12 Thread Cory Nelson
The only difference is the ArrayList requires boxing to Object.

ArrayList:
L_002a: newobj instance void
[System.Drawing]System.Drawing.Rectangle::.ctor(int32, int32, int32,
int32)
L_002f: box [System.Drawing]System.Drawing.Rectangle
L_0034: callvirt instance int32
[mscorlib]System.Collections.ArrayList::Add(object)

List:
L_008c: newobj instance void
[System.Drawing]System.Drawing.Rectangle::.ctor(int32, int32, int32,
int32)
L_0091: callvirt instance int32
[mscorlib]System.Collections.Generic.List!1<[System.Drawing]System.Drawing.Rectangle>::Add(!0)

On Wed, 12 May 2004 10:18:57 -0400, Dan <[EMAIL PROTECTED]> wrote:
> 
> Cory, I'm curious, did you compare the IL to see whats different?
> 
> -Dan
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Lluis Sanchez
> Sent: Wednesday, May 12, 2004 9:17 AM
> To: Cesar Mello
> Cc: Cory Nelson; mono-list
> Subject: Re: [Mono-list] offtopic, but cool
> 
> System.Drawing.Rectangle is a struct, so it is copied by value, not by
> reference.
> 
> On dc, 2004-05-12 at 14:41, Cesar Mello wrote:
> > Hi Cory,
> >
> > In the C++ sample, you are passing the rect by value, so you are
> > saving a copy in the list. In C# a reference to the object is used, so
> > there is no copy-construction overhead.
> >
> > You can change the list to a list, but this way you have
> > to manage the memory by yourlself.
> >
> > []
> > Mello
> >
> >
> >
> > Cory Nelson wrote:
> > > Just got done installing the VS.NET 2005 preview and did a small test.
> > >
> > > I compared an ArrayList of Rectangles to a List, and
> > > timed inserting 1mil rects into each.  I also wrote an equivalent c++
> app.
> > > Got some interesting results:
> > >
> > > ArrayList: 265ms
> > > List: 62ms
> > > list: 141ms
> > >
> > > So it seems with generics .NET is finally faster than c++ (at least,
> > > in this case).
> > >
> > > Esta mensagem foi verificada pelo E-mail Protegido Terra.
> > > Scan engine: VirusScan / Atualizado em 10/05/2004 / Versão: 1.5.2
> > > Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
> > >
> > >
> > > 
> > > #region Using directives
> > >
> > > using System;
> > > using System.Collections;
> > > using System.Collections.Generic;
> > > using System.Drawing;
> > >
> > > #endregion
> > >
> > > namespace SpeedTest {
> > > class Program {
> > > static void Main(string[] args) {
> > > ArrayList al = new ArrayList();
> > > List rl = new List();
> > > DateTime start, end;
> > >
> > > GC.Collect();
> > > GC.WaitForPendingFinalizers();
> > >
> > > start = DateTime.Now;
> > > for (int i = 0; i < 100; i++)
> > > al.Add(new Rectangle(i, i, i, i));
> > > end = DateTime.Now;
> > >
> > > Console.WriteLine("Arraylist:   {0:F3}ms",
> (end-start).TotalMilliseconds);
> > >
> > > GC.Collect();
> > > GC.WaitForPendingFinalizers();
> > >
> > > start = DateTime.Now;
> > > for (int i = 0; i < 100; i++)
> > > rl.Add(new Rectangle(i, i, i, i));
> > > end = DateTime.Now;
> > >
> > > Console.WriteLine("List:  {0:F3}ms", (end
> - start).TotalMilliseconds);
> > > }
> > > }
> > > }
> > >
> > >
> > >
> > > 
> > > #include 
> > > #include 
> > > #include 
> > > using namespace std;
> > >
> > > struct rect {
> > > int x;
> > > int y;
> > > int width;
> > > int height;
> > > };
> > >
> > > int main(void) {
> > > list rl;
> > >
> > > clock_t start=clock();
> > > for(int i=0; i<100; i++) {
> > > rect r={i, i, i, i};
> > > rl.push_back(r);
> > > }
> > > clock_t end=clock();
> > >
> > > cout << "list: " <<
> > > (((float)(end-start))/((float)CLOCKS_PER_SEC)*1000.0f) << "ms" <<
> > > endl;
> > >
> > > return 0;
> > > }
> > >
> > >
> >
> 
> ___
> 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


Re: [Mono-list] offtopic, but cool

2004-05-12 Thread Cesar Mello
Hi Cory!

yeap you're right! I didn't notice the struct was small. I'd like to see 
the struct you used in the C++ sample if possible (just 4 ints?)

I'll do the same benchmark later when I get home, and try with different 
compilers and allocators. Pretty interesting!

Best regards,
Mello
Cory Nelson wrote:

Yea I thought of that, but doing so made it take twice the time:

list rl;
for(int i=0; i<100; i++) {
rect *r=new rect;
r->x=i;
r->y=i;
r->width=i;
r->height=i;
rl.push_back(r);
}
- Original Message -
From: Cesar Mello <[EMAIL PROTECTED]>
Date: Wed, 12 May 2004 09:41:24 -0300
Subject: Re: [Mono-list] offtopic, but cool
To: Cory Nelson <[EMAIL PROTECTED]>
Cc: mono-list <[EMAIL PROTECTED]>
Hi Cory,

In the C++ sample, you are passing the rect by value, so you are
saving a copy in the list. In C# a reference to the object is used, so
there is no copy-construction overhead.
You can change the list to a list, but this way you have
to manage the memory by yourlself.
[]
Mello


Cory Nelson wrote:
Just got done installing the VS.NET 2005 preview and did a small test.
I compared an ArrayList of Rectangles to a List, and timed
inserting 1mil rects into each.  I also wrote an equivalent c++ app. 
Got some interesting results:

ArrayList: 265ms
List: 62ms
list: 141ms
So it seems with generics .NET is finally faster than c++ (at least,
in this case).
Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: VirusScan / Atualizado em 10/05/2004 / Versão: 1.5.2
Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: VirusScan / Atualizado em 10/05/2004 / Versão: 1.5.2
Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/


 

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


[Mono-list] Firebird Connection

2004-05-12 Thread eric . lemoine

 Hi,

 I tried to acces data from Firebird on Linux with Mono 0.91 but I got a
Firebird Exception:

Unhandled Exception: FirebirdSql.Data.Firebird.FbException: Unable to complete
network request to host "localhost".
in <0x000d0> FirebirdSql.Data.Firebird.FbDbConnection:Connect ()
in <0x0004f> (wrapper remoting-invoke-with-check)
FirebirdSql.Data.Firebird.FbDbConnection:Connect ()
in <0x001e2> FirebirdSql.Data.Firebird.FbConnection:Open ()
in <0x00066> Test:Main (string[])

I use Firebird NET Provider 1.6 Beta3 (Sources compiled with Mono 0.91)
and a connection string like this one:

  string connectionString =  
  "Database=/opt/firebird/examples/employee.fdb;" + 
  "User=SYSDBA;" +
  "Password=Password;" +
  "Dialect=3;" +
  "Server=localhost";


 Any idea to fix this problem?

 Thanks.

 eric lemoine ([EMAIL PROTECTED])



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


RE: [Mono-list] offtopic, but cool

2004-05-12 Thread Dan
Cory, I'm curious, did you compare the IL to see whats different?

-Dan 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lluis Sanchez
Sent: Wednesday, May 12, 2004 9:17 AM
To: Cesar Mello
Cc: Cory Nelson; mono-list
Subject: Re: [Mono-list] offtopic, but cool

System.Drawing.Rectangle is a struct, so it is copied by value, not by
reference.

On dc, 2004-05-12 at 14:41, Cesar Mello wrote:
> Hi Cory,
> 
> In the C++ sample, you are passing the rect by value, so you are 
> saving a copy in the list. In C# a reference to the object is used, so 
> there is no copy-construction overhead.
> 
> You can change the list to a list, but this way you have 
> to manage the memory by yourlself.
> 
> []
> Mello
> 
> 
> 
> Cory Nelson wrote:
> > Just got done installing the VS.NET 2005 preview and did a small test.
> > 
> > I compared an ArrayList of Rectangles to a List, and 
> > timed inserting 1mil rects into each.  I also wrote an equivalent c++
app.
> > Got some interesting results:
> > 
> > ArrayList: 265ms
> > List: 62ms
> > list: 141ms
> > 
> > So it seems with generics .NET is finally faster than c++ (at least, 
> > in this case).
> > 
> > Esta mensagem foi verificada pelo E-mail Protegido Terra.
> > Scan engine: VirusScan / Atualizado em 10/05/2004 / Versão: 1.5.2 
> > Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
> >   
> > 
> > 
> > #region Using directives
> > 
> > using System;
> > using System.Collections;
> > using System.Collections.Generic;
> > using System.Drawing;
> > 
> > #endregion
> > 
> > namespace SpeedTest {
> > class Program {
> > static void Main(string[] args) {
> > ArrayList al = new ArrayList();
> > List rl = new List();
> > DateTime start, end;
> > 
> > GC.Collect();
> > GC.WaitForPendingFinalizers();
> > 
> > start = DateTime.Now;
> > for (int i = 0; i < 100; i++)
> > al.Add(new Rectangle(i, i, i, i));
> > end = DateTime.Now;
> > 
> > Console.WriteLine("Arraylist:   {0:F3}ms",
(end-start).TotalMilliseconds);
> > 
> > GC.Collect();
> > GC.WaitForPendingFinalizers();
> > 
> > start = DateTime.Now;
> > for (int i = 0; i < 100; i++)
> > rl.Add(new Rectangle(i, i, i, i));
> > end = DateTime.Now;
> > 
> > Console.WriteLine("List:  {0:F3}ms", (end
- start).TotalMilliseconds);
> > }
> > }
> > }
> > 
> >   
> > 
> > 
> > #include 
> > #include 
> > #include 
> > using namespace std;
> > 
> > struct rect {
> > int x;
> > int y;
> > int width;
> > int height;
> > };
> > 
> > int main(void) {
> > list rl;
> > 
> > clock_t start=clock();
> > for(int i=0; i<100; i++) {
> > rect r={i, i, i, i};
> > rl.push_back(r);
> > }
> > clock_t end=clock();
> > 
> > cout << "list: " << 
> > (((float)(end-start))/((float)CLOCKS_PER_SEC)*1000.0f) << "ms" << 
> > endl;
> > 
> > return 0;
> > }
> > 
> >   
> 

___
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


Re: [Mono-list] offtopic, but cool

2004-05-12 Thread Lluis Sanchez
System.Drawing.Rectangle is a struct, so it is copied by value, not by
reference.

On dc, 2004-05-12 at 14:41, Cesar Mello wrote:
> Hi Cory,
> 
> In the C++ sample, you are passing the rect by value, so you are
> saving a copy in the list. In C# a reference to the object is used, so
> there is no copy-construction overhead.
> 
> You can change the list to a list, but this way you have
> to manage the memory by yourlself. 
> 
> []
> Mello
> 
> 
> 
> Cory Nelson wrote:
> > Just got done installing the VS.NET 2005 preview and did a small test.
> > 
> > I compared an ArrayList of Rectangles to a List, and timed
> > inserting 1mil rects into each.  I also wrote an equivalent c++ app. 
> > Got some interesting results:
> > 
> > ArrayList: 265ms
> > List: 62ms
> > list: 141ms
> > 
> > So it seems with generics .NET is finally faster than c++ (at least,
> > in this case).
> > 
> > Esta mensagem foi verificada pelo E-mail Protegido Terra.
> > Scan engine: VirusScan / Atualizado em 10/05/2004 / Versão: 1.5.2
> > Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
> >   
> > 
> > 
> > #region Using directives
> > 
> > using System;
> > using System.Collections;
> > using System.Collections.Generic;
> > using System.Drawing;
> > 
> > #endregion
> > 
> > namespace SpeedTest {
> > class Program {
> > static void Main(string[] args) {
> > ArrayList al = new ArrayList();
> > List rl = new List();
> > DateTime start, end;
> > 
> > GC.Collect();
> > GC.WaitForPendingFinalizers();
> > 
> > start = DateTime.Now;
> > for (int i = 0; i < 100; i++)
> > al.Add(new Rectangle(i, i, i, i));
> > end = DateTime.Now;
> > 
> > Console.WriteLine("Arraylist:   {0:F3}ms", 
> > (end-start).TotalMilliseconds);
> > 
> > GC.Collect();
> > GC.WaitForPendingFinalizers();
> > 
> > start = DateTime.Now;
> > for (int i = 0; i < 100; i++)
> > rl.Add(new Rectangle(i, i, i, i));
> > end = DateTime.Now;
> > 
> > Console.WriteLine("List:  {0:F3}ms", (end - 
> > start).TotalMilliseconds);
> > }
> > }
> > }
> > 
> >   
> > 
> > 
> > #include 
> > #include 
> > #include 
> > using namespace std;
> > 
> > struct rect {
> > int x;
> > int y;
> > int width;
> > int height;
> > };
> > 
> > int main(void) {
> > list rl;
> > 
> > clock_t start=clock();
> > for(int i=0; i<100; i++) {
> > rect r={i, i, i, i};
> > rl.push_back(r);
> > }
> > clock_t end=clock();
> > 
> > cout << "list: " << 
> > (((float)(end-start))/((float)CLOCKS_PER_SEC)*1000.0f) << "ms" << endl;
> > 
> > return 0;
> > }
> > 
> >   
> 

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


Re: [Mono-list] offtopic, but cool

2004-05-12 Thread Cory Nelson
Yea I thought of that, but doing so made it take twice the time:

list rl;
for(int i=0; i<100; i++) {
rect *r=new rect;
r->x=i;
r->y=i;
r->width=i;
r->height=i;

rl.push_back(r);
}


- Original Message -
From: Cesar Mello <[EMAIL PROTECTED]>
Date: Wed, 12 May 2004 09:41:24 -0300
Subject: Re: [Mono-list] offtopic, but cool
To: Cory Nelson <[EMAIL PROTECTED]>
Cc: mono-list <[EMAIL PROTECTED]>


Hi Cory,

In the C++ sample, you are passing the rect by value, so you are
saving a copy in the list. In C# a reference to the object is used, so
there is no copy-construction overhead.

You can change the list to a list, but this way you have
to manage the memory by yourlself.

[]
Mello



Cory Nelson wrote:
Just got done installing the VS.NET 2005 preview and did a small test.

I compared an ArrayList of Rectangles to a List, and timed
inserting 1mil rects into each.  I also wrote an equivalent c++ app. 
Got some interesting results:

ArrayList: 265ms
List: 62ms
list: 141ms

So it seems with generics .NET is finally faster than c++ (at least,
in this case).

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: VirusScan / Atualizado em 10/05/2004 / Versão: 1.5.2
Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] The handle daemon didnt start up properly

2004-05-12 Thread Fred Blaise
If I had read the archives a bit longer, I would have found that
deleting the .wapi directory was the answer. I did that and it worked.

Thanks guys

...chap

On Wed, 2004-05-12 at 07:40, Fred Blaise wrote:
> Hello all
> 
> I had to hard reboot my system, and since then, when I compile (mcs) or
> run (mono) anything, I get the following:
> 
> [EMAIL PROTECTED]:~/Desktop$ mono x.exe
>  
> ** (x.exe:1518): WARNING **: The handle daemon didnt start up properly
>  
> ** (x.exe:1518): WARNING **: Failed to attach shared memory! Falling
> back to non-shared handles
> 
> Is there anything I can do about this?
> 
> Thank you for any pointers.
> 
> ...chap
> 
> 
> ___
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
-- 
The software said install Windows2000 or better.. so I installed Linux. 

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


[Mono-list] The handle daemon didnt start up properly

2004-05-12 Thread Fred Blaise
Hello all

I had to hard reboot my system, and since then, when I compile (mcs) or
run (mono) anything, I get the following:

[EMAIL PROTECTED]:~/Desktop$ mono x.exe
 
** (x.exe:1518): WARNING **: The handle daemon didnt start up properly
 
** (x.exe:1518): WARNING **: Failed to attach shared memory! Falling
back to non-shared handles

Is there anything I can do about this?

Thank you for any pointers.

...chap


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


Re: [Mono-list] offtopic, but cool

2004-05-12 Thread Cesar Mello




Hi Cory,

In the C++ sample, you are passing the rect by value, so you are saving
a copy in the list. In C# a reference to the object is used, so there
is no copy-construction overhead.

You can change the list to a list, but this
way you have to manage the memory by yourlself. 

[]
Mello



Cory Nelson wrote:

  Just got done installing the VS.NET 2005 preview and did a small test.

I compared an ArrayList of Rectangles to a List, and timed
inserting 1mil rects into each.  I also wrote an equivalent c++ app. 
Got some interesting results:

ArrayList: 265ms
List: 62ms
list: 141ms

So it seems with generics .NET is finally faster than c++ (at least,
in this case).

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: VirusScan / Atualizado em 10/05/2004 / Versão: 1.5.2
Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
  
  

#region Using directives

using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;

#endregion

namespace SpeedTest {
	class Program {
		static void Main(string[] args) {
			ArrayList al = new ArrayList();
			List rl = new List();
			DateTime start, end;

			GC.Collect();
			GC.WaitForPendingFinalizers();

			start = DateTime.Now;
			for (int i = 0; i < 100; i++)
al.Add(new Rectangle(i, i, i, i));
			end = DateTime.Now;

			Console.WriteLine("Arraylist:   {0:F3}ms", (end-start).TotalMilliseconds);

			GC.Collect();
			GC.WaitForPendingFinalizers();

			start = DateTime.Now;
			for (int i = 0; i < 100; i++)
rl.Add(new Rectangle(i, i, i, i));
			end = DateTime.Now;

			Console.WriteLine("List:  {0:F3}ms", (end - start).TotalMilliseconds);
		}
	}
}

  
  

#include 
#include 
#include 
using namespace std;

struct rect {
	int x;
	int y;
	int width;
	int height;
};

int main(void) {
	list rl;

	clock_t start=clock();
	for(int i=0; i<100; i++) {
		rect r={i, i, i, i};
		rl.push_back(r);
	}
	clock_t end=clock();

	cout << "list: " << (((float)(end-start))/((float)CLOCKS_PER_SEC)*1000.0f) << "ms" << endl;

	return 0;
}

  






[Mono-list] offtopic, but cool

2004-05-12 Thread Cory Nelson
Just got done installing the VS.NET 2005 preview and did a small test.

I compared an ArrayList of Rectangles to a List, and timed
inserting 1mil rects into each.  I also wrote an equivalent c++ app. 
Got some interesting results:

ArrayList: 265ms
List: 62ms
list: 141ms

So it seems with generics .NET is finally faster than c++ (at least,
in this case).
#region Using directives

using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;

#endregion

namespace SpeedTest {
class Program {
static void Main(string[] args) {
ArrayList al = new ArrayList();
List rl = new List();
DateTime start, end;

GC.Collect();
GC.WaitForPendingFinalizers();

start = DateTime.Now;
for (int i = 0; i < 100; i++)
al.Add(new Rectangle(i, i, i, i));
end = DateTime.Now;

Console.WriteLine("Arraylist:   {0:F3}ms", 
(end-start).TotalMilliseconds);

GC.Collect();
GC.WaitForPendingFinalizers();

start = DateTime.Now;
for (int i = 0; i < 100; i++)
rl.Add(new Rectangle(i, i, i, i));
end = DateTime.Now;

Console.WriteLine("List:  {0:F3}ms", (end - 
start).TotalMilliseconds);
}
}
}
#include 
#include 
#include 
using namespace std;

struct rect {
int x;
int y;
int width;
int height;
};

int main(void) {
list rl;

clock_t start=clock();
for(int i=0; i<100; i++) {
rect r={i, i, i, i};
rl.push_back(r);
}
clock_t end=clock();

cout << "list: " << 
(((float)(end-start))/((float)CLOCKS_PER_SEC)*1000.0f) << "ms" << endl;

return 0;
}


[Mono-list] Trying to use GConf, and it wants a slash

2004-05-12 Thread Adam Tauno Williams
I'm attempting to add GConf support to my little app using the
instructions found at -
http://www.go-mono.com/monkeyguide/html/en/gnome/bindings/gconf/gconf.
html

But whenever I attempt to bring up the dialog box with the preference
bindings it crashes with:
Unhandled Exception: GLib.GException: Bad key or directory name:
"localhost": Must begin with a slash (/)
in <0x00090> GConf.Client:Get (string)
in <0x00050> GConf.PropertyEditors.PropertyEditor:Get ()
in <0x00057> GConf.PropertyEditors.PropertyEditor:Setup ()

Why does the default value have to start with a "/"?  I'm confused.

I used...
env GCONF_CONFIG_SOURCE="" gconftool-2 --makefile-install-rule
GConfSchema.xml
gconfsharp-schemagen mWhitePage GConfSchema.xml > GConf.cs
... to create GConf.cs from ...

  

  /schemas/apps/botwm/mWhitePage/serverName
  /apps/botwm/mWhitePage/serverName
  mWhitePage
  string
  string
  
Server Name
Fully qualified domain name of LDAP server
  
  localhost


  /schemas/apps/botwm/mWhitePage/serverRootDN
  /apps/botwm/mWhitePage/serverRootDN
  mWhitePage
  string
  string
  
Server Root
Root DN of LDAP server
  
  o=Morrison Industries,c=US


  /schemas/apps/botwm/mWhitePage/serverBindDN
  /apps/botwm/mWhitePage/serverBindDN
  mWhitePage
  string
  string
  
Bind DN
DN for binding to LDAP server
  
  ou=People,o=Morrison Industries,c=US

  


Summoning up the preference dialog with...
public class PreferencesWindow
{
[Widget] Dialog preferencesWindow;

public PreferencesWindow() 
{
 Glade.XML gxml = new Glade.XML (null, "gui.glade",
"preferencesWindow", null);
 gxml.Autoconnect (this);
 GConf.PropertyEditors.EditorShell shell =
   new GConf.PropertyEditors.EditorShell(gxml);
 shell.Add(mWhitePage.Settings.ServerName, "fieldServerName");
 shell.Add(mWhitePage.Settings.ServerRootDN,
"fieldServerRootDN");
 shell.Add(mWhitePage.Settings.ServerBindDN,
"fieldServerBindDN");
}


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


RE: [Mono-list] RE: Mono Beta1 and Error with Monodoc

2004-05-12 Thread RoBiK
Please check again that you have these packages properly installed:

http://ftp.ximian.com/pub/ximian-evolution/redhat-9-i386/libgtkhtml3.0_4-3.0
.10-0.ximian.6.1.i386.rpm
http://www.go-mono.com/archive/beta1/fedora-1-i386/gtk-sharp-0.91.1-0.ximian
.7.0.i386.rpm
http://www.go-mono.com/archive/beta1/fedora-1-i386/gtk-sharp-gapi-0.91.1-0.x
imian.7.0.i386.rpm

It seems that the gtkhtml-sharp.dll (wich is a managet wrapper to acces the
unmanaget gtkhtml library) has a problem with locating the library (either
it doesn't know what library it should take or it doesn't know where to find
it).

Robert

 

-Original Message-
From: Tobias Bradtke [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 11. Mai 2004 14:19
To: [EMAIL PROTECTED]
Subject: [Mono-list] RE: Mono Beta1 and Error with Monodoc

txh for your reply.

i installed 'gtkhtml3.0-3.0.10-0.ximian.6.1.i386.rpm'
from http://ftp.ximian.com/pub/ximian-evolution/redhat-9-i386/
(and some dependencies) and now i get the following files if ido: 
find / -name "libgtkhtml-*"

--snip--

/usr/include/libgtkhtml-3.1
/usr/lib/pkgconfig/libgtkhtml-3.1.pc
/usr/lib/libgtkhtml-2.so.0.0.0
/usr/lib/libgtkhtml-1.1.so.3
/usr/lib/libgtkhtml-3.0.so.4
/usr/lib/libgtkhtml-3.1.so.7
/usr/lib/libgtkhtml-3.0.so.4.0.0
/usr/lib/libgtkhtml-1.1.so.3.0.4
/usr/lib/libgtkhtml-3.1.a
/usr/lib/libgtkhtml-2.so.0
/usr/lib/libgtkhtml-1.1.a
/usr/lib/libgtkhtml-1.1.so
/usr/lib/debug/usr/lib/libgtkhtml-2.so.0.0.0.debug
/usr/lib/debug/usr/lib/libgtkhtml-1.1.so.3.0.4.debug
/usr/lib/libgtkhtml-3.1.so
/usr/lib/libgtkhtml-3.1.so.7.1.0
/usr/src/debug/libgtkhtml-2.6.0

--snap--

but unfortunately i monodoc throughs again this error:

--snip--

Unhandled Exception: System.DllNotFoundException: gtkhtml-3.0 in <0x00053>
(wrapper managed-to-native) Gtk.HTML:gtk_html_new () in <0x00021>
Gtk.HTML:.ctor () in [0x001aa] (at
/home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.cs:20
9) Monodoc.Browser:.ctor () in [0x00120] (at
/home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.cs:81
) Monodoc.Driver:Main (string[])

--snap--

what file is missing?


thx!
webwurst



Am Tue, 11 May 2004 09:48:10 +0200 schrieb RoBiK:

> Hmm, now i see, that you use fedora core2 test 3, i'm not sure if this 
> rpm (this one is for RH9) will work for you.. Give it a try. There are 
> no packages for fedora, so maybe you must buid this library from source.
> 
> Robert
> 
> -Original Message-
> From: RoBiK [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 11. Mai 2004 09:35
> To: 'Tobias Bradtke'
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Mono-list] Mono Beta1 and Error with Monodoc
> 
> Hi,
> 
> The package thaht you need is "libgtkhtml3.0_4-3.0.10-0.ximian.6.1".
> Look for these files:
> 
> /usr/lib/libgtkhtml-3.0.so.4
> /usr/lib/libgtkhtml-3.0.so.4.0.0
> 
> Robert
> 
> -Original Message-
> From: Tobias Bradtke [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 11. Mai 2004 03:07
> To: [EMAIL PROTECTED]
> Subject: [Mono-list] Mono Beta1 and Error with Monodoc
> 
> hi everyone,
> 
> i know installation-errors are boring, but i don't get it..
> 
> i'm running fedora-core2-test3 and installed mono from here:
> http://www.go-mono.com/archive/beta1/fedora-1-i386/
> 
> 'monodoc --make-index' does work, but just 'monodoc' througs an error:
> 
> --snip--
> 
> Unhandled Exception: System.DllNotFoundException: gtkhtml-3.0 in 
> <0x00053> (wrapper managed-to-native) Gtk.HTML:gtk_html_new () in 
> <0x00021> Gtk.HTML:.ctor () in [0x001aa] (at 
> /home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser
> .cs:20
> 9) Monodoc.Browser:.ctor () in [0x00120] (at
> /home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser
> .cs:81
> ) Monodoc.Driver:Main (string[])
> 
> --snap--
> 
> 'rpm -q gtkhtml3' says: 'gtkhtml3-3.1.12-1' is installed.
> 
> if i search for 'gtkhtml*dll' i get severel locations with 
> "gtkhtml-sharp.dll", but none with "gtkhtml.dll" or so..
> 
> what can i do??
> 
> 
> thanks,
> webwurst
>

___
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


Re: [Mono-list] Might this be a bug?

2004-05-12 Thread Iain McCoy
I get this error too, but for me it goes away once I add a mapping to go
from gdiplus.dll to libgdiplus.dll.so. Should such a mapping be created?

On Wed, 2004-05-12 at 02:58, Peter Dennis Bartok wrote:
> It's not a bug. It's a problem loading winelib. We fixed a build issue,
> but I'm not sure whether or not the package you are using already has the
> fix. I'll find out.
> 
> Peter
> 
> -Original Message-
> From: "Ellis, Edward" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: 11 May, 2004 10:31
> Subject: [Mono-list] Might this be a bug?
> 
> 
> Is this a bug or should I do further troubleshooting?  I could start
> small and work up, but I thought, "Why not go for the gusto?"  This
> looks like it might be an installation problem, but as a newbie, I am
> not sure.
> 
> I ran a simple WindowForms VB application written in VB.NET and got the
> following exception:
> 
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Drawing.GDIPlus --->
> System.DllNotFoundException: gdiplus.dll
> in <0x00053> (wrapper managed-to-native)
> System.Drawing.GDIPlus:GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartu
> pOutput&)
> in <0x00068> System.Drawing.GDIPlus:.cctor ()
> --- End of inner exception stack trace ---
> 
> in (unmanaged) System.Drawing.GDIPlus:GdipCreateFontFromHfont
> (intptr,intptr&,System.Drawing.LOGFONTA&)
> in <0x000c7> System.Drawing.Font:FromHfont (intptr)
> in <0x00018> System.Windows.Forms.Control:get_DefaultFont ()
> in <0x001c1> System.Windows.Forms.Control:.ctor ()
> in <0xe> System.Windows.Forms.ScrollableControl:.ctor ()
> in <0xa> System.Windows.Forms.ContainerControl:.ctor ()
> in <0x00016> System.Windows.Forms.Form:.ctor ()
> in <0xa> Namer.Form1:.ctor ()
> in <0x0004f> (wrapper remoting-invoke-with-check) Namer.Form1:.ctor ()
> in <0x0001b> Namer.Form1:Main ()
> 
> I have the following RPMs installed:
> cairo-0.1.22-0.ximian.6.2.i386.rpm
> gal-0.23-1.ximian.6.6.i386.rpm
> gtk-sharp-0.91.1-0.ximian.6.0.i386.rpm
> icu-2.6.1-1.ximian.6.5.i386.rpm
> libgal2.0_6-1.99.11-0.ximian.6.1.i386.rpm
> libgdiplus-0.3-0.ximian.6.1.i386.rpm
> libgtkhtml3.0_4-3.0.10-0.ximian.6.1.i386.rpm
> libicu26-2.6.1-1.ximian.6.5.i386.rpm
> libicu-devel-2.6.1-1.ximian.6.5.i386.rpm
> libpixman-0.1.1-0.ximian.6.0.i386.rpm
> mono-basic-0.91-0.ximian.6.3.i386.rpm
> mono-core-0.91-0.ximian.6.3.i386.rpm
> mono-data-0.91-0.ximian.6.3.i386.rpm
> monodoc-0.15-0.ximian.6.1.i386.rpm
> mono-drawing-0.91-0.ximian.6.3.i386.rpm
> mono-ms-enterprise-0.91-0.ximian.6.3.i386.rpm
> mono-ms-extras-0.91-0.ximian.6.3.i386.rpm
> mono-posix-0.91-0.ximian.6.3.i386.rpm
> mono-preview-0.91-0.ximian.6.3.i386.rpm
> mono-remoting-0.91-0.ximian.6.3.i386.rpm
> mono-web-forms-0.91-0.ximian.6.3.i386.rpm
> mono-web-services-0.91-0.ximian.6.3.i386.rpm
> mono-window-forms-0.91-0.ximian.6.3.i386.rpm
> mono-ziplib-0.91-0.ximian.6.3.i386.rpm
> wine-20040408-1rh9winehq.i386.rpm
> winelib-0.2-0.ximian.6.2.i386.rpm
> 
> J. Edward Ellis
> Battelle, Pacific Northwest National Laboratory
> (509) 375-3627 office
> (509) 521-6361 cell
> (509) 372-4725 FAX
> mailto:[EMAIL PROTECTED]
> 
> 
> ___
> 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
-- 
Iain McCoy <[EMAIL PROTECTED]>

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


[Mono-list] .NET ORB using Java

2004-05-12 Thread Vibhu Sharma
Title: .NET ORB using Java





Hi


Here is what we are thinking of doing...


0. Take a Java implementation of some ORB - say OpenORB.
1. Take the sources [.java files] and compile them in J# to get a .NET implementation.
    1.1 this would be JDK 1.1.4 compatible - so somethings may not work.
    1.2 Does Microsoft have any plans to upgrade J# to support Java 2? [especially JDK 1.4 and above]?
        1.2.1 We don't really care for swing etc at this stage - i.e no UI related stuff is needed
        1.2.2 We also don't care about RMI, JNI etc. for this particular task
    1.3 Has there been some work done on above? 


    Once the ORB is built, this would essentaily be a .NET assembly [.dll] targetting the CLR rather than being a .jar targeting a JVM

2. We can then do IDL2Java to get the .java files.
3. Recompile these stubs using J# to create yet another .NET assembly
    - in case this piece requires changes, would be painful because you wont want to edit and recompile the stubs everytime

4. We can then use any .NET compliant language like C# to write the clients in.


5. On Mac OSX, we would be doing Cocoa development, so UI in Objective C and non-UI in Java [using OpenORB], and since both support Cocoa, life would/should be simpler.

    - this means no mono or CORBA remoting needed.
    - may not be a popular thought for this forum, but please let me know if this has been tried and if there are some pitfalls related to this.

Regards


*
Vibhu
9514





[Mono-list] MONO on cygwin

2004-05-12 Thread Sameer Vartak



Hello,
 
I'm a windows user and wants to use mono and also 
wants to be able to compile mono using cygwin. currently i'm facing problems 
building mono on cygwin but I can probably handle it. I want to know if it is 
possible to use MonoDevelop and MonoDebugger on Cygwin(I've KDE installed on 
cygwin)
 
or is there any other ide and debugger to develop 
applications, which will run on windows(mono and .NET) and linux(mono 
runtime)
 
Thanks
 
Sameer


[Mono-list] RE: Mono Beta1 and Error with Monodoc

2004-05-12 Thread Tobias Bradtke
txh for your reply.

i installed 'gtkhtml3.0-3.0.10-0.ximian.6.1.i386.rpm'
from http://ftp.ximian.com/pub/ximian-evolution/redhat-9-i386/
(and some dependencies) and now i get the following files if ido: 
find / -name "libgtkhtml-*"

--snip--

/usr/include/libgtkhtml-3.1
/usr/lib/pkgconfig/libgtkhtml-3.1.pc
/usr/lib/libgtkhtml-2.so.0.0.0
/usr/lib/libgtkhtml-1.1.so.3
/usr/lib/libgtkhtml-3.0.so.4
/usr/lib/libgtkhtml-3.1.so.7
/usr/lib/libgtkhtml-3.0.so.4.0.0
/usr/lib/libgtkhtml-1.1.so.3.0.4
/usr/lib/libgtkhtml-3.1.a
/usr/lib/libgtkhtml-2.so.0
/usr/lib/libgtkhtml-1.1.a
/usr/lib/libgtkhtml-1.1.so
/usr/lib/debug/usr/lib/libgtkhtml-2.so.0.0.0.debug
/usr/lib/debug/usr/lib/libgtkhtml-1.1.so.3.0.4.debug
/usr/lib/libgtkhtml-3.1.so
/usr/lib/libgtkhtml-3.1.so.7.1.0
/usr/src/debug/libgtkhtml-2.6.0

--snap--

but unfortunately i monodoc throughs again this error:

--snip--

Unhandled Exception: System.DllNotFoundException: gtkhtml-3.0
in <0x00053> (wrapper managed-to-native) Gtk.HTML:gtk_html_new ()
in <0x00021> Gtk.HTML:.ctor ()
in [0x001aa] (at 
/home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.cs:209) 
Monodoc.Browser:.ctor ()
in [0x00120] (at 
/home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.cs:81) 
Monodoc.Driver:Main (string[])

--snap--

what file is missing?


thx!
webwurst



Am Tue, 11 May 2004 09:48:10 +0200 schrieb RoBiK:

> Hmm, now i see, that you use fedora core2 test 3, i'm not sure if this rpm
> (this one is for RH9) will work for you.. Give it a try. There are no
> packages for fedora, so maybe you must buid this library from source.
> 
> Robert
> 
> -Original Message-
> From: RoBiK [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 11. Mai 2004 09:35
> To: 'Tobias Bradtke'
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Mono-list] Mono Beta1 and Error with Monodoc
> 
> Hi,
> 
> The package thaht you need is "libgtkhtml3.0_4-3.0.10-0.ximian.6.1".
> Look for these files:
> 
> /usr/lib/libgtkhtml-3.0.so.4
> /usr/lib/libgtkhtml-3.0.so.4.0.0
> 
> Robert
> 
> -Original Message-
> From: Tobias Bradtke [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 11. Mai 2004 03:07
> To: [EMAIL PROTECTED]
> Subject: [Mono-list] Mono Beta1 and Error with Monodoc
> 
> hi everyone,
> 
> i know installation-errors are boring, but i don't get it..
> 
> i'm running fedora-core2-test3 and installed mono from here:
> http://www.go-mono.com/archive/beta1/fedora-1-i386/
> 
> 'monodoc --make-index' does work, but just 'monodoc' througs an error:
> 
> --snip--
> 
> Unhandled Exception: System.DllNotFoundException: gtkhtml-3.0 in <0x00053>
> (wrapper managed-to-native) Gtk.HTML:gtk_html_new () in <0x00021>
> Gtk.HTML:.ctor () in [0x001aa] (at
> /home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.cs:20
> 9) Monodoc.Browser:.ctor () in [0x00120] (at
> /home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.cs:81
> ) Monodoc.Driver:Main (string[])
> 
> --snap--
> 
> 'rpm -q gtkhtml3' says: 'gtkhtml3-3.1.12-1' is installed.
> 
> if i search for 'gtkhtml*dll' i get severel locations with
> "gtkhtml-sharp.dll", but none with "gtkhtml.dll" or so..
> 
> what can i do??
> 
> 
> thanks,
> webwurst
>

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


RE: [Mono-list] A couple of Remoting Questions

2004-05-12 Thread Robert Remen
Hi,

1) You do not need a configuration file, but you must somehow configure
the remoting inside your application. You have two options:
- Call RemotingConfiguration.Configure(). You can use null as the
filename parameter. Passing a null reference as the filename parameter
will cause default remoting initialization without requiring the
existence of a configuration file.
Example: "RemotingConfiguration.Configure(null);"
- Call at least ChannelServices.RegisterChannel() passing as a parameter
an instance of channel class (in your case HttpChannel Class). You do
not need to define the port on the client side.
Example: "ChannelServices.RegisterChannel(new HttpChannel());"

2) I have RH9 with mono beta 1 installed. I have run your app for about
30 times (and also my own apps many times in past), but never seen such
a strange behavior... Everything works nice and clean, no asserts, no
left behind processes. I have no idea what's wrong.

3) Here ist the soap specification http://www.w3.org/TR/soap/ and here
http://msdn.microsoft.com/library/en-us/dnsoap/html/understandsoap.asp
an article from microsoft regarding soap (with good examples).

Robert

-Original Message-
From: Jonathan Stowe [mailto:[EMAIL PROTECTED] 
Sent: Montag, 10. Mai 2004 14:21
To: Mono-List
Subject: [Mono-list] A couple of Remoting Questions

I have been playing around with remoting and a couple of things have
come up

I am trying a test based in the example in MS SDK:

Client:

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

namespace RemotingTest
{
  public class Client
  {
public static void Main(string [] args)
{
  RemotingConfiguration.Configure("remoting.config");
  HelloServer obj =
(HelloServer)Activator.GetObject(typeof(RemotingTest.HelloServer),
"http://localhost:8085/Hello";);
  if (obj == null)
  {
 System.Console.WriteLine("Could not locate server");
  }
  else
  {
 string name = "blah";
 if ( args.Length > 0 )
 {
name = args[0];
 }
 Console.WriteLine(obj.Hello(name));
  }
}
  }
}


Server:

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

namespace RemotingTest
{
  public class Server
  {

public static void Main(string [] args) {

  HttpChannel chan = new HttpChannel(8085);
  ChannelServices.RegisterChannel(chan);
 
RemotingConfiguration.RegisterWellKnownServiceType(Type.GetType("Remotin
gTest.HelloServer,Object"), "Hello", WellKnownObjectMode.SingleCall);
  System.Console.WriteLine("Hit  to exit...");
  System.Console.ReadLine();
}
  }
}

Test Class:

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

namespace RemotingTest
{
  public class HelloServer : MarshalByRefObject
  {

public HelloServer()
{
  Console.WriteLine(this.ToString() + " activated");
}

public String Hello(String name)
{
  Console.WriteLine("HelloServer.Hello : {0}", name);
  return String.Format("Hi there {0}", name);
}
  }
}


Firstly, unlike using the MS.NET SDK it will not work unless one loads
the configuration like:


   
  
 
 
 

 
  
   


I was wondering why the difference in behaviour - does windows have the
http channels already registered in some default configuration which
mono doesn't have or is there a difference in behaviour of
ChannelServices.RegisterChannel() in the mono library - I notice that
the registered channels are stored in a static array in the
ChannelServices class so it strikes me that another program is not going
to have access to this - or am I missing something here?  It would be
nice to have an example that worked the same with both mono and the MS
SDK.

Secondly I am getting weird intermittent behaviour from both server and
client code - every once in a while I am getting:

** (process:5787): ERROR (recursed) **: file class.c: line 1272
(mono_class_init): assertion failed: (class) aborting...

from the client code, which appears to hang afterwards - the server
however behaves as expected.  I am unable to reproduce this at will
however.

I also am occasionally getting:

 
** (server.exe:12805): WARNING **: : unref on 38 called when ref was
already 0
 
>From the server after the remote method has been called - again this is
intermittent and not reproducible at will.

It also appears that neither the client or the server are cleaning up
properly as there are parentless processes left behind (which I take to
be threads - but I never found out how to distinguish processes and
threads with 'ps' on Linux).  This is with Beta 1 on Mandrake 9.2 x86.

Finally does anyone know of any documentation regarding the SOAP
messages involved in http remot

[Mono-list] Problem installing mono

2004-05-12 Thread Werner Kratochwil
Hi!

I tried to install mono on my Linux 9.0 system today.
But I got the following dependency error:
Failed dependencies:
mono-posix = 0.91-0.ximian.8.3 is needed by 
mono-core-0.91-0.ximian.8.3

For the other dependencies I installed:

* icu-2.6.1-1.ximian.8.5.i586.rpm
* libicu26-2.6.1-1.ximian.8.5.i586.rpm
I skipped the devel-version, because I thought it would be covered by 
the non-devel-version:
* libicu-devel-2.6.1-1.ximian.8.5.i586.rpm

Then I installed
* mono-core-0.91-0.ximian.8.3.i586.rpm
and I got the above dependency error.
Any ideas?
How do I get this posix module?
I have tried to install older versions of mono before, but never made 
it. Could this cause the problem?

I'd really like to get rid of Microsoft. It sucks.
Nice regards
Werner

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


RE: [Mono-list] Mono Beta1 and Error with Monodoc

2004-05-12 Thread Robert Remen
Hi,

The package thaht you need is "libgtkhtml3.0_4-3.0.10-0.ximian.6.1".
Look for these files:

/usr/lib/libgtkhtml-3.0.so.4
/usr/lib/libgtkhtml-3.0.so.4.0.0

Robert

-Original Message-
From: Tobias Bradtke [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 11. Mai 2004 03:07
To: [EMAIL PROTECTED]
Subject: [Mono-list] Mono Beta1 and Error with Monodoc

hi everyone,

i know installation-errors are boring, but i don't get it..

i'm running fedora-core2-test3 and installed mono from here:
http://www.go-mono.com/archive/beta1/fedora-1-i386/

'monodoc --make-index' does work, but just 'monodoc' througs an error:

--snip--

Unhandled Exception: System.DllNotFoundException: gtkhtml-3.0 in
<0x00053> (wrapper managed-to-native) Gtk.HTML:gtk_html_new () in
<0x00021> Gtk.HTML:.ctor () in [0x001aa] (at
/home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.c
s:209) Monodoc.Browser:.ctor () in [0x00120] (at
/home/duncan/conf/mono-conf/monodoc/BUILD/monodoc-0.15/browser/browser.c
s:81) Monodoc.Driver:Main (string[])

--snap--

'rpm -q gtkhtml3' says: 'gtkhtml3-3.1.12-1' is installed.

if i search for 'gtkhtml*dll' i get severel locations with
"gtkhtml-sharp.dll", but none with "gtkhtml.dll" or so..

what can i do??


thanks,
webwurst

___
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


RE: [Mono-list] New Beta1 Win32 installer

2004-05-12 Thread Dave Parsons
Hi 

That works a treat! Thanks.

Dave

-Original Message-
From: Gonzalo Paniagua Javier [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2004 05:08
To: Monkey Business; Mono Development; Mono Announce
Subject: [Mono-list] New Beta1 Win32 installer


Hola!

I just uploaded a new Win32 installer that fixes lots of problem
encountered in the previous ones:
  * Updated runtime to fix GAC path issues.
  * Generate working .bat for cmd.exe and shell scripts for cygwin.
  * Includes MSVCR70.dll.
  * CVS monop to fix assembly loading errors.

You can download it directly from:

http://www.go-mono.com/archive/beta1/windows/mono-Beta1-win32-2.exe

or through the mono download page at:

http://www.go-mono.com/download.html

It does not include 2.0 preview compiler and assemblies, but I plan on
doing more Win32 installer releases based on CVS including them.

Special thanks go to Urs Muff for helping me while testing.

Enjoy!

-Gonzalo


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

___
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com


Please note: This e-mail and its attachments contain only the opinions of the sender 
and do not necessarily reflect the policy(s) of Armstrong Laing Plc in general.

Confidentiality: This e-mail and its attachments are intended for the above named only 
and may be confidential.  If they have come to you in error you must take no action 
based on them, nor must you copy or show them to anyone; please reply to this e-mail 
highlighting the error and then delete it.

Security Warning: Please note that this e-mail has been created in the
knowledge that Internet e-mail is not a 100% secure communications medium. We advise 
that you understand and observe this lack of security when e-mailing us.

Viruses: This e-mail and its attachments have been scanned for viruses but we cannot 
guarantee that they are virus free.  We advise that in keeping with good computing 
practice the recipient should ensure that they are actually virus free.
___
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com

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