DWF

Reply
Active Contributor
GBGB1360
Posts: 27
Registered: ‎11-27-2009
Message 1 of 6 (821 Views)

Access violation exception using the DWFToolkit

821 Views, 5 Replies
09-03-2010 02:09 PM

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

Employee
SilviaCao
Posts: 136
Registered: ‎06-07-2009
Message 2 of 6 (800 Views)

Re: Access violation exception using the DWFToolkit

09-08-2010 02:17 AM in reply to: GBGB1360

Thank you for your questions.

 

There is a thread has the same issue. Please refer to it and test again.

 

Silvia

ADR/DWF Customer Support



Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Active Contributor
GBGB1360
Posts: 27
Registered: ‎11-27-2009
Message 3 of 6 (796 Views)

Re: Access violation exception using the DWFToolkit

09-08-2010 04:38 AM in reply to: SilviaCao

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

 

 

Employee
SilviaCao
Posts: 136
Registered: ‎06-07-2009
Message 4 of 6 (764 Views)

Re: Access violation exception using the DWFToolkit

09-12-2010 10:40 PM in reply to: GBGB1360

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



Silvia Cao
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Active Member
bkdi
Posts: 6
Registered: ‎08-02-2012
Message 5 of 6 (236 Views)

Re: Access violation exception using the DWFToolkit

03-12-2014 04:25 AM in reply to: GBGB1360

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

Active Member
bkdi
Posts: 6
Registered: ‎08-02-2012
Message 6 of 6 (193 Views)

Re: Access violation exception using the DWFToolkit

03-15-2014 02:56 PM in reply to: GBGB1360

No ideas? Maybe someone can share compiled library for VS2013 release project?

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.