| Author |  | 
      
        | mackolo22 Groupie
 
  
  
 Joined: 09 October 2018
 Location: Poland
 Online Status: Offline
 Posts: 41
 | 
          Hello,
           | Posted: 06 February 2019 at 11:56pm | IP Logged |   |  
           | 
 |  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 |     | 
       
       
        |  | 
        | mackolo22 Groupie
 
  
  
 Joined: 09 October 2018
 Location: Poland
 Online Status: Offline
 Posts: 41
 | 
          I forgot to say that our MailBee.NET version is 10.0.4.507.
           | Posted: 07 February 2019 at 12:02am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Does that happen with the latest v11 build?
           | Posted: 07 February 2019 at 12:07am | IP Logged |   |  
           | 
 |  
 You can get a compatible trial key here.
 
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | mackolo22 Groupie
 
  
  
 Joined: 09 October 2018
 Location: Poland
 Online Status: Offline
 Posts: 41
 | 
          Thanks, I will try to reproduce this issue with latest build and give you feedback.
           | Posted: 07 February 2019 at 12:10am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | mackolo22 Groupie
 
  
  
 Joined: 09 October 2018
 Location: Poland
 Online Status: Offline
 Posts: 41
 | 
          Hello again,
           | Posted: 21 March 2019 at 3:55am | IP Logged |   |  
           | 
 |  The error still occurs even on the latest build. It happens randomly.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          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.
           | Posted: 21 March 2019 at 4:09am | IP Logged |   |  
           | 
 |  
 GetMemoryLog cannot be called if anything else might be writing in the log at the same time.
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |