Jump to content


Photo

TW3MovableControl.ReadySync can cause exception


  • Please log in to reply
No replies to this topic

#1 field

field
  • Members
  • 10 posts

Posted 02 January 2017 - 04:28 PM

Hi,

 

SMS 2.2.2.4543:

 

in unit SmartCL.Components TW3MovableControl.ReadySync is a potential problem: if a TW3MovableControl is destroyed "early" (before Handle.Ready ever was true) it will still try to re-request W3_RequestAnimationFrame(ReadySync) - even if the control itself is already being destroyed - this leads to an exception on the next ReadySync-call!
 
following my suggested fix:
 
Procedure TW3MovableControl.ReadySync;
begin
  ....
    if not (csDestroying in ComponentState) then //FLD
      W3_RequestAnimationFrame(ReadySync);
  end;
end;
 
  
 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users