I have a worker thread which I start with AfxBeginThread. This threads tries to download a file from FTP but when it hits the GetFile function it causes a stack overflow and Visual Studio disappears. The code (abridged) is below:
Any ideas what is causing it?Code:ftpConn = session.GetFtpConnection("*****","*****","*****"); if(ftpConn != NULL) { if(ftpConn->SetCurrentDirectory("/") != 0) { if(ftpConn->GetFile(strRemoteFile, strLocalFile, FALSE) == 0) { } } ftpConn->Close(); delete ftpConn; } session.Close();



LinkBack URL
About LinkBacks


