title: How can I fix EInvalidOperation related to ImageList
body: <p>My application (write on Delphi 7)runs correctly on Windows XP SP3 but when I try to run it on Windows 7 this exception occurs:</p>
  
  <p><strong>EInvalidOperation with message "Invalid ImageList"</strong></p>
  
  <p>This is the main application code:</p>
  
  <pre><code>  Application.Initialize;
  
    tmpSplash.GoNextMsg;
    Application.CreateForm(TdmImages, dmImages);
  
    tmpSplash.GoNextMsg; // Collegamento database
    Application.CreateForm(TdmCharter, dmCharter);
  
  
    tmpSplash.GoNextMsg; // Caricamento immagini
    Application.CreateForm(TfrMain, frMain);
  
    tmpSplash.GoNextMsg; // init: Anagrafica
    frameAnagrafica := TframeAnagrafica.Create(Application);
  
    tmpSplash.GoNextMsg; // init: Flotta
    frameFlotta := TframeFlotta.Create(Application);
    //Application.CreateForm(TframeFlotta, frameFlotta);
  
    ...
    ...
  </code></pre>
  
  <p>The module dmImages has been created correctly, such as the frMain, but when
  will created the object frameAnagrafica then raise the exception on the constructor method:</p>
  
  <pre><code>type
      TframeAnagrafica = class(TMyCustomFrame)
  ...
  ...
  
  {$R *.dfm}
  constructor TframeAnagrafica.Create(AOwner: TComponent);
  begin
    inherited Create(AOwner); 
  
  end;
  </code></pre>
  
  <p>And the "super-class" of TframeAnagrafica:</p>
  
  <pre><code>TMyCustomFrame = class(TFrame)
  ...
  ...
  
  {$R *.dfm}
  
  constructor TMyCustomFrame.Create(AOwner: TComponent);
  begin
    inherited Create(AOwner); &lt;-- Exception here
  
  end;
  </code></pre>
  
  <p>In windows XP no problem, but using Windows 7 occurs the problem.
  How can I resolve this problem?</p>