VS2010停Cannot find or open the PDB file
VS2010下Cannot find or open the PDB file
这是一个网络通讯的服务器程序,运行几个小时候就不知怎么的接收数据的线程收不到数据退出了。然后报类似下面的这种错误,程序也并没有退出,但就是没法正常收发数据了。请大家指点,谢谢啦。
“TCPSrv.exe”: 已加载“C:\Windows\System32\ws2_32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\msvcrt.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\nsi.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\mswsock.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\user32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\gdi32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\lpk.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\usp10.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\imm32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\msctf.dll”,Cannot find or open the PDB file
------解决方案--------------------
我的问题解决了,是要读取的文件没放对位置,我在作业2目录里建立的VS2010 控制台程序,于是,系统又在该目录下建立了作业2目录,那个文件应该放在嵌套的作业2目录下,于是VS2010 成功运行了
------解决方案--------------------
特供调试多线程程序参考使用:
这是一个网络通讯的服务器程序,运行几个小时候就不知怎么的接收数据的线程收不到数据退出了。然后报类似下面的这种错误,程序也并没有退出,但就是没法正常收发数据了。请大家指点,谢谢啦。
“TCPSrv.exe”: 已加载“C:\Windows\System32\ws2_32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\msvcrt.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\nsi.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\mswsock.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\user32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\gdi32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\lpk.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\usp10.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\imm32.dll”,Cannot find or open the PDB file
“TCPSrv.exe”: 已加载“C:\Windows\System32\msctf.dll”,Cannot find or open the PDB file
VS2010
------解决方案--------------------
我的问题解决了,是要读取的文件没放对位置,我在作业2目录里建立的VS2010 控制台程序,于是,系统又在该目录下建立了作业2目录,那个文件应该放在嵌套的作业2目录下,于是VS2010 成功运行了
------解决方案--------------------
特供调试多线程程序参考使用:
//循环向a函数每次发送200个字节长度(这个是固定的)的buffer,
//a函数中需要将循环传进来的buffer,组成240字节(也是固定的)的新buffer进行处理,
//在处理的时候每次从新buffer中取两个字节打印
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <process.h>
#include <io.h>
//Log{
#define MAXLOGSIZE 20000000
#define MAXLINSIZE 16000
#include <time.h>
#include <sys/timeb.h>
#include <stdarg.h>
char logfilename1[]="MyLog1.log";
char logfilename2[]="MyLog2.log";
static char logstr[MAXLINSIZE+1];
char datestr[16];
char timestr[16];
char mss[4];
CRITICAL_SECTION cs_log;
FILE *flog;
void Lock(CRITICAL_SECTION *l) {
EnterCriticalSection(l);
}
void Unlock(CRITICAL_SECTION *l) {
LeaveCriticalSection(l);
}
void LogV(const char *pszFmt,va_list argp) {
struct tm *now;
struct timeb tb;
if (NULL==pszFmt
------解决方案--------------------
0==pszFmt[0]) return;
_vsnprintf(logstr,MAXLINSIZE,pszFmt,argp);
ftime(&tb);
now=localtime(&tb.time);
sprintf(datestr,"%04d-%02d-%02d",now->tm_year+1900,now->tm_mon+1,now->tm_mday);