error BK1506 : cannot open file '.\Debug\????????.sbr': No such file or dire
http://blog.csdn.net/shuilan0066/article/details/8738035
1 error BK1506 : cannot open file '.\Debug\????????.sbr': No such file or dire
解决方法:
从工程->设置->浏览信息->创建创建浏览信息的复选框的勾给去掉就行了
工程---属性---C/C---Browse Information -----Enable Browse Information 设置为NONE
2 在资源视图中,打开资源文件时,跳出Runtime Error This application has requested the Runtime to terminate it in an unusal way .
解决方法:
将工程下的.aps文件删除就可以了
3 debug下 对话框跳出 Release下对话框初始后没有跳出
经测试,有一个函数未做调用失败处理,导致下面的数组索引为负值
两个版本的不同,很多情况是数组过界等引起的
DEBUG版本未做优化 RELEASE版本进行了优化, 若两者不同,很可能语句不安全引起的。
4 ~CCmdTarget() 断言错误
- CCmdTarget::~CCmdTarget()
- {
- #ifndef _AFX_NO_OLE_SUPPORT
- if (m_xDispatch.m_vtbl != 0)
- ((COleDispatchImpl*)&m_xDispatch)->Disconnect();
- ASSERT(m_dwRef <= 1); //此处出现断言错误
- #endif
- #ifdef _AFXDLL
- m_pModuleState = NULL;
- #endif
- }
CCmdTarget::~CCmdTarget()
{
#ifndef _AFX_NO_OLE_SUPPORT
if (m_xDispatch.m_vtbl != 0)
((COleDispatchImpl*)&m_xDispatch)->Disconnect();
ASSERT(m_dwRef <= 1); //此处出现断言错误
#endif
#ifdef _AFXDLL
m_pModuleState = NULL;
#endif
}
但是通过调试,没找到问题 ,于是重新编译了下,就正常了
遇到稀奇古怪的错误时,可以先把工程 重新清理编译下,看看是否还有问题
5如何禁用 VS2010 的 vcpkgsrv.exe 运行
VS2010 的 vcpkgsrv.exe(Microsoft Visual C++ Package Server)很烦,会自动运更新,占用相当大的内存(在我的机器中 >150M),而且一般会出现多个,杀掉还会自动出现。其实我们可以很容易禁用它,只要 Disable IntelliSense 即可,位于: Tools - Options - Text Editor - C/C++ - Advanced - IntelliSense - Disable IntelliSense:True
6 资源管理器跑右边了,重置窗口 也不起作用
工具》导入和导出设置>重置所有设置>否,仅重置,从而改写我的当前设置>下一步选择VisualC++默认设置。完成。
7 在析构函数中调用KillTimer(1); 引起断言错误
- killtimer函数的源代码:
- {
- ASSERT(::IsWindow(m_hWnd)); //析构函数里面m_hWnd是无效的,当然assert出错了。
- return ::KillTimer(m_hWnd, nIDEvent);
- }
killtimer函数的源代码:
{
ASSERT(::IsWindow(m_hWnd)); //析构函数里面m_hWnd是无效的,当然assert出错了。
return ::KillTimer(m_hWnd, nIDEvent);
}
改在OnOK()中调用
遇到这种情况的解决方法把代码中的ReadHuge换成Read、WriteHuge换成Write即可。
原因是VC++2005及后续VC版本中的CFile没有ReadHuge和WriteHuge成员函数,只在VC6中的CFile才有,不过ReadHuge()函数已被Read()函数代替,WriteHuge()函数已被Write()函数代替
9 数据库打开后,再重新打开后 出现未知错误
经查,竟是DOMODAL 引起的, 将DOMODAL 注释掉 就没有问题了, 实在是奇怪
之好,将数据库的释放 改在了整个程序的结束, 而不是进程的结束, 这样就不需要重新打开了
error BK1506 : cannot open file '.\Debug\????????.sbr': No such file or dire的更多相关文章
- fatal error C1083: Cannot open precompiled header file: 'Debug/xxoo.pch': No such file or directory
fatal error C1083: Cannot open precompiled header file: 'Debug/xxoo.pch': No such file or directory ...
- c++预编译问题:fatal error C1083: Cannot open precompiled header file: 'Debug/DllTest.pch': No such file or d
1)单独编译StdAfx.cpp 2)编译所有(即按Ctrl+F7) 这时因为该模块没有包括预编译头文件“stdafx.h”的缘故.VC用一个stdafx.cpp包含头文件stdafx.h,然后在st ...
- (转)win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
原文地址:http://www.cnblogs.com/fnng/p/4115607.html 作者:虫师 今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-pyth ...
- win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-python 时报错: _mysql.c _mysql.c(42) : fatal error C1083: Can ...
- Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.
启动tomcat, 出现, ( 之前都是好好的... ) [lk ] ERROR [08-12 15:10:02] [main] org.springframework.web.context.Con ...
- Qt Creator编译时:cannot open file 'debug\QtGuiEx.exe' File not found
Qt Creator编译时:cannot open file 'debug\QtGuiEx.exe' File not found 利用Qt Creator编译工程时,出现如题目所示的错误,其中红色部 ...
- adb pull 报错处理:adb: error: cannot create file/directory 'E:\': No such file or directory
adb pull /sdcard/1.txt e:/ 报错:adb: error: cannot create file/directory 'E:\': No such file or direct ...
- nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
当你执行sudo nginx -s reload时出现nginx: [error] open() "/run/nginx.pid" failed (2: No such file ...
- An error occurred at line: 1 in the generated java file问题处理
tomcat6启动后,加载jsp页面报错,提示无法将jsp编译为class文件,主要报错信息如下: An error occurred at line: 1 in the generated java ...
随机推荐
- SQLite常用命令
1.点命令 [退出SQLite提示符] .quit .exit [帮助] .help [显示设置] .show 2.语法 [结束符] : --一行语句的结束以分号(:)结尾 [CREATE TABLE ...
- 【转】 linux下的g++编译器安装
再debian下直接apt-get install gcc g++就可以了.按照类似的逻辑,再Fedora下yum install gcc g++ 报告无法找到g++包. 查了一下,原来这个包的名字叫 ...
- 64位 ubuntu android studio gradle 权限不够 缺少文件和权限导致
安装 32位 库文件 sudo apt-get install lib32z1 给文件夹加权限 chmod 777 -R SDK chmod 777 -R android-studio -R表示所有 ...
- HttpContext.Cache 详解
提到HttpContext.Cache必然会想到Application,他们有什么共性和不同点呢,我们一一道来 相同点: 1.两者都是使用键值对来存储对象 2.两者都是应用程序同生命周期(在cache ...
- poj3660 floyd
//Accepted 176 KB 16 ms //一头牛,如果rank是能确定的,那么能打败他的牛的个数和被他打败的牛的个数的总和为n-1 #include <cstdio> #incl ...
- CSS实现垂直水平居中
HTML结构: <div class="wrapper"> <div class="content"></div> < ...
- Unity3D 发布无边框exe
关于:Unity3D 发布无边框exe,Unity3D Build exe无边框 Unity发布windows版本 总是带着边框,很想给它去掉,笔者在网上查了一番,常见的有3中. 1:通过unity3 ...
- Unity UGUI RectTransform图解
UGUI RectTransform.Unity RectTransform详解 The first:look look API. http://docs.unity3d.com/ScriptRefe ...
- 修改LR自带的示例程序端口号
问题:LoadRunner的HP Web Tours 应用程序服务启动不了,提示1080端口被占用的问题 解决方法: 查看占用1080端口的进程 Cmd 窗口输入netstat –ano 找到占用该 ...
- 连HTTPS都有漏洞,这么不安全的互联网我们还要继续用吗?
转载自 http://www.huxiu.com/article/45302/1.html 10月24日和25日,虎嗅君参加了GeekPwn(极棒)安全极客嘉年华活动. 嗯...说是嘉年华,其实就 ...