Exemple #1
0
 public void camDispose(Intermec.Multimedia.Camera obj)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.InvokeRequired)
     {
         camDisposeCallback d = new camDisposeCallback(camDispose);
         this.Invoke(d, new object[] { obj });
     }
     else
     {
         obj.Dispose();
     }
 }