Hi Josh, Sorry for my delay in answering. I don't know of anyone who succeeded in building PoDoFo with C++ Builder. I once tried with an older C++ Builder version and an older PoDoFo version and ran into tons of STL and template problems.
If you have a memory problem, you could try to build a small test case (Ok,
the hello world sample should be fine) and try to debug it using valgrind under
Linux. If valgrind does not show any memory corruptions, I assume the library
to be correct.
My tests with valgrind under Linux look pretty good. I added an additional
call to PdfEncodingFactory::FreeGlobalEncodingInstances(); at the end of
the program, to free globally allocated instances.
Cheers,
Dominik
Am Montag 04 Oktober 2010 schrieb Josh Kelley:
> 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.
>
--
**********************************************************************
Dominik Seichter - [email protected]
KRename - http://www.krename.net - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
