Object creation error : Object reference not set to an instance of an object
<p>I am trying to create an object of class <strong>appManager</strong>  in <strong>Processor</strong>. The object creation is throwing an error in logs.  if I comment the below line, application works fine. </p>

<p>appManager obj = new appManager ();</p>

<p>Error:
"Object reference not set to an instance of an object."</p>

<pre><code>public class appManager : IDisposable
{
    public appManager()
    {
    }

    public appManager(IpcController mycontroller)
    {
    }

    public void debugTest()
    {
        Debug.WriteLine("Debug Test");
    }
}


public class Processor
{

    appManager obj=new appManager();
    public void process(string input)
    {
        //obj.debugTest();
    }
}
</code></pre>

<p>This Visual Stduio application is called by another application. So, I can't debug through the code.</p>
