Hello everyone,

Today I encountered a problem which I hope one of you can help with.
I'm running PoDoFo on iOS (iPhoneOS) and it running very well.

However when I try to run my application I have this problem:
1) I try to parse a PDF File.
2) From a page I extract a PieceInfo object using this code:
                page = document->GetPagesTree()->GetPage(pageNumber);
                pieceInfo = page->GetObject()->GetIndirectKey("PieceInfo");
  This is successful there is no problem with this part, it give me the object.
3)But when I try:
  pieceInfo->GetIndirectKey(name);
  Then I get a EXC_BAD_ACCESS error and the application exits.
     The trace of the error is listed below this e-mail.
     It happen when executing the line
        const_cast<PdfVariant*>(this)->DelayedLoadImpl();
  in PoDoFo::PdfVariant::DelayedLoad at PdfVariant.h:531.

This looks like a bug, but I'm unable to understand what happens.
Can someone please help me with this?
It looks like a bug in PoDoFo, maybe one of you can find the cause or at least 
give me a suggestion on how to continue.

Thanks!

Best regards,
Marco



#0      ??
#1      0x0000d92e in PoDoFo::PdfVariant::DelayedLoad at PdfVariant.h:531
#2      0x0000d949 in PoDoFo::PdfVariant::GetDataType at PdfVariant.h:556
#3      0x000187bf in PoDoFo::PdfVariant::IsDictionary at PdfVariant.h:182
#4      0x00086634 in PoDoFo::PdfObject::GetIndirectKey at PdfObject.cpp:196
#5      0x0000f4a9 in PieceInfo::getString at PieceInfo.h:79
#6      0x0000ee06 in -[PageSettings readVariablesFrom:] at PageSettings.mm:66
#7      0x0000f16f in -[PageSettings initFrom:withPieceInfo:] at 
PageSettings.mm:39
#8      0x00019e23 in FileHandlerImpl::getSettingsOfPage at FileHandlerImpl.h:67
#9      0x000183e8 in -[FileHandler getSettingsOfPage:] at FileHandler.mm:57
#10     0x000170c0 in -[DisplayHandler displayPage] at DisplayHandler.mm:148
#11     0x00016e33 in -[DisplayHandler loadFile:] at DisplayHandler.mm:53
#12     0x0000d5f5 in -[PoDoFoTestAppDelegate 
application:didFinishLaunchingWithOptions:] at PoDoFoTestAppDelegate.mm:43
#13     0x00560944 in -[UIApplication _performInitializationWithURL:payload:]
#14     0x0056194f in -[UIApplication _runWithURL:payload:launchOrientation:]
#15     0x00567d3e in -[UIApplication handleEvent:withNewEvent:]
#16     0x005634f7 in -[UIApplication sendEvent:]
#17     0x0056b1d8 in _UIApplicationHandleEvent
#18     0x0336817c in PurpleEventCallback
#19     0x02a2489c in CFRunLoopRunSpecific
#20     0x02a238a8 in CFRunLoopRunInMode
#21     0x00561221 in -[UIApplication _run]
#22     0x00569372 in UIApplicationMain
#23     0x0000d174 in main at main.m:14

------------------------------------------------------------------------------
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