Hello! I have the following problem:
When i try to call e.g. the function
ImageEnView1.IO.LoadFromFile(sFileName);
I get an Access Violation.
The reason for this is that the list „FileFormats“ is never initialized (Unit „iesettings“)
Unit iexBitmaps:
function IEFileFormatGetInfo2(Extension: string): TIEFileFormatInfo;
var
q, i, c: integer;
begin
Extension := LowerCase(Extension);
if (Length(Extension) > 0) and (Extension[1] = '.') then
Delete(Extension, 1, 1);
for q := 0 to IEGlobalSettings().FileFormats.Count - 1 do //Access Violation
begin
result := TIEFileFormatInfo(IEGlobalSettings().FileFormats[q]);
c := IEFileFormatGetExtCount(result.FileType);
for i := 0 to c - 1 do
if LowerCase(IEFileFormatGetExt(result.FileType, i)) = Extension then
exit;
end;
result := nil;
end;
I'm using Delphi 2007 and ImageEn 6.2.2