How to over coem Memory Leak and code optimization for outlook

G

Guest

I have to sync/get all Contacts from server, it could be 2000 or more

at outlook side at the same time I am receiving the data and added the
receiving Contact Item to Contact folder of outlook 2003 inside a loop.

But this process made my whole system in hanging condition and when I check

the Memory used by Outlook.exe it has increased from 50mb to 105mb.

IS there any way I could overcome this problem and avoid my whole system to
hang???

Is there any code optimization.

Should I put this sync process in seperate thread???

What should I do??

Thanks in advance!
 
M

Michael Bauer [MVP - Outlook]

Am Wed, 20 Sep 2006 01:48:02 -0700 schrieb Virda:

If a contact has an average size of 4 - 12 KB then 50MB for 2000 contacts
seems to be to much.

You could use a separate thread, of course. I assume that you don´t need to
download so many contacts each day, and if it happens only once you could
think about whether it is really worth it to re-design your code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top