my outlook can't response any operation and my cpu 100% usage,when I added 500 contacts
my test Environment is __Intel(R)Pentium(R) CPU G2010 @2.8GHz 2.79GHz__
Here is my code:
```
var folderContacts = _outlookApplication.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderContacts);
var a = folderContacts.Folders.Add(string.Format("test contacts{0}", folderContacts.Folders.Count));
a.ShowAsOutlookAB = true;
var watch = new Stopwatch();
watch.Start();
for (var i = 0; i < 100; i++)
{
var newContact = (NetOffice.OutlookApi.ContactItem)_outlookApplication.CreateItem(OlItemType.olContactItem);
newContact.FirstName = "first" + i;
newContact.MiddleName = "middle" + i;
newContact.LastName = "last" + i;
newContact.CompanyName = "Intsig";
newContact.Department = "Windows";
newContact.JobTitle = "coder";
newContact.Email1Address = "aaa@yopmail.com";
newContact.Email2Address = "bbb@yopmail.com";
newContact.Email3Address = "ccc@yopmail.com";
newContact.Birthday = DateTime.Now;
newContact.BusinessAddressCity = "ShangHai";
newContact.BusinessAddressCountry = "China";
newContact.BusinessAddressPostalCode = "200000";
newContact.BusinessAddressState = "Yang Pu";
newContact.BusinessAddressStreet = "East NanJing Road";
newContact.MobileTelephoneNumber = "14258796543";
newContact.HomeFaxNumber = "021-32183231";
newContact.HomeTelephoneNumber = "021-38847282";
newContact.Home2TelephoneNumber = "021-33843739";
newContact.BusinessTelephoneNumber = "12548795642";
newContact.Business2TelephoneNumber = "13648572492";
newContact.Categories = "Role";
newContact.AssistantName = "Cortana";
newContact.WebPage = "www.baidu.com";
newContact.IMAddress = "45879542135";
newContact.NickName = "nick name";
newContact.Body = "just for test";
newContact.Move(a);
//Thread.Sleep(100);
}
```
my test Environment is __Intel(R)Pentium(R) CPU G2010 @2.8GHz 2.79GHz__
Here is my code:
```
var folderContacts = _outlookApplication.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderContacts);
var a = folderContacts.Folders.Add(string.Format("test contacts{0}", folderContacts.Folders.Count));
a.ShowAsOutlookAB = true;
var watch = new Stopwatch();
watch.Start();
for (var i = 0; i < 100; i++)
{
var newContact = (NetOffice.OutlookApi.ContactItem)_outlookApplication.CreateItem(OlItemType.olContactItem);
newContact.FirstName = "first" + i;
newContact.MiddleName = "middle" + i;
newContact.LastName = "last" + i;
newContact.CompanyName = "Intsig";
newContact.Department = "Windows";
newContact.JobTitle = "coder";
newContact.Email1Address = "aaa@yopmail.com";
newContact.Email2Address = "bbb@yopmail.com";
newContact.Email3Address = "ccc@yopmail.com";
newContact.Birthday = DateTime.Now;
newContact.BusinessAddressCity = "ShangHai";
newContact.BusinessAddressCountry = "China";
newContact.BusinessAddressPostalCode = "200000";
newContact.BusinessAddressState = "Yang Pu";
newContact.BusinessAddressStreet = "East NanJing Road";
newContact.MobileTelephoneNumber = "14258796543";
newContact.HomeFaxNumber = "021-32183231";
newContact.HomeTelephoneNumber = "021-38847282";
newContact.Home2TelephoneNumber = "021-33843739";
newContact.BusinessTelephoneNumber = "12548795642";
newContact.Business2TelephoneNumber = "13648572492";
newContact.Categories = "Role";
newContact.AssistantName = "Cortana";
newContact.WebPage = "www.baidu.com";
newContact.IMAddress = "45879542135";
newContact.NickName = "nick name";
newContact.Body = "just for test";
newContact.Move(a);
//Thread.Sleep(100);
}
```