![]() |
|
|||||||
| SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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...
|
|
#4
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|