I've made a program that takes a screenshot, saves it locally, and then uploads it via FTP to my server using a certain naming system.
I have included all of the code exactly how it is, except that the real FTP login details, which I have changed to "ftp://username[email protected]". Obviously, I use my real login details here.
The problem is, the file I am uploading is a fairly hefty bitmap (about 3-4MB). I don't know if this has anything to do with my problem, but basically the issue is that if I try and run the code, sometimes it will outright crash, giving me the normal windows error, sometimes it will work, and (if compiled as an exe) it gives a special error message before crashing. I have included both error messages in the attatch screenshot "Ugh.JPG".
Can anyone tell me why my program is doing this, and how to stop it? Maybe the file is too large or something? Maybe there's a better way of transferring it? Any ideas?