Hi "log4net needs an parameter less constructor" Indeed it does; it uses it to create an instance of the appender. I don't know by what magic you expect log4net to use the copy you are creating?
What you should do is expose your listview somehow, simplest would be through a static field, and let the no-arg constructor of your appender look up the instance of the listview there. Best regards Steven -----Original Message----- From: BlackMatrix [mailto:[email protected]] Sent: zondag 4 november 2012 21:51 To: [email protected] Subject: Re: ListViewAppender: ListView always null? Thanks for your replay, but I instantiate my ListViewAppender object with the second constructor: public ListViewAppender(ListView listview) : base() { _listView = listview; } log4net needs an parameter less constructor, otherwise I get a MissingMethodException :/ -- View this message in context: http://old.nabble.com/ListViewAppender%3A-ListView-always-null--tp34636403p34640058.html Sent from the Log4net - Users mailing list archive at Nabble.com.
