DWF

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

Access violation exception using the DWFToolkit

833 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 (812 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 (808 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 (776 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 (248 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 (205 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?

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!