Win 7, GFL SDK 340 and nef files
Posted: Mon Dec 26, 2011 7:02 am
Hi,
I have a Delphi program to process nef files from nikon D40. It worked fine on win XP, GFL SDK 240. Now I am working under win 7, GFL SDK 340. Many formats are understood correctly, but I have crash "floating point operation" in the function gflLoadBitmap for nef. This can be easily reproduced on Delphi example from GFL SDK 340 and will not reproduced for GFL SDK 240(change dll only). Please, help me to understand why.
Also, I have a problem with the gflGetFileInformation() function In the same example for Delphi :
var
info: TGFL_FILE_INFORMATION;
...
e: = gflGetFileInformation (
pchar (filename),
-1, // Automatic
info);
After using it the program's behavior is not predictable. However, if I make a change
var
info: PGFL_FILE_INFORMATION;
...
Getmem (info, sizeof (TGFL_FILE_INFORMATION) * 2);
e: = gflGetFileInformation (
pchar (filename),
-1, // Automatic
info^);
everything works well.
Thank you
I have a Delphi program to process nef files from nikon D40. It worked fine on win XP, GFL SDK 240. Now I am working under win 7, GFL SDK 340. Many formats are understood correctly, but I have crash "floating point operation" in the function gflLoadBitmap for nef. This can be easily reproduced on Delphi example from GFL SDK 340 and will not reproduced for GFL SDK 240(change dll only). Please, help me to understand why.
Also, I have a problem with the gflGetFileInformation() function In the same example for Delphi :
var
info: TGFL_FILE_INFORMATION;
...
e: = gflGetFileInformation (
pchar (filename),
-1, // Automatic
info);
After using it the program's behavior is not predictable. However, if I make a change
var
info: PGFL_FILE_INFORMATION;
...
Getmem (info, sizeof (TGFL_FILE_INFORMATION) * 2);
e: = gflGetFileInformation (
pchar (filename),
-1, // Automatic
info^);
everything works well.
Thank you