Thank you Vit! I wasn't sure how that connection->close( ); would execute and when! but you are right. works great now! except for the problem where it won't execute outside of the IDE. I debugged in release mode and it runs from the IDE and it works, uploads to the FTP, but if I execute it outside of the IDE it crashes when it hits the FTP code.
Bookmarks