Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access violation exception using the DWFToolkit

5 REPLIES 5
Reply
Message 1 of 6
GBGB1360
1232 Views, 5 Replies

Access violation exception using the DWFToolkit

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

5 REPLIES 5
Message 2 of 6
SilviaCao
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.
Message 3 of 6
GBGB1360
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

 

 

Message 4 of 6
SilviaCao
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.
Message 5 of 6
bkdi
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

Message 6 of 6
bkdi
in reply to: GBGB1360

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services