title: Monotouch - EASession output stream gives null error
body: <p>Looking for some help over here.</p>
  
  <p>When i run this code (below), it crashes when i process it for the second time.
  it crashes with an object reference not set.. on the session.outputstream</p>
  
  <pre><code>var session= new EASession(accessory, "net.gebe"); 
  
  session.OutputStream.Open();
  </code></pre>
  
  <p>the second time session.outputstream is null. Even when disposing session.</p>
  
  <p>Richard</p>
  
  <pre><code>   public void PrintIt()
      {
       var _accessoryList = EAAccessoryManager.SharedAccessoryManager.ConnectedAccessories;
  
       accessory = null;
  
       foreach(var obj in _accessoryList)
       {
        if(obj.ProtocolStrings.Contains("net.gebe"))
        {
         accessory = obj;
         //break;
        }             
       }
  
       if(accessory == null)
       {          
        //tmg.InfoAlert ("No Printer");
        return;
       }
  
  
       var session= new EASession(accessory, "net.gebe"); 
  
       session.OutputStream.Open();
  
       string str2 = "HELLO THERE PRINTER 1 2 3 4 5";
  
       byte[] printdata2;
  
       ASCIIEncoding   encoding2 = new ASCIIEncoding();
  
       printdata2 = encoding2.GetBytes(str2); 
  
       uint nlen2 = Convert.ToUInt32 (str2.Length+1);
  
       session.OutputStream.Write(printdata2,nlen2 ); 
  
       session.OutputStream.Close ();
  
       session.Dispose ();
      }
  </code></pre>