title: CORBA::String_var -> I can't assign any value to class field of this type
body: <p>I have a simple class:</p>
  
  <pre><code>class MyExample : public POA_Example
  {
     CORBA::String_var field;
  
     public:
               char* getField();
               void setField(const char* f);
  };
  
  char* MyExample::getField()
  {
     return CORBA::string_dup(this-&gt;field.out());
  }
  
  void MyExample::setField(const char* f)
  {
     this-&gt;field = CORBA::string_dup(f);
  }
  </code></pre>
  
  <p>And main app:</p>
  
  <pre><code>#include "MyExample.h"
  #include &lt;iostream&gt;
  using std::cout;
  
  int main()
  {
    MyExample e;
    e.setField("Hello");
    cout &lt;&lt; e.getField() &lt;&lt; "\n";
    return 0;
  }
  </code></pre>
  
  <p>I use omniORB and the code I gave above doesn't show anything ... Whats the problem here?</p>