Re: "Invalid access to memory" -> WinSCP Script
Please download the latest version, WinSCP 5.0.7 beta (or wait few hours for WinSCP 5.0.8 RC). Let me know if it does not fix the problem.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.