SFtp Client with Qt5
Moved
Unsolved
3rd Party Software
-
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 ?
-
@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...
-
This post is deleted!