When pronunciation changes the meaning of a word

The words "invalid" meaning a bedridden human and "invalid" meaning "not valid" are different only for where the accent is placed: IN-val-id vs in-VAL-id

It just got me wondering...are there a lot of these?  Is there a name for this kind of oddity?