出现原因: 使用了不存在的对象 数组越界了 用 delete 释放未分配的内存空间,或者超过一次释放同个内存 比如: 顺序不能颠倒 正确: ui->setupUi(this); ui->tableWidget->setColumnWidth(0, 100); 错误: ui->tableWidget->setColumnWidth(0, 100); ui->setupUi(this);…
在release下程序运行总是崩溃:debugView输出了这个崩溃信息, 1. 一开始是release看崩溃,各种二分法找崩溃点,太玄没找到: 2. 终于想到可以调试,我草,调试一下瞬间发现某个class 析构函数崩溃: 3. 想到以前遇到过.h和class不匹配的问题,原因是.h总是会拷贝到include中,没有及时拷贝过去,导致.h和.cpp不一致,class对象delete崩溃: 4. 解决方法,保持一致就行了.  include目录的中头文件,要命令行及时更新,或者直接放弃这种方法.…
使用axios处理请求时,出现的问题解决 当url是远程接口链接时,会报404的错误: Uncaught (in promise) Error: Request failed with status code 404 解决方法: var instance = axios.create({ headers: {'content-type': 'application/x-www-form-urlencoded'} }); instance.post(`url`, params).then(res…
I try to run sample application as stated here : http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html Everything looks good until I ran this command : node registerUser Error : Store path:/Users/johndoe/Desktop/myProject/fabric-sa…
错误Error: Request failed with status code 500 ,调试前端没问题,后端也没问题,还报错"连接超时" 在Network中找到错误Self referencing loop detected for property 'xxxx' with type 当我们后端调试一步一步调试也没发现错误在哪里,但是跳转到前端就报错了.前端没有接收到后端传过来的数据,总结了一下: **前端接收问题**前端就是接收**字段名**以及**类型**问题 比如:nAmE,…
今天又学到一种修改bug的方法  : let newpwd = crypto.createHash('md5').update(req.body.upwd).digest('hex'); 在点击按钮加载登录方法的时候,加密后无法登陆,并报错,找了好久没有找到,百度的方法对我也完全不适用当然也怪自己"盲僧",把自己知道报错的地方迅速找到并注释,然后又目的性的找到自己的错误地方 我这次的错误是后台使用的post方法接收数据但是在代码中却用到query接收前端发来的数据,应该使用body 社…
在linux里安装程序有两种方法,一种是源程序安装,按照安装包里的readme或者install文件指示,一步步地进行,通常是configure, make, install三部曲.另一种就是rpm包,这个类似windows里常见的安装程序,既可在xwin里双击运行,也可以在终端里输入 rpm -ivh packagename开始安装. 卸装时,用源程序安装的运行make uninstall, 用rpm安装的则仍是使用rpm. 对于接触linux不久的我来说,总感觉这些过程挺麻烦的,时不时会遇到…
part of Hypertext Transfer Protocol -- HTTP/1.1RFC 2616 Fielding, et al. 10 Status Code Definitions Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. 10.1 I…
error: linker command failed with exit code 1 (use -v to see invocation) 错误原因:libidn.a文件没添加上去 解决方法:libidn.a文件删除重新添加 第一步:删除libidn.a文件 第二步:添加libidn.a文件 在Finder中找到libidn.a文件 打开libidn.a文件 运行程序,问题就解决了…
映射一个volume到多个SDC的时候报错如下: Error: MDM failed command.  Status: Only a single SDC may be mapped to this volume at a time 从上图可以看到创建volume, 映射volume都成功了, 再映射一个的时候报了错. 暂时的解决方法如下: scli --unmap_volume_from_sdc --volume_name VMOS --sdc_ip 172.16.3.122scli --m…