[Mono-list] Start and call into mono VM from C/C++ ?

2006-10-30 Thread Goldstein, Nachum (Jonathan)
Title: Start and call into mono VM from C/C++ ?







I would like to call into the mono VM from a C/C++ program.

I searched the mono site and google, and found only a technique to call C/C++ from C#.

I want to do the reverse. Something like:


int main(int argc, char** argv) {

 create mono VM

 create a C# object instance

 call methods on the instance
}


(I know I can do this with java.)


Any ideas? Thanks.


***This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message.***
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] C# COM server in mono?

2006-10-30 Thread Goldstein, Nachum (Jonathan)



By 'hosting mono' do you mean embedding it in a C/C++ COM 
server?


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Jon 
ChambersSent: Monday, October 30, 2006 16:57To: 
mono-list@lists.ximian.comSubject: Re: [Mono-list] C# COM server in 
mono?
As lupus said, I am working in this area right now and cleaning up a 
patch. However, what I currently have does not support exactly what you are 
describing. If you run a managed app or host the mono runtime you will be able 
to expose managed objects to unmanaged code as a COM object. 
 However, I currently have no plans of 
exposing managed objects as COM servers in a standalone manner (i.e. by calling 
CoCreateInstance). Basically, I consider that a luxury not a requirement since 
mono can be easily hosted (and it raises a few other questions like which 
version of mono to use, what library to expose the COM entry points in, registry 
entries, etc). I do think you could easily host mono and expose your own version 
of CoCreateInstance to do what you need, if necessary. 
Thanks,Jonathan
On 10/30/06, Paolo 
Molaro [EMAIL PROTECTED] 
wrote:
On 
  10/29/06 Goldstein, Nachum (Jonathan) wrote: Does anyone have 
  step-by-step instructions on how to build a COM server in mono, that 
  can be installed on a Windows machine?The current mono only supports 
  using COM objects, not exposing managed code as a COM server, AFAIK. 
  Jonathan Chambers is working on what youneed and he should have a patch 
  ready 
  shortly.lupus---[EMAIL PROTECTED] 
  debian/rules[EMAIL PROTECTED] 
  Monkeys do it better___ 
  Mono-list maillist-Mono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-list***This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message.***
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] C# COM server in mono?

2006-10-29 Thread Goldstein, Nachum (Jonathan)
Title: C# COM server in mono?







Does anyone have step-by-step instructions on how to build a COM server in mono, that can be installed on a Windows machine?


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Cannot run monodoc on windows

2006-10-29 Thread Goldstein, Nachum (Jonathan)
Title: Cannot run monodoc on windows






Please help. Thanks.


I have mono 1.1.18 installed on Windows 2K.


monodoc --make-index


Produces the following output:


PATH=C:\PROGRA~1\MONO-1~1.18\bin;C:\PROGRA~1\MONO-1~1.18\bin;c:\WINNT;c:\WINNT\System32

Root:

Leaf: Assemblies

Leaf: Images

Leaf: Classes

Leaf: Code Generation

Leaf: Debugging API

Leaf: Decimal Representation

Leaf: Application Domains

Leaf: Dynamic Code Generation

Leaf: Exceptions

Leaf: GC Handles

Leaf: Garbage Collection

Leaf: Embedding Mono

Leaf: Internals

Leaf: Interpreter

Leaf: Just in Time Compiler

Leaf: Marshalling

Leaf: Metadata access

Leaf: Methods

Leaf: Objects

Leaf: Profiler

Leaf: Reflection

Leaf: Strings

Leaf: Threading API

Leaf: Tracing

Leaf: JIT Counters

Leaf: Types

Leaf: Common Types

Leaf: Unsorted

Leaf: Utility Functions

Leaf: VM calls

Leaf: Security API calls

Leaf: Portable Windows Layer


Unhandled Exception: System.DllNotFoundException: libc.so.6

 at (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int)

 at Monodoc.RootTree.MakeIndex () [0x0]

 at Monodoc.Driver.Main (System.String[] args) [0x0]


***This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message.***
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Cannot run monodoc on windows

2006-10-29 Thread Goldstein, Nachum (Jonathan)
I did install from the official windows installer.

After some more investigation, it seems to me that the etc/mono/config
file (attached) might be incorrect for the windows install.

It maps libc to libc.so.6, because libc.dll does not exist under the
mono root, nor does it exist under my cygwin root.


-Original Message-
From: Jonathan Pryor [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 29, 2006 23:04
To: Rafael Ferreira
Cc: Goldstein, Nachum (Jonathan); mono-list@lists.ximian.com
Subject: Re: [Mono-list] Cannot run monodoc on windows

On Sun, 2006-10-29 at 10:24 -0700, Rafael Ferreira wrote:
 it looks like your installation is corrupted (libc cannot be found). 
 Did you compile it from source or did you use of the windows 
 installers? I would suggest reinstalling from one of the bundled 
 windows releases and trying again.

Take a closer look at that callstack:

  Unhandled Exception: System.DllNotFoundException: libc.so.6 
at (wrapper managed-to-native) Monodoc.RootTree:chmod (string,int)

at Monodoc.RootTree.MakeIndex () [0x0] 
at Monodoc.Driver.Main (System.String[] args) [0x0]

It's failing because monodoc is trying to invoke chmod(2), which doesn't
exist on windows (except through cygwin.dll, but that doesn't count).

The obvious answer is that monodoc is not currently portable to Windows.
I don't know how much work it would take to make it portable.

 - Jon


***
This email message and any attachments thereto are intended only for use by the 
addressee(s) named above, and may contain legally privileged and/or 
confidential information. If the reader of this message is not the intended 
recipient, or the employee or agent responsible to deliver it to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please immediately notify the [EMAIL PROTECTED] and 
destroy the original message.
***


config
Description: config
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Question re: mono app deployment on Windows

2006-10-24 Thread Goldstein, Nachum (Jonathan)
Thanks. I will try mkbundle.

http://www.mono-project.com/Guide:Running_Mono_Applications 
has: Bundles (Linux only)

-Original Message-
From: Robert Jordan [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 23, 2006 17:59
To: Mono-list@lists.ximian.com
Subject: Re: [Mono-list] Question re: mono app deployment on Windows

Goldstein, Nachum (Jonathan) wrote:
 I searched all the available documentation, and the only deployment 
 instructions I find are:
 
   1. install mono on the target host
   2. use mkbundle
 
 1 is unacceptable - for the same reasons that we cannot force an 
 installation .NET.
 
 2 is listed in the documentation as being available only on linux.

Mkbundle works on Windows. Where did you read it doesn't?

 So would someone please answer the following:
 
 1. What is the minimum runtime file-set required in order to run a 
 mono app on a clean host?

Your assemblies, their referenced system assemblies and all DLLs
installed into Mono's bin directory.

Robert

***
This email message and any attachments thereto are intended only for use by the 
addressee(s) named above, and may contain legally privileged and/or 
confidential information. If the reader of this message is not the intended 
recipient, or the employee or agent responsible to deliver it to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please immediately notify the [EMAIL PROTECTED] and 
destroy the original message.
***
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Question re: mono app deployment on Windows

2006-10-23 Thread Goldstein, Nachum (Jonathan)
Title: Question re: mono app deployment on Windows







For a particular customer, I want to deploy an existing C# app to Windows XP hosts. This deployment is to occur via the web, and it must occur quickly. The size of the compiled app assembly is several hundred Kb. All required classes are known at compile-time.

I cannot force the end-user to install .NET - it will take too long.

Microsoft has confirmed that .NET was not bundled with XP, so I cannot rely on it already being there.


Hence I am investigating mono. I want to use it to compile the C#, and then deploy something less bulky than .NET in order to run on the end-user hosts.

I searched all the available documentation, and the only deployment instructions I find are:


 1. install mono on the target host

 2. use mkbundle


1 is unacceptable - for the same reasons that we cannot force an installation .NET.


2 is listed in the documentation as being available only on linux.


So would someone please answer the following:


1. What is the minimum runtime file-set required in order to run a mono app on a clean host?

2. Can mkbundle be used for a windows target?


Thank you in advance for any assistance offered.


***This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message.***
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list