Hi
I have a problem with parsing W2D file. When I try to read objects by function process_next_object() some first opcodes read correctly (these opcodes are ASCII and Extended_Ascii), but next opcode reading failed with error "WT_Result::Corrupt_File_Error".
Call Stack:
WT_File::read ... at file.cpp:2846]
WT_String::materialize ... at wtstring.cpp:463]
WT_Text::materialize ... at text.cpp:292]
WT_File::get_next_object ... at file.cpp:1578]
WT_File::process_next_object ... at file.cpp:1530]
mainW2DComponentsExtraction::ExtractMainW2DComponents ... at src/MainW2DComponentsExtraction.cpp:25]
Sample of project is attached. Need to change path to DWF Toolkit in "Include Directories".
Any idea? Is it bug in DWF Toolkit?
Some comments
My operating system is Ubuntu 10.10 64bit. I compiled library independently (don't use binary files).
I try to use DWF Toolkit on Ubuntu 32bit and all is good. Document is parsed without any problem.
Hi,
I haven't looked at your smaple project, however I have compiled a project that uses the toolkit on 64 bit Ubuntu (10.10).
Please clarify what you have already done (eg. if my understanding is correct):
- You downloaded the toolkit 🙂
- You read the build instructions in the build folders
- You used the ./configure command then built the toolkit (eg. you built yourself and "didn't use the binary"
- You're linking the toolkit you built to your project
- It crashes during processing of 2d
If this is the case, can you also attach the file you're trying to process?
Gyuri Ordody
Autodesk
Gyuri Ordody,
Sorry for late response, 64-bit app version was in low priority, but now priority is high.
All steps of the your checklist are done. DWF Toolkit starts parse W2D file (GraphicResource), but after reading first ASCII opcodes, I get the result WT_Result::Unsupported_DWF_Opcode.
I suggest the reason in reading file by bytes, possible origin is wrong.
I attached the drawing file. And I hope for your help.
Thanks
Can't find what you're looking for? Ask the community or share your knowledge.