Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. SFtp Client with Qt5
Qt 6.11 is out! See what's new in the release blog

SFtp Client with Qt5

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
3 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by
    #1

    Hello,
    I'm trying to create SFtp client using Libssh 'http://api.libssh.org/stable/index.html'.
    I have linked my Qt project with libssh.

    My application is craching at this line (Segmentation fault ) :

    sftp = sftp_new(my_ssh_session); //  Crash here : Segmentation fault 
    
    ssh_session my_ssh_session = ssh_new();
        if (my_ssh_session == NULL)
          qDebug("error ssh session creation");//exit(-1);
    sftp_session sftp;
    sftp = sftp_new(my_ssh_session); //  Crash here : Segmentation fault 
        if(sftp==NULL)
          qDebug("error sftp session creation");
    

    So im able to create ssh_session (ssh_new()), but my app craches if i try to create sftp_session (sftp_new(my_ssh_session))

    Can someone see what is the probleme ?

    raven-worxR 1 Reply Last reply
    1
    • ODБOïO ODБOï

      Hello,
      I'm trying to create SFtp client using Libssh 'http://api.libssh.org/stable/index.html'.
      I have linked my Qt project with libssh.

      My application is craching at this line (Segmentation fault ) :

      sftp = sftp_new(my_ssh_session); //  Crash here : Segmentation fault 
      
      ssh_session my_ssh_session = ssh_new();
          if (my_ssh_session == NULL)
            qDebug("error ssh session creation");//exit(-1);
      sftp_session sftp;
      sftp = sftp_new(my_ssh_session); //  Crash here : Segmentation fault 
          if(sftp==NULL)
            qDebug("error sftp session creation");
      

      So im able to create ssh_session (ssh_new()), but my app craches if i try to create sftp_session (sftp_new(my_ssh_session))

      Can someone see what is the probleme ?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @LeLev
      sry, but how is this Qt related at all?
      Beside that you use Qt in other parts of your application.

      Nor do you even post a stack-trace of the crash...

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      ODБOïO 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @LeLev
        sry, but how is this Qt related at all?
        Beside that you use Qt in other parts of your application.

        Nor do you even post a stack-trace of the crash...

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved