DWF

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

Access violation exception using the DWFToolkit

711 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
Posts: 136
Registered: ‎06-07-2009
Message 2 of 6 (690 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
Posts: 27
Registered: ‎11-27-2009
Message 3 of 6 (686 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
Posts: 136
Registered: ‎06-07-2009
Message 4 of 6 (654 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.
Member
Posts: 5
Registered: ‎08-02-2012
Message 5 of 6 (126 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

Member
Posts: 5
Registered: ‎08-02-2012
Message 6 of 6 (83 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?

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community