Edward Ross wrote:
> I've found a simpler version of the problem with the output stream. 
> Here I try to run hello world with my version of podofo compiled with MS
> Visual Studio 8:
> 
> C:\dev\pdf\podofo\examples\helloworld\debug>helloworld text.pdf
> DEBUG: kidsIndex=-1
> DEBUG: New pages count:1
> Assertion failed: !m_pOutputStream, file
> c:\dev\pdf\podofo-0.5.0\src\PdfFilter.h
> , line 377

That's extremely odd. I cannot reproduce the issue, so it's hard to
offer much by way of useful advice beyond the obvious:

- Make sure that any libraries you linked to exactly match the
  DLLs being loaded at runtime. http://dependencywalker.com/
  will be somewhat useful here. It can also be useful to start
  a cmd.exe window, set your PATH to the empty string with
      set PATH=
  then copy ALL required DLLs into the current directory and
  run the app. If it works when you do that, another app has
  a binary-incompatible DLL of the same name before your one
  on the search path.

- Delete your build directory (you ARE using out-of-tree builds
  like the README recommends, right) and re-build. If this fixes
  the problem you had an unclean build - something that should not
  be possible unless you've changed dependent objects partway
  through the build or something similarly odd.

I use Visual Studio 8/2005 to work on PoDoFo when I work on Windows and
haven't seen these sorts of issues. Unless we're somehow managing to mix
Visual Studio 6-compiled code and Visual Studio 8-compiled code (which
will hopelessly fail to work at runtime) I'm pretty puzzled as to what
might be happening.

Verify correct DLL linkage, do a clean rebuild, and if that doesn't help
let me know.

--
Craig Ringer


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to