A Dilluns, 29 d'agost de 2011, cobra.yu vàreu escriure: > Take poppler_qt4viewer for example, it creates and checks the "newdoc" > before deleting the old "m_doc". That means, count++ before count--. But in > my application, every PDF document is converted into QImages separately, so > count-- happens before count++, and that's the problem.
Right, so count--, it is set to 0, the globalParams is deleted and then on next init it is seen to be 0 and a new globalParams is created. Still do not see the problem. Albert > > Cobra > > > -----Original message----- > From:Albert Astals Cid <[email protected]> > To:[email protected] > Date:Mon, 29 Aug 2011 10:58:29 +0200 > Subject:Re: [poppler] [Poppler]A bug in poppler-private.cc? > > A Dilluns, 29 d'agost de 2011, vàreu escriure: > > Dears, > > > > V. 0.16.6, but I'm also checking V. 0.17.2 and finding the > > same code. > I will need a backtrace of your code since globalParams is guaranteed to be > created after DocumentData::init which is the first thing that gets done > while trying to load a document so i can not see at all how your > globalParams pointer can be invalid. > > Albert > > > Cobra > > > > -----Original message----- > > From:Albert Astals Cid <[email protected]> > > To:[email protected] > > Date:Sun, 28 Aug 2011 20:47:37 +0200 > > Subject:Re: [poppler] [Poppler]A bug in poppler-private.cc? > > > > A Divendres, 26 d'agost de 2011, cobra.yu vàreu escriure: > > > Dears, > > > > > > No "globalParams=0;" after line 238 of poppler-private.cc > > > could > > > be a > > > > > > bug? In my application, I use a loop to load PDF files with some > > > hex-string errors separately. The latter files with errors would > > > confront a "globalParams" that should have been deleted, but kept > > > the > > > old value. And in such case, line 1579 of GlobalParams.cc: "return > > > errQuiet;" would raise an Access Violation Exception. Maybe the > > > addition of "globalParams=0;" after line 238 of poppler-private.cc > > > would be a better way. Any one has also experienced this? > > > > Which poppler version are you using? > > > > Albert > > > > > Cobra > > > > > > _______________________________________________ > > > poppler mailing list > > > [email protected] > > > http://lists.freedesktop.org/mailman/listinfo/poppler > > _______________________________________________ > poppler mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/poppler _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
