Any ideas on what causes a delay inside Office Add-in. Compiled C# 64-bit COM version for WORD2010, AnyCPU.
Loaded these namespaces. Compiles perfectly. Problem is when C# calls a large C# module there is 14 second delay
with blue spinning wheel. Then Word proceeds normally. Second call, Word or Add-in has loaded something and no delay.
using System;
using System.Reflection;
using System.Net.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Concurrent;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Windows.Forms;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Word = Microsoft.Office.Interop.Word;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Tools.Word;
using Microsoft.Office.Interop.Word;
using Microsoft.Win32;
using Microsoft.Office.Core;
using System.Media;
using System.IO;
using System.Security.Permissions;
Suspect Collections in ThisAddin class. Perhaps must be preloaded Array() class?
public static readonly ReadOnlyCollection<string> people_jobs = new ReadOnlyCollection<string>(
new string[] {
"operator","person","people","driver","technician","pilot","co-pilot","physician","doctor","patient"});
Has any developer see this delay problem? Comments most welcome.
Developers of Controlled English for translation.