473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Loading two separate instance of the same assembly

ZaX
Good day folks,

I'm working with a third-party transactionnal SDK, packaged into a few DLL.

In a particular scenario, I need to have two sessions opened on the
infrastructure I access thru the SDK, and I need programmatical control over
the two sessions, so I can make changes in one session depending on the
information I receive from the second session and so on.

However, according to the third-party SDK support staff, a flaw in their
architecture prevents me from running two sessions on a single instance of
their assembly... So they suggested me to run two instances of my program
instead. This works.

But the code need to be extremely performant, so using System.Remoting to
communicate between the two instances of an application would be the least
acceptable option.

So my idea was to try to link to two different instances of the assembly in
some way... Any idea on how I would do that? Should I use system.reflection
to instantiate my types?

Other suggestions, comments?

Thanks!

ZaX
Nov 21 '05 #1
2 1271
On 2005-07-01, ZaX <th**********@email.com> wrote:
Good day folks,

I'm working with a third-party transactionnal SDK, packaged into a few DLL.

In a particular scenario, I need to have two sessions opened on the
infrastructure I access thru the SDK, and I need programmatical control over
the two sessions, so I can make changes in one session depending on the
information I receive from the second session and so on.

However, according to the third-party SDK support staff, a flaw in their
architecture prevents me from running two sessions on a single instance of
their assembly... So they suggested me to run two instances of my program
instead. This works.

But the code need to be extremely performant, so using System.Remoting to
communicate between the two instances of an application would be the least
acceptable option.

So my idea was to try to link to two different instances of the assembly in
some way... Any idea on how I would do that? Should I use system.reflection
to instantiate my types?

Other suggestions, comments?

Thanks!

ZaX


ZaX...

If I understand what your saying you want to load the same assembly
twice in the same process. Well, you can do that using appdomains, but
they are just going to use remoting to communicate across appdomain
boundries. So...
--
Tom Shelton [MVP]
Nov 21 '05 #2
ZaX

"Tom Shelton" <ts******@YOUKNOWTHEDRILLcomcast.net> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
On 2005-07-01, ZaX <th**********@email.com> wrote:
Good day folks,

I'm working with a third-party transactionnal SDK, packaged into a few DLL.
In a particular scenario, I need to have two sessions opened on the
infrastructure I access thru the SDK, and I need programmatical control over the two sessions, so I can make changes in one session depending on the
information I receive from the second session and so on.

However, according to the third-party SDK support staff, a flaw in their
architecture prevents me from running two sessions on a single instance of their assembly... So they suggested me to run two instances of my program instead. This works.

But the code need to be extremely performant, so using System.Remoting to communicate between the two instances of an application would be the least acceptable option.

So my idea was to try to link to two different instances of the assembly in some way... Any idea on how I would do that? Should I use system.reflection to instantiate my types?

Other suggestions, comments?

Thanks!

ZaX


ZaX...

If I understand what your saying you want to load the same assembly
twice in the same process. Well, you can do that using appdomains, but
they are just going to use remoting to communicate across appdomain
boundries. So...
--
Tom Shelton [MVP]


Tom,

Exactly what I'm trying to do...

Thanks for your idea... Can you please provide me an idea on how to use
AppDomains?

I'll try that and I'll let you know if performance is acceptable.

Thanks a lot!

ZaX
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Nick Malik | last post by:
reposting to a wider audience "Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message news:WYONc.203854$XM6.119642@attbi_s53... > My turn to ask a question > > I am working on a plug-in...
2
by: Foehammer | last post by:
Hello, I'm trying to load an assembly dynamically using an app domain. This is a proof-of-concept for a larger project, so please excuse the lame class names. TestLib is the dll where all the...
4
by: Nick Malik | last post by:
My turn to ask a question I am working on a plug-in for Sharepoint that will allow a developer to add workflow rules. One of the rules will inform the adapter that it should load a DLL that the...
0
by: Philip | last post by:
I have developed a MC++ business component (named PWSNetBridge.dll) which utilizes an exported class resident within a separate native DLL (named PWSWinBridge.dll). This exported class is made...
6
by: Pete Davis | last post by:
I'm confused about what precisely the limitations are on loading plugins in separate app domains. In all my previous apps that supported plugins, I've loaded them into the same domain as the app,...
4
by: BrianS | last post by:
What is the best strategy for dynamic loading private assemblies in asp.net? I understand, and have confirmed, that any dll placed in the app's /bin dir will get loaded on startup. This is not...
0
by: Fred | last post by:
Hello, I am using a separate app domain to load an assembly from either disk or cache, create an instance of it and run a method. I then call dispose on the created instance and unload the app...
4
by: =?Utf-8?B?SmFu?= | last post by:
I have a .NET 2.0 application divided in two assemblies; the exe and a dll. The application generates a plugin-dll which is then loaded in a separate AppDomain (along with a second instance of my...
2
by: Smithers | last post by:
Using 3.5, I am stuck in attempting to: 1. Dynamically load an assembly 2. Instantiate a class from that assembly (the client code is in a different namespace than the namespace of the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.