Click here to Skip to main content
15,897,704 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Generalwho can use or disassemble magiclibrary.dll Pin
yzs18-Mar-04 0:05
yzs18-Mar-04 0:05 
GeneralRe: who can use or disassemble magiclibrary.dll Pin
ian mariano18-Mar-04 4:31
ian mariano18-Mar-04 4:31 
GeneralRe: who can use or disassemble magiclibrary.dll Pin
ian mariano18-Mar-04 4:32
ian mariano18-Mar-04 4:32 
GeneralSocket type/protocol question Pin
harningt17-Mar-04 16:44
harningt17-Mar-04 16:44 
QuestionHow to set "Special Build" attribute in Assembly? Pin
Noodnik15-Mar-04 19:04
Noodnik15-Mar-04 19:04 
AnswerRe: How to set "Special Build" attribute in Assembly? Pin
Mike Dimmick16-Mar-04 1:56
Mike Dimmick16-Mar-04 1:56 
QuestionChannelServices out of scope exception? Pin
LilyofValley15-Mar-04 19:00
sussLilyofValley15-Mar-04 19:00 
QuestionSystem-wide singleton? Pin
NameOfTheDragon15-Mar-04 0:12
NameOfTheDragon15-Mar-04 0:12 
Greetings CodeProject Gurus. I have an interesting problem that I hope you can advise me on.

I need to design an assembly thatacts as a hardware interface for something. The assembly will attach to a single Comm port (I'm using JH.CommBase for that). The assembly must expose three different interfaces. Each interface may be accessed by a different application, through native .NET or perhaps via COM Interop at run-time.

So here is my problem: when the three different applications launch and create instances of the interfaces, three seperate copies of my assembly get loaded. Each instance tries to open the single Comm port and naturally only two of them succeed.

Clearly, I have an architectural design issue here. I wonder how you guys would deal with this issue? Is there a way to design an assembly that implements the Singleton pattern, but _systemwide_ not just _application wide_? Or maybe a radically different solution?



Regards,
Tim.
AnswerRe: System-wide singleton? Pin
Colin Angus Mackay15-Mar-04 0:32
Colin Angus Mackay15-Mar-04 0:32 
GeneralRe: System-wide singleton? Pin
NameOfTheDragon15-Mar-04 1:07
NameOfTheDragon15-Mar-04 1:07 
GeneralRe: System-wide singleton? Pin
Philip Fitzsimons15-Mar-04 2:43
Philip Fitzsimons15-Mar-04 2:43 
AnswerRe: System-wide singleton? Pin
Curi0us_George22-Mar-04 14:17
Curi0us_George22-Mar-04 14:17 
General.Net Remoting Pin
Daniel Popa15-Mar-04 0:08
Daniel Popa15-Mar-04 0:08 
GeneralRe: .Net Remoting Pin
Philip Fitzsimons15-Mar-04 2:45
Philip Fitzsimons15-Mar-04 2:45 
Generalget your email i'll send you a c# remoting pdf book Pin
yzs18-Mar-04 0:24
yzs18-Mar-04 0:24 
GeneralDatabinding drives me crazy Pin
Jasper van Rooijen15-Mar-04 0:07
Jasper van Rooijen15-Mar-04 0:07 
GeneralRe: Databinding drives me crazy Pin
cosminadrianpopescu21-Mar-04 21:13
cosminadrianpopescu21-Mar-04 21:13 
General.NET Assembly is MFC Pin
Tarundeep Singh Kalra11-Mar-04 17:33
Tarundeep Singh Kalra11-Mar-04 17:33 
GeneralRe: .NET Assembly is MFC Pin
ian mariano11-Mar-04 18:14
ian mariano11-Mar-04 18:14 
GeneralRe: .NET Assembly is MFC Pin
Tarundeep Singh Kalra11-Mar-04 18:55
Tarundeep Singh Kalra11-Mar-04 18:55 
GeneralTreeviewnode Highlighting Pin
Anonymous11-Mar-04 14:17
Anonymous11-Mar-04 14:17 
GeneralSyntax highlghting editor Pin
Ryan Roberts10-Mar-04 23:49
Ryan Roberts10-Mar-04 23:49 
GeneralRe: Syntax highlghting editor Pin
Werdna12-Mar-04 4:40
Werdna12-Mar-04 4:40 
GeneralRe: Syntax highlghting editor Pin
Ryan Roberts12-Mar-04 4:55
Ryan Roberts12-Mar-04 4:55 
QuestionC# for Mac and Linux ? Pin
Matthew Hazlett10-Mar-04 11:13
Matthew Hazlett10-Mar-04 11:13 

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.