Click here to Skip to main content
15,918,125 members
Home / Discussions / C#
   

C#

 
GeneralRe: Catching the press of the Power Button Pin
Dmitriy Sinyagin2-Jun-05 14:24
Dmitriy Sinyagin2-Jun-05 14:24 
GeneralRe: Catching the press of the Power Button Pin
Christian Graus2-Jun-05 14:28
protectorChristian Graus2-Jun-05 14:28 
GeneralRe: Catching the press of the Power Button Pin
Dmitriy Sinyagin2-Jun-05 14:33
Dmitriy Sinyagin2-Jun-05 14:33 
GeneralTreeView /Spy++/ Handle Pin
Abhishek Karnik2-Jun-05 10:51
Abhishek Karnik2-Jun-05 10:51 
GeneralRe: TreeView /Spy++/ Handle Pin
mav.northwind2-Jun-05 22:13
mav.northwind2-Jun-05 22:13 
GeneralRe: TreeView /Spy++/ Handle Pin
Abhishek Karnik5-Jun-05 10:41
Abhishek Karnik5-Jun-05 10:41 
GeneralC# .NET Remoting problem Pin
Opa Knack2-Jun-05 9:38
Opa Knack2-Jun-05 9:38 
GeneralRe: C# .NET Remoting problem Pin
mav.northwind2-Jun-05 20:29
mav.northwind2-Jun-05 20:29 
Hi!

You're using an object that's marshalled explicitely, so it's similar to a singleton, but not exactly the same (a singleton doesn't exist before the first client requests one, for example).

For your ServerObject not to die you do have to override InitializeLifetimeService(), but you can skip all that ILease stuff and just return null.

Another important point is to watch the scope of your ServerObject sO.
If you declare it within your startup routine, it'll fall out of scope when startup is finished and will get garbage collected.
So it should be a member of a class you keep alive as long as your server application is running.

Regards,
mav
GeneralRe: C# .NET Remoting problem Pin
Opa Knack2-Jun-05 21:59
Opa Knack2-Jun-05 21:59 
GeneralRe: C# .NET Remoting problem Pin
mav.northwind2-Jun-05 22:07
mav.northwind2-Jun-05 22:07 
GeneralTreeView Pin
Gary Kirkham2-Jun-05 7:52
Gary Kirkham2-Jun-05 7:52 
GeneralRe: TreeView Pin
Christian Graus2-Jun-05 10:25
protectorChristian Graus2-Jun-05 10:25 
GeneralRe: TreeView Pin
Gary Kirkham2-Jun-05 12:33
Gary Kirkham2-Jun-05 12:33 
GeneralRe: TreeView Pin
Christian Graus2-Jun-05 12:42
protectorChristian Graus2-Jun-05 12:42 
GeneralRe: TreeView Pin
Luis Alonso Ramos2-Jun-05 13:00
Luis Alonso Ramos2-Jun-05 13:00 
GeneralRe: TreeView Pin
Christian Graus2-Jun-05 13:03
protectorChristian Graus2-Jun-05 13:03 
GeneralRe: TreeView Pin
Luis Alonso Ramos2-Jun-05 13:22
Luis Alonso Ramos2-Jun-05 13:22 
GeneralRe: TreeView Pin
Christian Graus2-Jun-05 13:25
protectorChristian Graus2-Jun-05 13:25 
QuestionWhat happens when the user leaves? Pin
Sled Dog2-Jun-05 7:14
Sled Dog2-Jun-05 7:14 
AnswerRe: What happens when the user leaves? Pin
Dave Kreskowiak2-Jun-05 9:31
mveDave Kreskowiak2-Jun-05 9:31 
GeneralRe: What happens when the user leaves? Pin
Anonymous2-Jun-05 12:31
Anonymous2-Jun-05 12:31 
GeneralRe: What happens when the user leaves? Pin
Dave Kreskowiak2-Jun-05 16:06
mveDave Kreskowiak2-Jun-05 16:06 
GeneralInteroperability when using Microsoft UIP Pin
Sridhar Subramanian2-Jun-05 6:53
Sridhar Subramanian2-Jun-05 6:53 
Generalmy URL is messed up Pin
Sled Dog2-Jun-05 6:31
Sled Dog2-Jun-05 6:31 
GeneralRe: my URL is messed up Pin
TridentWhite2-Jun-05 6:53
TridentWhite2-Jun-05 6:53 

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.