PDA

View Full Version : App failed to init properly (0xc0000005): Linking my app with GDIPlus and PDF SDK (DL


Razvan
September 27th, 2007, 04:13 AM
Hello,

I'm a registered user of your PDF Sdk (Win DLL) fpdfview.dll version 1.4.0.1916, and fpdftext.dll version 2.0.0.0. Whenever I link my application with GDIPlus and with your sdk it fails to start giving me the error “the application failed to initialize properly (0xc0000005). click on OK to terminate the application.". My application is compiled in C++ Builder BDS (Borland Developer 2006 )
http://img205.imageshack.us/img205/4113/gdipluspluserrorrh4.gif
http://img231.imageshack.us/img231/7797/dsipluserror2gz4.gif
We really need to use gdiplus in our application but it looks like gdiplus and foxit sdk doesn’t get along for some reason… I get access violation when I try to init gdiplus. If I remove your sdk from my project (if it doesn’t get linked with my app) all works fine, gdiplus will init and work as expected. If I don’t use GDIplis in my app foxit sdk works without problems (but we need gdiplus) .
Please advice, I will send you by mail a copy of my test project (source code included) .


Thank you,
Razvan

Razvan
September 28th, 2007, 12:47 AM
My test application was sent to your support address. I've done some further tests on my system (XP SP2 , gdiplus.dll v5.1.3102.2180) and I get access violations whenever I try to startup gdi+ with GdiplusStartup:
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
All works fine and I don't get any access violations if I don't link with your sdk and gdiplus.dll in the same application...

Thanks,
Razvan