Re: call .net 2.0 assemblies from .net 1.1
- From: "Richard Grimes" <richardg@xxxxxxxx>
- Date: Thu, 1 Dec 2005 18:30:01 -0000
Perecli Manole wrote:
> Well, you can call .NET 1.1 and 2.0 assemblies from VB 6.0 or any COM
> framework which is much older. It only stands to reason that there
No. It does not stand to reason.
> should be a way to call .NET 2.0 assemblies from .NET 1.1 which is
> much newer and much closer in design than COM is. Maybe some kind of
> wrapper is needed. Anyone have any advice on how to do this?
Well .NET 2.0 code is not backward compatible with 1.1, so I would not
want to host different versions of the runtim,e in the same process. The
'solution' of using a new appdomain is also dodgy since all appdomains
share the same managed heap. Also threads in a managed process are free
to execute in any app domain - yes, the data is marshalled and the
context is applied, but the *same* thread is used. Threads in .NET
version 2.0 are different to version 1.1, so there is an
incompattibility there. Cowboy's suggestion is best - put the .NET code
into a separate process and access with some interprocess mechanism.
Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm
.
- Follow-Ups:
- Re: call .net 2.0 assemblies from .net 1.1
- From: Perecli Manole
- Re: call .net 2.0 assemblies from .net 1.1
- References:
- call .net 2.0 assemblies from .net 1.1
- From: Perecli Manole
- Re: call .net 2.0 assemblies from .net 1.1
- From: chris martin
- Re: call .net 2.0 assemblies from .net 1.1
- From: Perecli Manole
- call .net 2.0 assemblies from .net 1.1
- Prev by Date: Re: Extended ASCII Encoding in .NET
- Next by Date: Re: code security?
- Previous by thread: Re: call .net 2.0 assemblies from .net 1.1
- Next by thread: Re: call .net 2.0 assemblies from .net 1.1
- Index(es):
Relevant Pages
|