Hi,
I am using the attached code (which I got from this forum) to read a DWF. The code fails with "Access Violation.." on calling pSection->getResourcesByRole() (line 133). The DWF opens fine in Design Review. I am using version 7.6 of the Toolkit on Win32 + Visual Studio 2008.
I'd be grateful for any help in solving the problem.
Thanks
Gabriel
Thanks, Silvia,
I followed the suggestion on the thread (i.e. downloaded the SDK again and rebuilt the project, but it still doesn't work).
Still I suspect it has to do with the libraries (either LIB or DLL).
I got another sample from the API Help documentation where the same function runs well (but on another machine), so I am using that for now.
By the way, how can I find the extent (bounding box) of a W2D file, i.e. something equivalent to finding the database extent of a DWG?
Thanks again
Gabriel
DWF Toolkit doesn’t support to get the bounding box of w2d; we need to calculate by ourselves.
Please let me know if you have any further questions.
Thanks,
Silvia
ADR/DWF Customer Support
I have similar problem like author of this topic. I am using version 7.7 of the Toolkit on Win32 and Visual Studio 2013. Access violation is returned when calling line:
DWFToolkit:: DWFResourceContainer::ResourceIterator* pResources = pSection->findResourcesByRole(DWFXML::kzRole_Graphics2d).
This problem appears only in release mode, when project is compiled as debug it works fine. Any ideas?
Thank you