Bonjour,

J'ai le code suivant :

Code c# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ObjectQuery objQueryProduct = new ObjectQuery("SELECT Caption,Version,Vendor FROM Win32_Product");
            ManagementObjectSearcher objSearcherProduct = new ManagementObjectSearcher(mgmtscope, objQueryProduct);
 
            ManagementObjectCollection objGetCollectionProduct = objSearcherProduct.Get();
 
            foreach (ManagementObject obj in objGetCollectionProduct)
            {
                if (obj["Caption"].ToString() != null)
                {
                    ListViewItem item = new ListViewItem(obj["Caption"].ToString());
                    //item.SubItems.Add(obj["Version"].ToString());
                    item.SubItems.Add(obj["Vendor"].ToString());
                    lvPrograms.Items.Add(item);
                }
 
            }

Après quelques temps, je reçois ce message :
Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.


Merci