Oh dear. Well as I said loading the project from the file menu seemed to work. So I saved the project, reopened it and OH, all the materials that where linked are not unlinked. It also looks as if the materials have disappeared. Perhaps I should have been working on a copy of this project