How to over coem Memory Leak and code optimization for outlook

G

Guest

Hello List,

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

at outlook side after receiveing whole data of all Contacts I start a
loop and

add a new contact to the Contact folder of outlook 2003.

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

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

IS there any way I could oversome 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!
 
R

Roady [MVP]

It would help if you posted the code and even more when you post it in a
programmers newsgroup like outlook.program_vba

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
Hello List,

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

at outlook side after receiveing whole data of all Contacts I start a
loop and

add a new contact to the Contact folder of outlook 2003.

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

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

IS there any way I could oversome 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!
 

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