Jump to content
Sign in to follow this  
field

TW3MovableControl.ReadySync can cause exception

Recommended Posts


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;

 

  

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×