StartIdle() looses connection?

Sep 30, 2012 at 4:37 AM

Hello everybody,

I tested imap4 idle. It works fine for a couple of minutes. Then a nullreferenceexception occurs for 'response' in the StartIdle() - method:

this.OnTcpRead(new ActiveUp.Net.Mail.TcpReadEventArgs(response));

this.OnTcpReading();

response = sr.ReadLine();
this.OnTcpRead(new ActiveUp.Net.Mail.TcpReadEventArgs(response));
if (response.ToUpper().IndexOf("RECENT") > 0)                   

{

 this.OnNewMessageReceived(new NewMessageReceivedEventArgs(int.Parse(response.Split(' ')[1])));                   

}

Noop() throws an notsupportedexception in the Command-method. 

Has anybody an idea how to fix this? Thanks.