This has been my nemesis of lately.

Error 0xc0000005 means that there’s an Access Violation in the code; namely, some part of the program tried to access a memory location that was invalid. It means, usually, a construction fault within the program.
Except, in this case, when the environment you’re working with is so faulty that the script you’ve written causes the program to crash. You’re not doing anything wrong, but the program fails to handle the situation because it’s incredibly inept, makes an error somewhere with its pointers, and then BOOM! an exception occurs.
It goes downhill from there.
Trying to write this script, which I presently have been assigned, is rather much like trying to move a dunghill from point A to point B, using a pitchfork that keeps breaking every time you try to shovel.
