Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Disable controls without highliting Pin
fracalifa15-Dec-04 22:48
fracalifa15-Dec-04 22:48 
GeneralRe: Disable controls without highliting Pin
Jay Shankar16-Dec-04 14:17
Jay Shankar16-Dec-04 14:17 
Generalpropagating datagrid changes in multiple tables Pin
Rashid_Mehmood15-Dec-04 20:31
Rashid_Mehmood15-Dec-04 20:31 
GeneralRe: propagating datagrid changes in multiple tables Pin
Heath Stewart15-Dec-04 22:41
protectorHeath Stewart15-Dec-04 22:41 
QuestionHow to disconnect remoting server properly? Pin
kosjanne15-Dec-04 20:28
kosjanne15-Dec-04 20:28 
AnswerRe: How to disconnect remoting server properly? Pin
Heath Stewart15-Dec-04 22:35
protectorHeath Stewart15-Dec-04 22:35 
GeneralRe: How to disconnect remoting server properly? Pin
kosjanne15-Dec-04 23:04
kosjanne15-Dec-04 23:04 
GeneralRe: How to disconnect remoting server properly? Pin
Heath Stewart15-Dec-04 23:12
protectorHeath Stewart15-Dec-04 23:12 
Re-instantiating it creates a new instance and assigns that instance to the field ("member variable" as you called it, which is incorrect, BTW). The old field - if nothing else references it - will be finalized (destroyed) eventually, but there's no garuantee when). Don't re-instantiate it.

Actually, you should consider using .config files to configure remoting. If you ever need to change properties, a server address, or the remoting object base location with how you're doing it now, you would have to change your code, re-compile, and test it all over again. If you use .config files the RemotingConfiguration.Configure method you get everything you did without the hastle and in a way that you can change just by editing the .config file (an XML file) and re-starting the application. If you implement two different AppDomains with one watching for changes to the file, you can take-down the other AppDomain that hosts the remoting object and re-start it. This is basically how ASP.NET works (when you edit Web.config the ASP.NET web application is reloaded, or all ASP.NET web applications are reloaded if you edit the machine.config or the virtual host's root Web.config file).

I recommend picking up a good book on Remoting, like Microsoft .NET Remoting[^] (for beginners and intermediate developers) from MS Press and/or Advanced .NET Remoting[^] from Ingo Rammer.

.NET Remoting is complex and very abstract. Either of these books can really help sort-out the details and give you ideas about how to better implement a remoting solution.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
QuestionUserControl designer bug ? Pin
Gangren15-Dec-04 19:30
Gangren15-Dec-04 19:30 
AnswerRe: UserControl designer bug ? Pin
Jay Shankar15-Dec-04 19:55
Jay Shankar15-Dec-04 19:55 
GeneralRe: UserControl designer bug ? Pin
Gangren15-Dec-04 20:10
Gangren15-Dec-04 20:10 
GeneralRe: UserControl designer bug ? Pin
Jay Shankar15-Dec-04 20:24
Jay Shankar15-Dec-04 20:24 
GeneralRe: UserControl designer bug ? Pin
Jay Shankar15-Dec-04 20:41
Jay Shankar15-Dec-04 20:41 
GeneralRe: UserControl designer bug ? Pin
Gangren15-Dec-04 20:50
Gangren15-Dec-04 20:50 
AnswerRe: UserControl designer bug ? Pin
Gangren16-Dec-04 1:31
Gangren16-Dec-04 1:31 
GeneralRe: UserControl designer bug ? Pin
Jay Shankar16-Dec-04 14:13
Jay Shankar16-Dec-04 14:13 
GeneralRecording wave file in low level Pin
vhunghl15-Dec-04 19:28
vhunghl15-Dec-04 19:28 
GeneralRe: Recording wave file in low level Pin
Daniel Turini15-Dec-04 22:50
Daniel Turini15-Dec-04 22:50 
GeneralRemoving whitespace Pin
kobezt0815-Dec-04 19:18
kobezt0815-Dec-04 19:18 
GeneralRe: Removing whitespace Pin
Gangren15-Dec-04 19:39
Gangren15-Dec-04 19:39 
GeneralRe: Removing whitespace Pin
kobezt0815-Dec-04 19:42
kobezt0815-Dec-04 19:42 
GeneralRe: Removing whitespace Pin
Jay Shankar15-Dec-04 19:45
Jay Shankar15-Dec-04 19:45 
GeneralRe: Removing whitespace Pin
kobezt0815-Dec-04 20:35
kobezt0815-Dec-04 20:35 
GeneralRe: Removing whitespace Pin
Gangren15-Dec-04 20:56
Gangren15-Dec-04 20:56 
GeneralRe: Removing whitespace Pin
kobezt0815-Dec-04 21:17
kobezt0815-Dec-04 21:17 

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.