title: Invoking thread with a single parameter
body: <pre><code>-(BOOL)KickTimer:(unsigned short) wTimerIds
      {
          operation1 = [[NSInvocationOperation alloc]initWithTarget:self selector:
                                           @selector(insertEvent:) object:pEvent];
      }
  
  -(void)insertEvent:(stRs232Timer*)pEvent
  {
   //stmts;
  }
  </code></pre>
  
  <p>I could not invoke this <code>function.Is</code> this way of invoking a thread with single parameter is correct.</p>
  
  <h2>EDITED</h2>
  
  <pre><code>pEvent = (stRs232Timer*)[[m_cAppIdMap objectForKey:[NSNumber   
                            numberWithUnsignedShort:wTimerIds]]bytes];
  </code></pre>
  
  <p><strong>Warning:</strong></p>
  
  <pre><code>Warning: passing argument 3 of 'initWithTarget:selector:object:' 
  from incompatible pointer type
  </code></pre>