The function Message.Process() sometime go into infinite loop.
It's hard to debug this error, my program is something like the following:
```
// try to schedule a one gmail checking
while(true)
{
-open connection
-login
foreach(var mes in Messages)
{
if(mess.Process()) => go into infinite loop after about 1.5 day ~ 400th loops, hard to debug.
{
// do something
}
}
- logout and close connection
- wait 5 minutes
}
```
Comments: ** Comment from web user: conquerorvn **
It's hard to debug this error, my program is something like the following:
```
// try to schedule a one gmail checking
while(true)
{
-open connection
-login
foreach(var mes in Messages)
{
if(mess.Process()) => go into infinite loop after about 1.5 day ~ 400th loops, hard to debug.
{
// do something
}
}
- logout and close connection
- wait 5 minutes
}
```
Comments: ** Comment from web user: conquerorvn **
Hi,
Sorry of that lack of information.
The exception throw at line 179 of Message.cs: if (Client.SelectedFolder != Folder.FolderPath)
I'm going to send my simple unit test for this now.