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 ...
随机推荐
- docker初学笔记
什么是docker 不准确的说,docker是一种轻量级的虚拟机,它把可执行文件和运行环境打包成一个image,放在容器里运行,但是启动速度比虚拟机快很多,资源消耗小.这种技术主要是为了解决部署环境的 ...
- this kernel requires an x86-64 CPU, but only detected an i686 CPU. unable to boot - please ues a ker
http://blog.csdn.net/xiao_cs/article/details/7728529 this kernel requires an x86-64 CPU, but only de ...
- Spring之JDBC模板jdbcTemplate
要使用Jdbctemplate 对象来完成jdbc 操作.通常情况下,有三种种方式得到JdbcTemplate 对象. 第一种方式:我们可以在自己定义的DAO 实现类中注入一个Da ...
- 黑马程序员——OC语言 核心语法 (3)
Java培训.Android培训.iOS培训..Net培训.期待与您交流! (以下内容是对黑马苹果入学视频的个人知识点总结) (一)分类Category 1) 基本用途 如何在不改变原来类模型的前提下 ...
- GFT_News Auto
using AnfleCrawler.Common; using Newtonsoft.Json.Linq; using System; using System.Collections.Generi ...
- Android Listview & Adapter
Listview主要有两个职责: 将数据填充到布局 处理用户的选择点击等操作 列表的显示需要三个元素: ListVeiw 用来展示列表的View 适配器(Adapter) 用来把数据映射到ListVi ...
- 通过j-interop访问WMI实例代码
代码: import java.net.UnknownHostException; import java.util.logging.Level; import org.jinterop.dcom.c ...
- SVN 文件解锁
之前一直一个人用svn,后来团队扩编,同事使用svn下载项目后.我却无法提交了,出现以下错误: locked in another working copy No lock on path (Stat ...
- HDU 3006
http://acm.hdu.edu.cn/showproblem.php?pid=3006 注意到集合内数字最大只有14,状态压缩一下,然后枚举出所有状态 #include <iostream ...
- Win10/UWP新特性系列—Launcher实现应用间的通信
UWP中,微软为Windows.System.Launcher启动器新增了很多的功能,以前只能启动App,打开指定扩展名文件,对uri协议的解析,以及当启动的应用没有安装时则会提示前往商店下载等. 如 ...