In 1942 all auto racing was banned . The 500-Mile Race was canceled for the years 1942 â `` 1945 . Late in 1942 , a ban on all auto racing led to the canceling of the 500-Mile Race for the rest of the war for a total of four years ( 1942 â `` 1945 ) .