[Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Georg Funk
Dear developers, I'am getting a segmentation fault in the following code snippet when resolving IsReference()): if (objectVector.GetObject(currentReference)->IsReference()) { currentReference = objectVector.GetObject(currentReference)- >GetReference(); } else {} pbjectVector is a global

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Joerg Sonnenberger
On Thu, May 10, 2018 at 02:14:18PM +, Georg Funk wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x55ba2342486e in PoDoFo::PdfVariant::DelayedLoad (this=0x0) at > /usr/local/include/podofo/base/PdfVariant.h:545 > 545 if( !m_bDelayedLoadDone) > > Have you any idea for

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread zyx
On Thu, 2018-05-10 at 14:14 +, Georg Funk wrote: > Have you any idea for me? Hi, what is your exact version of PoDoFo, please? Do your sources include https://sourceforge.net/p/podofo/code/1825 ? I do not know whether it's related to your crash, but it sounds quite similar.

Re: [Podofo-users] Getting Segmentation fault when trying to access PdfVecObjects

2018-05-10 Thread Matthew Brincke
[typos fixed and code re-wrapped in quote] Hello Georg, hello all, > On 10 May 2018 at 16:14 Georg Funk wrote: > > > Dear developers, > > I'm getting a segmentation fault in the following code snippet when > resolving IsReference()): > > if

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Georg Funk
Hi, Am Donnerstag, den 10.05.2018, 18:09 +0200 schrieb zyx: > On Thu, 2018-05-10 at 14:14 +, Georg Funk wrote: > > Have you any idea for me? > > Hi, > what is your exact version of PoDoFo, please? Do your sources include > https://sourceforge.net/p/podofo/code/1825 ? > I am using

Re: [Podofo-users] Getting Segmentation fault when ttrying to access PdfVecObjects

2018-05-10 Thread Georg Funk
Hi Joerg, thanks for this hint. I thought maybe I'am misusing PdfObject::Reference() and PdfObject::GetReference() in my code This could explain the null pointer. I want to get a objects Reference number by calling PdfObject::Reference() and get a pointer to a eventually existing indirect

Re: [Podofo-users] Getting Segmentation fault when trying to access PdfVecObjects

2018-05-10 Thread Georg Funk
Hi, Matthew, Am Donnerstag, den 10.05.2018, 18:26 +0200 schrieb Matthew Brincke: > [typos fixed and code re-wrapped in quote] > > Hello Georg, hello all, > > On 10 May 2018 at 16:14 Georg Funk wrote: > > > > > > Dear developers, > > > > I'm getting a segmentation fault