Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

 
GeneralRe: regex problem Pin
User 66588-Sep-05 11:37
User 66588-Sep-05 11:37 
Question.cpp and .h files Pin
DaveC4269138-Sep-05 8:53
DaveC4269138-Sep-05 8:53 
AnswerRe: .cpp and .h files Pin
Alex Korchemniy8-Sep-05 9:09
Alex Korchemniy8-Sep-05 9:09 
GeneralRe: .cpp and .h files Pin
DaveC4269138-Sep-05 10:04
DaveC4269138-Sep-05 10:04 
AnswerRe: .cpp and .h files Pin
Christian Graus8-Sep-05 12:29
protectorChristian Graus8-Sep-05 12:29 
QuestionRemote Desktop like component Pin
Steve McLenithan8-Sep-05 8:03
Steve McLenithan8-Sep-05 8:03 
AnswerRe: Remote Desktop like component Pin
Alex Korchemniy8-Sep-05 8:49
Alex Korchemniy8-Sep-05 8:49 
Questionmultiple instances of the same dll using appdomain Pin
Peter Madsen8-Sep-05 6:51
Peter Madsen8-Sep-05 6:51 
Hello,

I'm looking for a way to load multiple instances of the same dll into one c# application.

The facts are:
1) The assembly is third-party, so recompiling/modification is not an option!!!
2) The assembly is programmed in C.
3) It is to be used for COM-port communication.
4) Different instances of the assembly is needed for binding separate COM-ports.
5) Only one port can be bound per loaded dll.

I've read a solution on this site on how to dynamically load dll's from C# by using the win32 LoadLibrary/GetProcAddress etc. Pretty cool though, but it would involve the ugliness of renaming the original dll for every new instance I need and a somewhat cumbersome native generic invoke method.

I'm a basically looking for a way to load the same dll into different AppDomains without it being domain-neutral. Is there a way to ensure that a dll (and its dependency closure) is NOT to be shared among the different AppDomains (to the effect that each AppDomain has its own instance of the assembly)?

Any suggestions would be appriciated.

AnswerRe: multiple instances of the same dll using appdomain Pin
Andy Brummer8-Sep-05 19:12
sitebuilderAndy Brummer8-Sep-05 19:12 
QuestionSourceSafe with C# Standard Pin
BazM8-Sep-05 6:33
BazM8-Sep-05 6:33 
AnswerRe: SourceSafe with C# Standard Pin
Alex Korchemniy8-Sep-05 9:14
Alex Korchemniy8-Sep-05 9:14 
GeneralRe: SourceSafe with C# Standard Pin
BazM8-Sep-05 9:43
BazM8-Sep-05 9:43 
GeneralRe: SourceSafe with C# Standard Pin
Alex Korchemniy8-Sep-05 10:05
Alex Korchemniy8-Sep-05 10:05 
Question.NET Remoting question Pin
Asad Hussain8-Sep-05 6:02
Asad Hussain8-Sep-05 6:02 
AnswerRe: .NET Remoting question Pin
S. Senthil Kumar8-Sep-05 7:27
S. Senthil Kumar8-Sep-05 7:27 
QuestionWinforms Datagrid New Row Pin
airbus3808-Sep-05 5:57
airbus3808-Sep-05 5:57 
AnswerRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 6:12
miah alom8-Sep-05 6:12 
GeneralRe: Winforms Datagrid New Row Pin
airbus3808-Sep-05 6:46
airbus3808-Sep-05 6:46 
GeneralRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 8:04
miah alom8-Sep-05 8:04 
GeneralRe: Winforms Datagrid New Row Pin
airbus3808-Sep-05 9:02
airbus3808-Sep-05 9:02 
GeneralRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 10:23
miah alom8-Sep-05 10:23 
GeneralRe: Winforms Datagrid New Row Pin
airbus3808-Sep-05 9:03
airbus3808-Sep-05 9:03 
GeneralRe: Winforms Datagrid New Row Pin
miah alom8-Sep-05 10:24
miah alom8-Sep-05 10:24 
QuestionC++ to C# Wrapper with Templates Pin
mxb1218-Sep-05 5:42
mxb1218-Sep-05 5:42 
AnswerRe: C++ to C# Wrapper with Templates Pin
John Fisher8-Sep-05 7:34
John Fisher8-Sep-05 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.