Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Exception when calling GetMemoryLog() Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mackolo22
Groupie
Groupie
Avatar

Joined: 09 October 2018
Location: Poland
Online Status: Offline
Posts: 41
Posted: 06 February 2019 at 11:56pm | IP Logged Quote mackolo22

Hello,
I noticed that sometimes when calling Imap.Log.GetMemoryLog() the "System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: chunkLength" is thrown. I can't tell you what is the exact path to reproduce this issue, because it doesn't happen everytime. I call Imap.Disconnect() before getting memory log, so maybe that's a clue.
Back to Top View mackolo22's Profile Search for other posts by mackolo22
 
mackolo22
Groupie
Groupie
Avatar

Joined: 09 October 2018
Location: Poland
Online Status: Offline
Posts: 41
Posted: 07 February 2019 at 12:02am | IP Logged Quote mackolo22

I forgot to say that our MailBee.NET version is 10.0.4.507.
Back to Top View mackolo22's Profile Search for other posts by mackolo22
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5722
Posted: 07 February 2019 at 12:07am | IP Logged Quote Igor

Does that happen with the latest v11 build?

You can get a compatible trial key here.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
mackolo22
Groupie
Groupie
Avatar

Joined: 09 October 2018
Location: Poland
Online Status: Offline
Posts: 41
Posted: 07 February 2019 at 12:10am | IP Logged Quote mackolo22

Thanks, I will try to reproduce this issue with latest build and give you feedback.
Back to Top View mackolo22's Profile Search for other posts by mackolo22
 
mackolo22
Groupie
Groupie
Avatar

Joined: 09 October 2018
Location: Poland
Online Status: Offline
Posts: 41
Posted: 21 March 2019 at 3:55am | IP Logged Quote mackolo22

Hello again,
The error still occurs even on the latest build. It happens randomly.
Back to Top View mackolo22's Profile Search for other posts by mackolo22
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2158
Posted: 21 March 2019 at 4:09am | IP Logged Quote Alex

Maybe you're using it in multi-thread environment? I.e. if you call imap.Log.GetMemoryLog() while some other activities for the same imap instance are still running, you'll get this exception. Maybe you called Disconnect and then started another connection and at the very same moment called GetMemoryLog in another thread.

GetMemoryLog cannot be called if anything else might be writing in the log at the same time.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide