1、Cannot access memory at adress 0xbf9

     开始遇到这种错误不知道怎么解决,前两天也遇到过问题那是因为没有对串口进行打开操作就进行其他的后续操作了,所以在运行程序的时候是直接出错,而不是现在这个样子,点击按钮之后才出现错误。
     我现在还没找到解决办法,猜测是不是数组有问题
     a. 我把读串口的readMyCom()私有函数的代买注视掉一行就不会出现上面的问题,这个函数的代码是:
     viod MainWindow::readMyCom()
     {
          QByteArray temp;
          temp = myCom -> readAll();
          if (!temp.isEmpty())
          {
               if(cmd[1] == temp[1])           // cmd是我定义的一个8个数据元素的数组cmd[] = {1,2,3,4,5,6,7,8}
{
ui -> textBrowser -> append(tr("Receive: ") + temp);  
//                 qFatal("Read Success!");               // 我把这行注视掉就没错了,不明白为什么,现在我终于明白“要怀疑一切”。
}
}
}
b. 这里的qFatal()是这样的函数(摘录Qt API4_3_4.CHM):
void qFatal ( const char * msg , ... )

Calls the message handler with the fatal message  msg . If no message handler has been installed, the message is printed to stderr. Under Windows, the message is sent to the debugger.

For a release library this function will exit the application with return value 1. For the debug version this function will abort on Unix systems to create a core dump, and report a _CRT_ERROR on Windows allowing to connect a debugger to the application.

This function takes a format string and a list of arguments, similar to the C printf() function.

Example:

 int divide(int a, int b)
 {
     if (b == 0)                                //
program error

qFatal ("divide: cannot divide by zero");

return a / b;

}

Warning:   The internal buffer is limited to 8192 bytes, including the '/0'-terminator.

See also  qDebug (),  qCritical (),  qWarning (),  qInstallMsgHandler (), and  Debugging Techniques .

Cannot access memory at adress 0xbf9相关推荐

  1. STM32调试出现Cannot access Memory的情况

    在使用STM32调试一个模块的时候,我在初始化完成之后,发现程序一直停留在某一个地方,无法进入while主循环中,每一次运行这一个函数,都会出现这种问题.这个函数核心部分是这样的 void atk_8 ...

  2. 导致cannot access memory的原因是什么?

    cannot access memory 使用的是keil + gd32f405 在一次我编码单片机FLASH时候,程序就是一直运行的擦除FALSH,写入FLASH.然后再想通过SWD重新烧录程序就无 ...

  3. gdb设置断点出现Cannot access memory at address的错误

    文章目录 1.0 问题描述 1.1 问题复现 2.0 2.1 静态链接库 2.2 动态链接库 2.3 PIC 1.0 问题描述 今天在给一个可执行c程序的entry point address设置断点 ...

  4. 铁电存储器 - Ferroelectric Random Access Memory(FRAM)

    相对于其它类型的半导体技术而言,铁电存储器具有一些独一无二的特性.传统的主流半导体存储器可以分为两类--易失性和非易失性.易失性的存储器包括静态存储器SRAM(static random access ...

  5. linux c++ 程序运行core,gdb调试显示cannot access memory at address

    如题,在linux环境写的c++程序,运行时core了,gdb调试core文件显示:cannot access memory at address 参考了:GDB调试,遭遇"cannot a ...

  6. 计算机随机存储器缩写,“RAM”是“Random Access Memory”的缩写,意思是“随机存取存储器”...

    1. Random access memory : Volatile storage that holds the program and data the CPU is presently proc ...

  7. 为什么叫随机存取存储器(Random Access Memory)?

    首先, RAM翻译为随机存取存储器, 是个垃圾翻译, 能说点人话吗?  依据我的经验, 如果不明白一个东西是什么, 那就去找英文资料来看,  英文适合描述准确的东西, 而中文, 适合描述不清不楚的东西 ...

  8. Qemu core 调试Cannot access memory at address 0x7fbc6c792858

    缺少glic-debuginfo包缺少调试符号连接,调试信息不全 debuginfo-install glibc-2.12

  9. keil无法调试器下载出现cannot access memory

    说明你时钟设坏了,在魔法棒debug里点开调试器,把速率设低点,调好时钟再把速率改回去

最新文章

  1. John Hopcroft、Bart Selman与张宏江展望“AI未来10年”
  2. mongodb实现对某列求和SUM
  3. boost::contract模块实现virtual private protected的测试程序
  4. 源服务器信息,软件源搭建
  5. 批量清除为Button注册的事件
  6. 退休老人有30万资金,如何存款最安全?
  7. #loj 3058 [HNOI2019] 白兔之舞
  8. skt7850鸿蒙策略,lol 英雄联盟 SKT状态回暖轻取外卡,SUP难挡Faker
  9. java 弹窗选择_如何在java中点击button弹出一个选择框
  10. 有关android工程的构建脚本(build.xml)的学习
  11. start.bat怎么启动java项目_部署java项目为服务,设置开机自启动
  12. C++ 多态与虚函数面试题
  13. 使用CefSharp在.NET中嵌入Google kernel
  14. win7免费升级win10官方工具
  15. WiFi共享二维码自动生成
  16. 巧用千寻位置GNSS软件|CAD功能全解析
  17. SpringBoot整合druid数据源,quartz定式框架
  18. 心脏滴血(CVE-2014-0160)
  19. Openpyxl 修改单元格长宽
  20. DDN(数字数据网)

热门文章

  1. 【MC】新加载器 Quilt 好用吗?和 Fabric 相比好在哪?
  2. 微信小程序电商项目实战-前言
  3. 游戏建模:想要做好人物角色模型,先了解人体的构造
  4. 个人简历特长及自我评价怎么写?
  5. 为什么RGB要转换成HSV
  6. ffmpeg h265
  7. python微博爬虫代码_python 微博爬虫 示例源码(lxml)
  8. Expected value but found invalid token at character 1stack traceback:coroutine 0: [C]: in function
  9. R 数字 字符 向量
  10. top-level object