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

C#

 
GeneralAdding DataRow to DataTable Pin
zuhx18-Dec-03 11:35
zuhx18-Dec-03 11:35 
GeneralRe: Adding DataRow to DataTable Pin
Colin Angus Mackay18-Dec-03 15:06
Colin Angus Mackay18-Dec-03 15:06 
QuestionHow to create a new GUID? Pin
Larry Antram18-Dec-03 11:21
Larry Antram18-Dec-03 11:21 
AnswerRe: How to create a new GUID? Pin
Colin Angus Mackay18-Dec-03 11:28
Colin Angus Mackay18-Dec-03 11:28 
GeneralRe: How to create a new GUID? Pin
Larry Antram18-Dec-03 11:31
Larry Antram18-Dec-03 11:31 
GeneralDynamic configuration file Pin
Le centriste18-Dec-03 8:15
Le centriste18-Dec-03 8:15 
GeneralRe: Dynamic configuration file Pin
Not Active18-Dec-03 8:51
mentorNot Active18-Dec-03 8:51 
GeneralRe: Dynamic configuration file Pin
Heath Stewart18-Dec-03 9:43
protectorHeath Stewart18-Dec-03 9:43 
This isn't the only thing that needs to be done, though. Yes, you could use a FileSystemWatcher to watch the .config file for changes, but once an AppDomain has been created and the config file read, it won't get read again (it's cached). Instead, you have to have a separate process (or use the same process, which must start your main app in a separate AppDomain) that watches for changes, notifies your app to quit (or have your main app watch for changes, and the loader restart it when the app exits with a certain exit code). It creates the AppDomain with your custom AppDomainSetup for the AppDomain.SetupInformation, launches your process using AppDomain.ExecuteAssembly, and, thus, respawns your process.

I have covered this in more depth before. Please search the forum comments for keywords like AppDomainSetup for more information.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralAcceptButton & Show() Pin
Arun Bhalla18-Dec-03 7:55
Arun Bhalla18-Dec-03 7:55 
GeneralRe: AcceptButton & Show() Pin
Mike Ellison18-Dec-03 8:52
Mike Ellison18-Dec-03 8:52 
GeneralRe: AcceptButton & Show() Pin
Member 26118818-Dec-03 22:16
Member 26118818-Dec-03 22:16 
GeneralClosing a blocked thread Pin
Guinness4Strength18-Dec-03 5:34
Guinness4Strength18-Dec-03 5:34 
GeneralRe: Closing a blocked thread Pin
Kentamanos18-Dec-03 6:12
Kentamanos18-Dec-03 6:12 
GeneralC# Windows Service Pin
frank2118-Dec-03 4:26
frank2118-Dec-03 4:26 
GeneralRe: C# Windows Service Pin
Jon Newman18-Dec-03 4:32
Jon Newman18-Dec-03 4:32 
GeneralRe: C# Windows Service Pin
Heath Stewart18-Dec-03 9:39
protectorHeath Stewart18-Dec-03 9:39 
GeneralXML Append serialized object to existing xml-file Pin
Mr. Labenche18-Dec-03 3:49
Mr. Labenche18-Dec-03 3:49 
GeneralRe: XML Append serialized object to existing xml-file Pin
Heath Stewart18-Dec-03 9:36
protectorHeath Stewart18-Dec-03 9:36 
GeneralAttributes Pin
Ken Galer18-Dec-03 2:38
Ken Galer18-Dec-03 2:38 
GeneralRe: Attributes Pin
Heath Stewart18-Dec-03 2:59
protectorHeath Stewart18-Dec-03 2:59 
GeneralRe: Attributes Pin
Ken Galer18-Dec-03 3:09
Ken Galer18-Dec-03 3:09 
GeneralQuestion with treeview Pin
markdbd17-Dec-03 22:57
markdbd17-Dec-03 22:57 
GeneralRe: Question with treeview Pin
Member 26118818-Dec-03 0:09
Member 26118818-Dec-03 0:09 
GeneralRe: Question with treeview Pin
markdbd18-Dec-03 5:54
markdbd18-Dec-03 5:54 
GeneralCreate dial-up connection Pin
hebzzz17-Dec-03 22:51
hebzzz17-Dec-03 22:51 

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.