Today debug data encryption and decryption, inadvertently triggered the "Range check error", a tune up at night, like a dead heart. Information for a long time, can think from that direction.
Project--> Option --> Complier--->Runtime Errors--> Range Checking
Remove this check.
This solution is just one example, for your reference.