Thank You Marto. As mentioned, posting the code isn't exactly feasable as the code is for work so contains sensitive information which of course I cannot display, as well as being very large, anonomising the script would be time consuimg and I'm not entirley sure whether it would be advantageous.
You have also mentioned including 'details of the environment' i'm running the executable in. I have made a recent post further down explaining that I am a total beginner when it comes to 'systems/environments', so perhaps letting me know exactly what this means and I can try and get hold of that information, I would be more than happy to.
Thank You.