Out of Memory while reading emails

#1
I am trying to read emails from outlook mail box. Now I have created a custom vbo using vb.net code to read emails from one of the folders in outlook.

I am using this object to read more than 1k emails from the folder.

When I am reusing this object from another object and trying to debug this object, it runs fine. But when I am trying to reuse the same from one of the process I am getting out of memory exception.

Although it is lot of emails how come it is able to read when I am trying to use from the object? What difference is there when I reuse the same from an object and a process ?
 
Top