Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: FTP download file and upload file creates memory errors  (Read 2531 times)

0 Members and 1 Guest are viewing this topic.

staephenn

  • Newbie
  • *
  • Posts: 1
    • View Profile
FTP download file and upload file creates memory errors
« on: March 27, 2022, 11:08:01 am »
I've got a succesful connection with an FTP server (the server is fully working with filezilla)

i am downloading like this

    sf::Ftp ftpc;
    ftpc.connect("host");
    ftpc.login("user", "pass");

    ftpc.download("banned.txt", "/");

i just want to download to the current directory i am in the file banned.txt on the server that exists
and has content in it.

When i run the program, i receive this error:
The Instruction at 0x000000006FCE08D4 referenced memory at 0x000000000000000. The memory could not be written.

Click Ok to terminate the program

Any help? once again my FTP server is fully working, and my account has all the permissions including deleting, downloading files etc :(

Got to mention that the download function doesnt return any status, it doesnt display it when i use getStatus().

« Last Edit: March 27, 2022, 11:22:06 am by staephenn »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: FTP download file and upload file creates memory errors
« Reply #1 on: May 01, 2022, 12:04:33 am »
Sorry for the late response.

Do you have a complete example that you could post?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything