object reference not set to an instance of an object
<p>Please don't get me wrong..- I know that object is set to null somewhere when it isn't supposed to be. </p>

<pre><code>if (cou == 1)
{
    //lp = new ListProgress(CList);
    t1.Start();
}

lp.Exit += ExitTransmit; // Attaches the delegate method
lp.Show(this);
Logging.NewLog("C:\\logs\\command_log");

CList.StartTransmit(new sharedResources.UpdateDelegate(this.TransmitSent));
// ^ here i get the error

private void thread1()
{
    // CommandList clist = new CommandList();                   
    lp = new ListProgress(CList);
}
</code></pre>

<p>Here if I have <code>lp = new ListProgress(CList);</code> inside the if condition it works fine, but if I create a new thread and if I have <code>lp = new ListProgress(CList);</code> inside the thread then I get a <code>System.NullReferenceException</code>. But the error is displayed in the line shown above. I don't understand why? </p>
