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?
ftpConn = session.GetFtpConnection("*****","*****","*****");
if(ftpConn != NULL)
if(ftpConn->SetCurrentDirectory("/") != 0)
if(ftpConn->GetFile(strRemoteFile, strLocalFile, FALSE) == 0)