# dxflib 3.3.4 bugs

**URL:** http://forum.qcad.org/t/dxflib-3-3-4-bugs/1407
**Category:** dxflib Troubleshooting and Problems
**Created:** [December 20, 2013, 5:00pm UTC](http://forum.qcad.org/t/dxflib-3-3-4-bugs/1407 "2013-12-20T17:00:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![joose](http://forum.qcad.org/letter_avatar_proxy/v4/letter/j/b38774/32.png) [@joose](http://forum.qcad.org/u/joose)
#### Post date: [December 20, 2013, 5:00pm UTC](http://forum.qcad.org/t/dxflib-3-3-4-bugs/1407/1 "2013-12-20T17:00:34Z")

</div>

Hi  
This document dxflib334/test/myfile.dxf is invalid, the first error is that the line break is defined as “\n” when it should be “\r\n”, using a hex editor to change the 0A 0D0A and got the attached myfile.dxf:

[https://www.mediafire.com/?aqwepti4wck05yn](https://www.mediafire.com/?aqwepti4wck05yn)

the second error is that even so the file is invalid in all viewer drawing, so use the ODA\_File\_Converter\_3.0.9 for errors and line 1084: “ODA Warning: Syntax error or premature end of file on line/offset 1084. OdError thrown during readFile of drawing “E:/…” : Bad Dxf sequence”.

> **[myfile\_dxf](https://www.mediafire.com/file/kx7sp21p19713yz/myfile_dxf.err)**
>
> MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

Similarly, the compiled files using dxflib334 described have the same problem. I hope you can solve these problems.  
I have a DLL for Windows in bits 32-64 compiled with codeblocks 12.11 modify some lines of code to make it operational and efficient, if you’re interested I can share here or in codeproject.

Regards

---

<div class="post-metadata">

### Author: ![dgrees](http://forum.qcad.org/letter_avatar_proxy/v4/letter/d/f9ae1b/32.png) [@dgrees](http://forum.qcad.org/u/dgrees)
#### Post date: [April 3, 2014, 8:22am UTC](http://forum.qcad.org/t/dxflib-3-3-4-bugs/1407/2 "2014-04-03T08:22:23Z")

</div>

Hi!  
i reproduced this bug.  
If you try to open file myfile.dxf from package in TrueView, you see message “Expected TABLE, recieved STYLE on line 1084.”.

This is because of method DL\_Dxf::writeStyle. I tried to togle commented lines in code and dxf file became openable.  
But this is just workaroud, what is real solution to this problem?
