title: updating UI from background task using delegate
body: <p>I'm trying to update a label value from a background thread. I understand that there are several example, but I'm still having trouble understanding why the below code throw an stack overflow error. It seems like every time setTitle() is executed it goes through the true part of the if statement. </p>
  
  <p>Set title Function:</p>
  
  <pre><code>    void setTitle(char data[])
      {
          String^ temp = gcnew String(data);
  
          if(this-&gt;lastSeen1-&gt;InvokeRequired)
          {
              setTitleDelegate^ d = gcnew setTitleDelegate(this, &amp;setTitle);
              d-&gt;Invoke(data);
          }else
          {
              this-&gt;lastSeen1-&gt;Text = temp;
              this-&gt;lastSeen1-&gt;Visible = true;
          }
  
      }
  </code></pre>
  
  <p>delegate: </p>
  
  <pre><code>delegate void setTitleDelegate(char data[]);
  </code></pre>
  
  <p>Thank you</p>