Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 9th, 2006, 05:15 AM
Razvan's Avatar
Razvan Razvan is offline
Junior Member
 
Join Date: Jun 2006
Location: coders camp
Posts: 8
Razvan is an unknown quantity at this point
Default FPDF_LoadMemDocument returns 0 (BCB2006)

FPDF_LoadMemDocument fails (BCB 2006)

Hello, I want to purchase your Foxit Reader SDK because I need it to load and display pdf files from memory in to my application and it seams that FPDF_LoadMemDocument function fails for some reason, maybe I am doing something wrong but when I call the LoadMemDocument an error it is raised in my debugger that says: Invalid Address specified to RtlFreeHeap if i try to step over the same error it is raised and the document fails to load.
The test project is the one from your site (C++ Builder 2006 example) but I’ve replaced FPDF_LoadDocument with the LoadMemDocument and done a ReadFile . As you can see in the below screenshots the buffer is filled correctly with the pdf file contents but it fails returning 0 when calling FPDF_LoadMemDocument , please advise.




Thank you for your time,

Razvan
Reply With Quote
  #2  
Old June 16th, 2006, 05:58 AM
Razvan's Avatar
Razvan Razvan is offline
Junior Member
 
Join Date: Jun 2006
Location: coders camp
Posts: 8
Razvan is an unknown quantity at this point
Default

It looks like If I don't debug my app (not running it from BDS IDE) it loads the pdf from memory properly. Trying to debug it the Invalid Address specified to RtlFreeHeap error it is raised when calling FPDF_LoadMemDocument and document failes to load. If I try to open again the same pdf (or other) , but this time not from my debugger it doesn’t work, I have to restart my system in order to work when not debugged… Maybe this has to do with the fact that the dll is not registered yet ? any help/suggestion is greatly appreciated.

Thank you
Reply With Quote
  #3  
Old June 19th, 2006, 03:46 AM
Razvan's Avatar
Razvan Razvan is offline
Junior Member
 
Join Date: Jun 2006
Location: coders camp
Posts: 8
Razvan is an unknown quantity at this point
Default

When not debugging it works properly only on Windows XP (with SP2) if I try to run my app and then open a pdf from memory on a Windows 2000 system (pro SP4) It fails with the same exception...
Reply With Quote
  #4  
Old June 28th, 2006, 08:03 PM
william's Avatar
william william is offline
Foxit Developer
 
Join Date: Dec 2005
Posts: 192
william is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of light
Default Problem solved

Thank you for reporting this bug to us.
It has been fixed.
Please re-download the whole sdk package from our website, which includes the new dll.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.