当前位置:网站首页>raised exception class EAccexxViolation with ‘Access violation at address 45EFD5 in module 出错
raised exception class EAccexxViolation with ‘Access violation at address 45EFD5 in module 出错
2022-04-23 14:34:00 【lyhoo163】
编程调试出错:
Project StartOH.exe raised exception class EAccexxViolation with 'Access violation at address 45EFD5 in module 'StartOh.exe. Read od address 00000170'. Process stopped. Uses Step or Run to continue.
程序中因调用A.EXE文件之前,需要调用之前,将它的线程退出,再进入。
1、function FindTask(ExeFileName: string): Boolean; // 查找正在运行的进程
2、function KillTask(ExeFileName: string): Integer; // 关闭正在运行的进程
原调用:
if FindTask('OldHome.exe') then KillTask('OldHome.exe');
原因:二函数分别 线程操作,相同的代码,出现干扰出错,修改调用:
if FindTask('OldHome.exe') then
begin
sleep(500);
KillTask('OldHome.exe');
end;
原因二函数进行同时执行,出现冲突。做一个延时解决冲突。
版权声明
本文为[lyhoo163]所创,转载请带上原文链接,感谢
https://blog.csdn.net/lyhoo163/article/details/124315166
边栏推荐
- Web page, adaptive, proportional scaling
- JumpServer
- AT89C52 MCU frequency meter (1Hz ~ 20MHz) design, LCD1602 display, including simulation, schematic diagram, PCB and code, etc
- 1 minute to understand the execution process and permanently master the for cycle (with for cycle cases)
- Qt界面优化:鼠标双击特效
- SVN详细使用教程
- Gif to still image processing
- Qt实战:云曦日历篇
- LLVM - 生成 if-else 以及 PH
- kprobe 的 3 种使用
猜你喜欢
随机推荐
Parameter stack pressing problem of C language in structure parameter transmission
矩阵交换行列
交通灯系统51单片机设计(附Proteus仿真、C程序、原理图及PCB、论文等全套资料)
ArrayList集合基本使用
flannel 原理 之 TUN模式
1分钟看懂执行流程,永久掌握for循环(附for循环案例)
MySQL报错packet out of order
单相交交变频器的Matlab Simulink建模设计,附Matlab仿真、PPT和论文等资料
直流可调稳压电源的Proteus仿真设计(附仿真+论文等资料)
LLVM - 生成for循环
C语言知识点精细详解——初识C语言【1】
AT89C52 MCU frequency meter (1Hz ~ 20MHz) design, LCD1602 display, including simulation, schematic diagram, PCB and code, etc
AT89C52单片机的频率计(1HZ~20MHZ)设计,LCD1602显示,含仿真、原理图、PCB与代码等
压缩映射定理
QT actual combat: Yunxi calendar
Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
Mq-2 and DS18B20 fire temperature smoke alarm system design, 51 single chip microcomputer, with simulation, C code, schematic diagram, PCB, etc
Proteus simulation design of DC adjustable regulated power supply (with simulation + paper and other data)
redis的五种数据类型
Branch statement of process control