Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Commented Issue: The message.Process() go into infinite loop [1495]

$
0
0
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: larssy1 **

Hi Pavel,

No problem, thanks for reviewing this issue after all :)

The problem still happens. On line 123 of EmailParser.cs.

A few things i've noticed:
- _emailItems has the value {string[0]}
- current is 0
- _emailItems.Length is 0

Which results in:
```
stringBuilder.Append(this._emailItems[0 >=0 ? 0 - 1 : 0]);
```

If you need more information, please contact me :)


Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>