I'm trying to get PoDoFo 0.8.2 working in Embarcadero (formerly Borland)
C++Builder 2010 and am getting an access violation when I run the sample
"Hello world!" application.

>From looking at the call stack, the sample HelloWorld function calls
PdfStreamedDocument::CreatePage, which calls PdfPagesTree::InsertPage, which
calls PdfPagesTree::GetPageNode.  GetPageNode tries to iterate over
rKidsArray, but from what I can tell from poking around in the debugger,
rKidsArray's vector pointers are corrupt.  (They're apparently getting
corrupted in PdfOutputDevice's constructor's call to PdfLocaleImbue, but if
I disable locale support, the corruption simply appears elsewhere.)  I could
be misdiagnosing the problem, though - this afternoon is the first time that
I've done anything with PoDoFo.

If I build and test under Linux, everything works just fine.  So I'm not
sure if I'm running into an Embarcadero C++Builder compiler bug (entirely
possible - it's not the greatest compiler) or a memory bug that only
manifests itself under Windows for some reason.

Any suggestions?  CppUnit apparently isn't supported under C++Builder, so
running PoDoFo's test suite would be inconvenient.

-- 
Josh Kelley
------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to