Click here to Skip to main content
16,013,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 3:34
protectorHeath Stewart20-May-04 3:34 
GeneralRe: A general question about objects Pin
Grimolfr20-May-04 5:09
Grimolfr20-May-04 5:09 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 5:25
protectorHeath Stewart20-May-04 5:25 
GeneralRe: A general question about objects Pin
Grimolfr20-May-04 5:52
Grimolfr20-May-04 5:52 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 5:57
protectorHeath Stewart20-May-04 5:57 
GeneralOne more simple question if someone have time. Pin
Christer Claesson20-May-04 5:18
Christer Claesson20-May-04 5:18 
Generaldll that is seen by multiple exe's Pin
jspano20-May-04 2:21
jspano20-May-04 2:21 
GeneralRe: dll that is seen by multiple exe's Pin
Heath Stewart20-May-04 3:01
protectorHeath Stewart20-May-04 3:01 
DLLs - be they native libraries or .NET assemblies - are always loaded into the process space. This is how execution works.

If you want a singleton pattern in .NET, you can use a well-known singleton object using .NET Remoting. A good place to host this would be in a Windows Service (see ServiceBase).

If your applications aren't all .NET applications, this is definitely a problem.

One thing you might consider is writing a COM+ object with singleton activation. This would make the object available to .NET and native applications, although using it in native applications is a little more difficult. You can read more about COM+ - including how to use it with the .NET Framework - by reading COM+ (Component Services)[^] in the MSDN Library online. You should also read Writing Serviced Components[^] in the .NET Framework and follow the links to class documentation to learn more. You could write this component service in .NET in such a way that it would work for both managed and unmanaged (native) applications and when those latter applications are converted to .NET (if they will be) switch over to .NET Remoting if you like (you would have to, though - it's just a little easier to deploy). This means abstracting the actual licensing code away from the component so that it could be used by either a serviced component or a .NET Remoting object.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: dll that is seen by multiple exe's Pin
jspano20-May-04 14:31
jspano20-May-04 14:31 
GeneralXmlSerializer Pin
Sean Rock20-May-04 1:45
Sean Rock20-May-04 1:45 
GeneralRe: XmlSerializer Pin
Heath Stewart20-May-04 2:54
protectorHeath Stewart20-May-04 2:54 
GeneralRe: XmlSerializer Pin
Sean Rock20-May-04 3:02
Sean Rock20-May-04 3:02 
GeneralRe: XmlSerializer Pin
Heath Stewart20-May-04 3:26
protectorHeath Stewart20-May-04 3:26 
GeneralRe: XmlSerializer Pin
Sean Rock20-May-04 3:37
Sean Rock20-May-04 3:37 
GeneralRe: XmlSerializer Pin
Dave Kreskowiak20-May-04 3:48
mveDave Kreskowiak20-May-04 3:48 
GeneralRe: XmlSerializer Pin
Sean Rock20-May-04 3:51
Sean Rock20-May-04 3:51 
Generalconvert a field to checkbox sql reporting services Pin
robmays20-May-04 1:11
robmays20-May-04 1:11 
GeneralDBase file access in C# Pin
IJay20-May-04 1:04
IJay20-May-04 1:04 
GeneralRe: DBase file access in C# Pin
Anthony_Yio20-May-04 1:11
Anthony_Yio20-May-04 1:11 
GeneralRe: DBase file access in C# Pin
sreejith ss nair20-May-04 2:18
sreejith ss nair20-May-04 2:18 
GeneralRe: DBase file access in C# Pin
IJay20-May-04 2:20
IJay20-May-04 2:20 
GeneralRe: DBase file access in C# Pin
Heath Stewart20-May-04 2:50
protectorHeath Stewart20-May-04 2:50 
GeneralRe: DBase file access in C# Pin
Anthony_Yio20-May-04 15:43
Anthony_Yio20-May-04 15:43 
GeneralRe: DBase file access in C# Pin
IJay20-May-04 22:11
IJay20-May-04 22:11 
GeneralOpening any file Pin
Dylan van Heerden19-May-04 23:38
Dylan van Heerden19-May-04 23:38 

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.