LEADTOOLS Support
General
General Questions
Loading image after migrating from v15 to v17 fails
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, January 20, 2011 1:25:28 AM(UTC)
Groups: Registered
Posts: 2
Hi,
I migrated our software from LT v15 to v17. I changed all DLLs, LIBs and Header-files. Changes of the methods where not necessary (it compiled successfully). But unfortunately every time I try to load an image (L_LoadBitmap) I get the return code -9 (ERROR_FILE_FORMAT). I tried different files and formats. The same holds true for L_FileInfo(). It returns -9, too.
Is there anything more I need to change in version 17?
Thanks
Thomas
#2
Posted
:
Thursday, January 20, 2011 4:54:01 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Thomas,Error -9 means 'Invalid file format' and it is normally generated due to a missing DLL file which is required to load specific image format. For example, if you want to load JPEG file, you will need the Lfcmpu.dll.
If you try to load your files using our LEADTOOLS v17 Main CDLL demo, does it load them correctly? If yes and the problem only appears in your application, try to set your application Working Directory to the following folder:
[LEADTOOLS 17 v17]\Bin\CDLL\Win32
#3
Posted
:
Thursday, January 20, 2011 5:42:49 AM(UTC)
Groups: Registered
Posts: 2
Thanks Adnan
It works now. We copy the dlls into the applications working folder and I did not pay attention to the fact that the file format dlls are in the subfolder (“filters”). The application does not look for the dlls in this subfolder.
Due to this it is not a migration issue.
LEADTOOLS Support
General
General Questions
Loading image after migrating from v15 to v17 fails
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.