[QT]The inferior stopped because it received a signal from the operating system 自己解决方法

[QT 编译]
QT运行过程中遇到“The inferior stopped because it received a signal from the operating system.”,原因是因为程序中指针没有正确使用,可能的原因有“将临时变量赋给了某个指针”。
我这里出错的原因是定义了一个类,里面的成员想用固定大小:
在这里插入图片描述
如果将gnssfile改为:
在这里插入图片描述
即可运行过去

附:如何找出哪里的指针有问题?我是在原来的程序中新增了代码才出现了该错误,我的调试过程是这样的:
(1)运行过程中哪个函数进不去,就说明指针问题出在这个函数中;
(2)我先全部注释掉新增的代码,程序能正确运行;再用排除法,一部分一部分的解除新增代码的注释,即可较快的找到问题所在。
#erenzai in TJ,learning INS+GNSS……

  • 8
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
An operating system is a program that manages a computer’s hardware. It also provides a basis for application programs and acts as an intermediary between the computer user and the computer hardware. An amazing aspect of operating systems is how they vary in accomplishing these tasks. Mainframe operating systems are designed primarily to optimize utilization of hardware. Personal computer (PC) operating systems support complex games, business applications, and everything in between. Operating systems for mobile computers provide an environment in which a user can easily interface with the computer to execute programs. Thus, some operating systems are designed to be convenient, others to be efficient, and others to be some combination of the two. Before we can explore the details of computer system operation, we need to know something about system structure. We thus discuss the basic functions of system startup, I/O, and storage early in this chapter. We also describe the basic computer architecture that makes it possible to write a functional operating system. Because an operating system is large and complex, it must be created piece by piece. Each of these pieces should be a well-delineated portion of the system, with carefully defined inputs, outputs, and functions. In this chapter, we provide a general overview of the major components of a contemporary computer system as well as the functions provided by the operating system. Additionally, we cover several other topics to help set the stage for the remainder of this text: data structures used in operating systems, computing environments, and open-source operating systems.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值