A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to over coem Memory Leak and code optimization for outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 20th 06, 09:48 AM posted to microsoft.public.outlook.program_vba
Virda
external usenet poster
 
Posts: 13
Default How to over coem Memory Leak and code optimization for outlook

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!
Ads
  #2  
Old September 21st 06, 06:24 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default How to over coem Memory Leak and code optimization for 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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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!

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 is using over 1.6GB of virtual memory John_Royce Outlook - General Queries 8 October 8th 06 01:32 AM
Outlook and low virtual memory silverdill Outlook - Installation 0 July 29th 06 10:47 PM
Outlook 2k sp3 memory issue tek4u Outlook - General Queries 3 May 26th 06 02:39 PM
Outlook 2003 Using over 2 GB of memory [email protected] Outlook - General Queries 2 May 2nd 06 02:06 PM
Outlook 'To:' Field Memory fred Outlook - General Queries 5 February 26th 06 11:53 PM


All times are GMT +1. The time now is 09:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Đ2004-2024 Outlook Banter.
The comments are property of their posters.