Sunday, 15 August 2010

Delphi XE4 iOS Loading bitmap - no file loaded -


My XE4 app is running fine but winning fails to load bitmap in iOS. File exists (checked in a terminal window) and findfirst stuff finds it I get no exception in iOS, but if the file is not present in win, then I get an exception, so check ISAPI's IOS It turns out to be true.

So, a file that exists and is not taking exceptions?

Cheers.

  {$ IFDEF MSWINDOWS} If FindFirst ('. * *. *', FaAnyFile, SR) = 0 then repeat ShowName (SR.Name); Until FindNext (SR) & lt; & Gt; 0; FindClose (SR); ImgImage.Bitmap.LoadFromFile (+ 'myfile.gif' '\.'); {$ ELSE} If FindFirst (GetHomePath + PathDelim + Application.Title + '.app' + Pathhelm + '*. *', FaAnyFile, SR) = 0 then repeat showmessage (SR.Name); Until FindNext (SR) & lt; & Gt; 0; FindClose (SR); ImgImage.Bitmap.LoadFromFile (GetHomePath + PathDelim + application. Title + '.app' + Pathless + 'myfile.gif'); {$ ENDIF}    

Some debugging was done in Delphi units and it seems that GIF is not supported on iOS, this may well be a bug, but answers my question!

No comments:

Post a Comment