>Is the production server 64bit? Are you compiling for 64bit (or Any CPU) ? Do the dev servers have more RAM than the production server?
It seems this was related to a FileToStr() of a 80MB file, which was caused by a bad manipulation of content from a user. That seems to be too big to be considred by UCase() despite the fact that it was possible to store the content of that file into a string. I will add verification to prevent such a situation in the future at that specific location in case a user does that again.