using dll with C# asp.net application

T

Tony Johansson

Hello!

Assume I have four C# asp.net application running on the same computer.

These four C# asp.net application is using two dll named a.dll and b.dll

Assume also that these four C# asp.net application can run at the same time.

Can these four C# asp.net application cause any problem when using the two
dll at the same time.

If this can cause any problem what can be done about it ?

//Tony
 
V

vvnraman

Hello Tony
There should be no problem if the shared dlls are registered with
windows.
That is the whole point of a dll that it has a common functionality
which can
be shared amongst application.

Regards Prateek.
 
T

Tony Johansson

Hello!

In this case the two dll is written in C++(MFC).

We assume that the MFC C++ dll is causing problem when four C# asp.net
applications is using it at the same time.

The two dll is built using single-treaded

What can I do to let four C# asp.net application to use the two MFC C++ dll
at the same time ?

//Tony
 
J

Jesse Houwing

Hello Tony,

Technically there is no problem using one dll from several applications at
the same time. They will be loaded multiple time and will have their own
state to worry about. If you however use shared memory, or a common file
location or named pipes or something which is shared thoughout these different
applications, then you'll have to make sure these dll's are correctly written,
are able to cope with multithreaded operations and such.

If that is not in place you could write a wrapper dll in C# using kernel
mutexes, but that would probably give you a great number of headaches trying
to keep these four apps in sync.

Could you elaborate more on the inner workings of these dll's and their purpose?
maybe then we could discuss viable alternatives.

Jesse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top