Razvan
June 9th, 2006, 05:15 AM
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.
http://img123.imageshack.us/img123/4087/scr14cm.th.gif (http://img123.imageshack.us/my.php?image=scr14cm.gif)
http://img123.imageshack.us/img123/9158/scr20ly.th.gif (http://img123.imageshack.us/my.php?image=scr20ly.gif)
http://img123.imageshack.us/img123/8014/scr37og.th.gif (http://img123.imageshack.us/my.php?image=scr37og.gif)
Thank you for your time,
Razvan
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.
http://img123.imageshack.us/img123/4087/scr14cm.th.gif (http://img123.imageshack.us/my.php?image=scr14cm.gif)
http://img123.imageshack.us/img123/9158/scr20ly.th.gif (http://img123.imageshack.us/my.php?image=scr20ly.gif)
http://img123.imageshack.us/img123/8014/scr37og.th.gif (http://img123.imageshack.us/my.php?image=scr37og.gif)
Thank you for your time,
Razvan