title: how to display large data in wxListCtrl with using concept of wxThread
body: <p>I'm capable to fill the database table in wxListCtrl,
  my problem is to handle high range of data, I want to do this with the help of thread concept , perhaps it will save to hang the frame because of high amount of data.
  I'm new in thread concept so your single lines will be a book for me.</p>
  <h3>Update:</h3>
  <p>My question was- how to display large data in wxListCtrl with using concept of wxThread
  so for this I used thread concept I add two more files thread.c and thread.cpp
  my entry thread code is shown below</p>
  <pre><code>void *MyThread :: Entry()
  {
      int i=1,j,k=0;
      while(i!=400)
      {
          long index=this-&gt;temp-&gt;data_list_control-&gt;InsertItem(i,wxT(&quot;amit&quot;));
          for(j=1; j&lt;3; j++) {
              this-&gt;temp-&gt;data_list_control-&gt;SetItem(index,j,wxT(&quot;pathak&quot;));
          }
  
          k++;
  
          if(k==30) {
              this-&gt;Sleep(1000);
              k=0;
          }
          i++;
      }
  }
  </code></pre>
  <p>It is sometimes working fine but when I try to increase the value of <code>i</code>, it shows an error like</p>
  <pre><code>-*showingdatainwxlistctrl: ../../src/XlibInt.c:595: _XPrivSyncFunction: Assertion `dpy-&gt;synchandler == _XPrivSyncFunction' failed.*
  </code></pre>
  <p>or sometime it gives error like</p>
  <pre><code>***[Xcb] xcb_io.c:378: _XAllocID: Assertion `ret != inval_id' failed***
  </code></pre>
  <p>Why it is happening to me?</p>