好汉救急(附代码,关于FTP功能的) - 编译成Debug版本的运行提示"Debug Assertion Failed"编译成Release版本则正常.解决方法

好汉救急!(附代码,关于FTP功能的) - 编译成Debug版本的运行提示"Debug Assertion Failed",编译成Release版本则正常.
#include   <afxinet.h>
#include   <iostream>
using   namespace   std;

int   main(   void   )
{
CInternetSession     g_FTPsession;
CFtpConnection*       g_FTPpConn;
g_FTPpConn   =   NULL;

const   char   *ip   =   "192.168.1.197 ";
const   char   *user   =   "cis ";
const   char   *passwd   =   "cis ";

try{
g_FTPpConn   =   g_FTPsession.GetFtpConnection(ip,   user,   passwd);
}catch(...){
cout   < <   "return   -1 "   < <   endl;
getchar();
return   -1;
}
if(   g_FTPpConn   !=   NULL   )
{
cout   < <   "it 's   OK! "   < <   endl;
getchar();
return   1;
}

getchar();
return   GetLastError();
}

------解决方案--------------------
断点跟踪,debug下有断言错误说明存在问题,release没有断言检查就不会有错误提示了
------解决方案--------------------
assert的时候会提示是哪个文件哪一行的啊,进去看看不就行了
------解决方案--------------------
jf