Dynamically created TWebImageControl and Await

Hi,

What is wrong with this? I never gets past the await and no errors in the console.

    Img:=TWebImageControl.Create(Self);
    Img.Width:=480;
    Img.Height:=480;
    for I:=1 to 10 do
    begin
      S:='http://localhost:8000/Smarty/Images/SmartyPants'+Format('%.2d',[I])+'.png';
      Contin:=await(Boolean,Img.LoadFromURL(S));
      if Contin then
      begin
        do something ..
      end;
    end;
    Img.Free;

Thanks,

Ken

Img:=TWebImageControl.Create(Self);
Img.Width:=480;
Img.Height:=480;
Img.Parent := Self; //add this assignment

Thanks Mehmet. I had since added this but also found that I had to add a simulated sleep for it to work properly,