Graham,

The config file watching code just uses the FileSystemWatcher API to
monitor for changes to the config file. This API is not available in the
CompactFramework. I don't know it this is just something they left out
of the CompactFramework or if the underlying Win32 APIs are not
available on WinCE. It the native APIs are available then it should be
possible to P/Invoke them. Otherwise it will be necessary to add some
form of polling, probably for changes to the modified date field, or
alternatively read the file and build an MD5 hash and store and compare
that value.

This sounds like a good project for someone to take on.

Nicko

> -----Original Message-----
> From: Graham Innocent [mailto:[EMAIL PROTECTED] 
> Sent: 26 November 2004 15:25
> To: [email protected]
> Subject: Watching config file changes on netcf
> 
> I want to modify logging properties during execution on 
> devices running .netcf, over a GPRS connection. I'm aware 
> from the documentation that watching changes to the log4net 
> configuration file is not currently supported on the .NET 
> Compact Framework.
> 
> Is anybody else working on this kind of problem (either with 
> their own workarounds, or something they would like to commit 
> to the log4net
> codebase) ?
> 
> Any advice much appreciated.
> 
> -- 
> Graham Innocent                    Parthenon Computing
> +44-1865-811184                  http://www.parthcomp.com
> 

Reply via email to