Thanks for the replies.
I did have a memory issue and have now solved that(with help from a friend.