当前位置:网站首页>0x00007FFD977C04A8 (Qt5Sqld.dll)处(位于 a.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000010 时发生访问冲突
0x00007FFD977C04A8 (Qt5Sqld.dll)处(位于 a.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000010 时发生访问冲突
2022-07-26 10:45:00 【Black_Friend】
今天在修改别人代码的时候出现了一个问题:
我想要在子线程中使用
QSqlDatabase::addDatabase("QMYSQL");
但是,怎么都运行不过去。
我调试,想找出问题的原因:
结果,我发现,我在调用当前函数的时候还没有给它分配空间,而是调用函数后,才分配的。
当时加这个变量的时候没有考虑到这个初始化的函数。
修改调用函数和分配空间的顺序后,再调试:
边栏推荐
- 2021-08-14三子棋
- Simple use of json-c Library -- converting JSON files to struct
- RT-Thread 学习笔记(三)---用SCons 构建编译环境
- RT-Thread 学习笔记(五)---编辑、下载、调试程序
- RT thread learning notes (III) -- building a compilation environment with scons
- 7-25 0-1背包 (50分)
- 344.反转字符串
- 鹏哥C语言第六节课
- 工厂模式详解
- router.push(),router.repalce(),router.go()使用
猜你喜欢

RT-Thread 学习笔记(七)---开启基于SPI Flash的elmfat文件系统(中)

344.反转字符串

在神州IV开发板上为STemWin 5.22加入触屏驱动

20210807#1 C语言程序结构

232.用栈实现队列

Anaconda is used on vscode (the environment has been configured)
![Error[pe147]: declaration is incompatible with 'error problem](/img/4f/57145d78f4dc1fe84d2f271dd9d82f.png)
Error[pe147]: declaration is incompatible with 'error problem

oracle 启动不了 tnslistener服务启动不了

第5期:大学生入职必备技能之二

Issue 8: cloud native -- how should college students learn in the workplace
随机推荐
flutter dart生成N个区间范围内不重复随机数List
[machine learning notes] [style transfer] deeplearning ai course4 4th week programming(tensorflow2)
鹏哥C语言第六节课
MySQL速学-2021-09-01
344.反转字符串
Koin
鹏哥C语言第四课(3)
RT-Thread 学习笔记(六)--- 开启基于SPI Flash的elmfat文件系统(上)
剑指Offer(四十九):把字符串转换成整数
第6期:大学生应该选择哪种主流编程语言
2021-08-13 learn C language with pengge - array
kali 查看ip地址
Issue 6: which mainstream programming language should college students choose
剑指Offer(二十):包含min函数的栈
display-inline+calc实现左中右布局,中间自适应
鹏哥C语言20210811程序结构作业
[notes on machine learning] [building a cyclic neural network and its application] deeplearning ai course5 1st week programming(keras)
字典与int矩阵
[paper after dinner] deep mining external perfect data for chestx ray disease screening
Issue 5: the second essential skill for College Students