当前位置:网站首页>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
边栏推荐
- 单相交交变频器的Matlab Simulink建模设计,附Matlab仿真、PPT和论文等资料
- 机器学习之逻辑回归(Logistic Regression)原理讲解和实例应用,果断收藏
- The initial C language framework is suitable for review and preliminary understanding
- Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
- JS format time
- 一款不错的工具:aardio
- A blog allows you to learn how to write markdown on vscode
- Detailed explanation of SAR command
- 初始c语言大致框架适合复习和初步认识
- 分分钟掌握---三目运算符(三元运算符)
猜你喜欢
金九银十,入职字节跳动那一天,我哭了(蘑菇街被裁,奋战7个月拿下offer)
[servlet] detailed explanation of servlet (use + principle)
KVM learning resources
Qt实战:云曦日历篇
AT89C51 MCU digital voltmeter development, measuring range 0 ~ 5V, proteus simulation, schematic diagram, PCB and C program, etc
顺序表的操作,你真的学会了吗?
555定时器+74系列芯片搭建八路抢答器,30s倒计时,附Proteus仿真等
Eight way responder system 51 Single Chip Microcomputer Design [with Proteus simulation, C program, schematic diagram, PCB files, component list and papers, etc.]
Electronic scale weighing system design, hx711 pressure sensor, 51 single chip microcomputer (proteus simulation, C program, schematic diagram, thesis and other complete data)
555 timer + 74 series chip to build eight way responder, 30s countdown, proteus simulation, etc
随机推荐
After entering the new company, the operation and maintenance engineer can understand the deployment of the system from the following items
爬虫练习题(一)
source insight via samba
8.3 语言模型与数据集
C语言知识点精细详解——初识C语言【1】——你不能不知的VS2022调试技巧及代码实操【1】
关于在vs中使用scanf不安全的问题
XX project structure notes
LLVM - 生成 if-else 以及 PH
setcontext getcontext makecontext swapcontext
Master in minutes --- ternary operator (ternary operator)
Qt界面优化:鼠标双击特效
机器学习之逻辑回归(Logistic Regression)原理讲解和实例应用,果断收藏
source insight via samba
Nacos uses demo as configuration center (IV)
一个月把字节,腾讯,阿里都面了,写点面经总结……
【Servlet】Servlet 详解(使用+原理)
API Gateway/API 网关(二) - Kong的使用 - 负载均衡Loadbalance
On the insecurity of using scanf in VS
【NLP】HMM隐马尔可夫+维特比分词
Redis源码分析之PSYNC同步