Notice

The forum is in read only mode.

  • Page:
  • 1

TOPIC: DDC Error while iterating over ControllCollection

DDC Error while iterating over ControllCollection 7 years 11 months ago #2381

Hey there,
I'm using the TGridPanelLayout-Component with several Rows and Cols and each of them contains a TImage-Component that is meant to load a specific picture from its SQLite-DB. I've tested my approach for this in a small scale Firemonkey-application for windows and it worked fine. But as soon as I'm trying to use it within an iOS-App, I get a DDC-Error each time the deployment is about to start. My command for making the cast from TControl to TImage looks like this:
procedure TForm2.SpeedButton1Click(Sender: TObject);
var hCol,hRow : integer;
    hImage : TImage;
begin
  hCol := 0;
  hRow := 0;
  while hRow<5 do
  begin
    hImage := GridPanelLayout1.ControlCollection.ControlItems[hCol,hRow].Control as TImage;
    hImage.Bitmap.LoadFromFile('C:\Users\Public\Pictures\Sample Pictures\Tulips.jpg');
    inc(hCol);
    if(hCol > 1) then
    begin
      hCol := 0;
      Inc(hrow);
    end;
  end;

end;

DDC Error while iterating over ControllCollection 7 years 11 months ago #2400

What is the full error message you receive?.

Also there is no C Drive on an iOS application, so the call to LoadFromFile will fail on iOS.

DDC Error while iterating over ControllCollection 7 years 11 months ago #2411

sorry that was just some example code. My application uses a stream to load the Jpg-File.
The Errorcode was DDC Error 2597.

DDC Error while iterating over ControllCollection 7 years 11 months ago #2414

Make sure you have installed the XE8 iOS8 Simulator Hot Fix

Found here: downloads.embarcadero.com/reg/delphi

If you have done that make sure you have the latest XCode and Command Line Tools installed.
docwiki.embarcadero.com/RADStudio/XE8/en...lling_Xcode_on_a_Mac
docwiki.embarcadero.com/RADStudio/XE8/en..._Line_Tools_on_a_Mac

Hopefully one of the above helps you.
The following user(s) said Thank You: Alexander

DDC Error while iterating over ControllCollection 7 years 11 months ago #2444

At first this didn't help a bit, but when I decided to reset the entire macbook and reinstall everything including OS X, Xcode etc, the problem disappeared. Let's just hope it does not occur again.
BTW thanks for the help, it got me on the right track.
  • Page:
  • 1
Moderators: April Anne