title: Unable to use Qt + DXFLib
body: <p>I'm going to use <a href="http://www.ribbonsoft.com/en/what-is-dxflib" rel="nofollow">dxflib</a> in my Qt application. Build process is OK but when I'm going to run it, the application stops working at the beginning with this error : </p>
  
  <pre><code>Unhandled exception at 0x776415de in DXFOpen.exe: 0xC00000FD: Stack overflow.
  </code></pre>
  
  <p>Here is my simple app :</p>
  
  <pre><code>class CreatorAdaptor : public DL_CreationAdapter
  {
      QGraphicsScene *_scene;
  public:
      explicit CreatorAdaptor(QGraphicsScene *scene);
      virtual void addLine(const DL_LineData &amp;d);
      virtual void addLayer(const DL_LayerData&amp; data);
      virtual void addPoint(const DL_PointData&amp; data);
      virtual void addArc(const DL_ArcData&amp; data);
      virtual void addCircle(const DL_CircleData&amp; data);
      virtual void addPolyline(const DL_PolylineData&amp; data);
      virtual void addVertex(const DL_VertexData&amp; data);
      virtual void add3dFace(const DL_3dFaceData&amp; data);
  
  
  };
  </code></pre>
  
  <p>And the definition of the class : </p>
  
  <pre><code>CreatorAdaptor::CreatorAdaptor(QGraphicsScene *scene) :_scene(scene)
  {
  }
  
  void CreatorAdaptor::addLine(const DL_LineData &amp;d)
  {
      qDebug()&lt;&lt;"add line";
      _scene-&gt;addLine(d.x1, d.y1, d.x2, d.y2);
  }
  ...
  </code></pre>
  
  <p>Here is my main :</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      QGraphicsView  *view = new QGraphicsView;
      QGraphicsScene  * scene = new QGraphicsScene;
      view-&gt;setScene(scene);
      CreatorAdaptor *dxfscene = new CreatorAdaptor(scene);
      DL_Dxf dxf;
       if(dxf.in("demo.dxf", dxfscene))
           QMessageBox::warning(0,"error", "error");
      view-&gt;show();
      return a.exec();
  }
  </code></pre>
  
  <p>Call Stack :</p>
  
  <pre><code>    ntdll.dll!77af15de()    
      [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] 
      ntdll.dll!77af15de()    
      ntdll.dll!77ae014e()    
      kernel32.dll!755e14dd()     
  &gt;   msvcr100d.dll!_free_base(void * pBlock)  Line 50 + 0x13 bytes   C
      0041f648()  
      QtCored4.dll!qFree(void * ptr)  Line 60 + 0xa bytes C++
      QtCored4.dll!QVectorData::free(QVectorData * x, int alignment)  Line 82 + 0x9 bytes C++
      QtCored4.dll!QVectorTypedData&lt;char *&gt;::free(QVectorTypedData&lt;char *&gt; * x, int alignment)  Line 99 + 0x10 bytes  C++
      QtCored4.dll!QVector&lt;char *&gt;::free(QVectorTypedData&lt;char *&gt; * x)  Line 468 + 0x12 bytes C++
      QtCored4.dll!QVector&lt;char *&gt;::~QVector&lt;char *&gt;()  Line 124 + 0x30 bytes C++
      QtCored4.dll!qWinMain(HINSTANCE__ * instance, HINSTANCE__ * prevInstance, char * cmdParam, int cmdShow, int &amp; argc, QVector&lt;char *&gt; &amp; argv)  Line 193   C++
      0041f7e0()  
      DXFOpen.exe!__security_init_cookie()  Line 143  C
      DXFOpen.exe!WinMainCRTStartup()  Line 371   C
      kernel32.dll!755e339a()     
      ntdll.dll!77b09ef2()    
      ntdll.dll!77b09ec5()    
  </code></pre>