What does ‘Flogging a dead horse’ mean?

Flogging a dead horse – to try and find a solution to a problem that is unsolvable. For example: “You’re flogging a dead horse by asking Martha to move to the UK – she hates rain”