Cursor may be left as busy


It is often appropriate to change the cursor in Windows to an hourglass figure to indicate some lengthy processing has begun. This would later be changed back to the default cursor when this is complete. eyebol checks for any exit statements that may result in the cursor not having been changed back to the default.

For example :

Screen.Cursor:=crHourGlass;
If Cancelled then
  Exit;
Screen.Cursor:=crDefault;

The version below can make sure the cursor is changed back to the default:

Screen.Cursor:=crHourGlass;
If Cancelled then begin
  Screen.Cursor:=crDefault;
  exit;
end;
Screen.Cursor:=crDefault;




< Back to list of hints and warnings