title: A problem in c# using Threads and ListView
body: <p>I have a text filter where in the TextChanged event I launch a listview populate code this way:</p>
  
  <pre><code>ThreadPool.QueueUserWorkItem(new WaitCallback(populate));
  </code></pre>
  
  <p>Then in the populate method I have code like this</p>
  
  <pre><code>listView1.BeginUpdate();
  listView1.Clear();
  
  // rest of the code
  
  listView1.EndUpdate();
  </code></pre>
  
  <p>but the listView1.BeginUpdate() call gives the following exception:</p>
  
  <pre><code>System.NotSupportedException was unhandled
    Message="An error message cannot be displayed because an optional resource assembly containing it cannot be found"
    StackTrace:
      at Microsoft.AGL.Common.MISC.HandleAr()
      at System.Windows.Forms.ListView.ntvSetStyleEx()
      at System.Windows.Forms.ListView.BeginUpdate()
      at App.frmSelectClient.populate()
      at WorkItem.doWork()
      at System.Threading.Timer.ring()
    InnerException: 
  </code></pre>
  
  <p>What I am doing wrong? </p>
  
  <p>I would like to issue the populate of the ListView in a background thread.</p>