当前位置:网站首页>Bugs encountered in remote control projects
Bugs encountered in remote control projects
2022-08-09 01:02:00 【Shen Yuequan】
Bugs encountered in remote control projects
- 1 less parentheses after the function name
- 2 Preprocessor adds security warnings, etc.
- 3 platform bug, replace x64 with x86
- 4 does not add a bug that converts native byte order to network byte order
- 5 VM network connection bug
- 6 The BUFER_SIZE buffer setting is too small, causing the interface to freeze and the dialog to move
- 7 Screen resolution issues and mouse coordinate conversion issues
- 8 The bug of pressing the Enter key, the solution is to override the OnOk event.
- 9 After the static variable is declared, it is not implemented
- 10 VS bug: the function parameter is wrong, the sixth parameter is wrong, and the result indicates that the first parameter is wrong
- 11 network multithreading bug
- 12 operator precedence issues
- 13 memory leak
- 14 Registry startup permissions
- 15 reference header bug
1 Less parentheses after the function name
Workaround: should be changed to: InitSockEnv()
2 Preprocessor adds security warnings, etc.
_CRT_SECURE_NO_WARNINGS
3 platform bug, replace x64 with x86
4 does not add a bug that converts native byte order to network byte order
htonl is to convert native byte order to network byte order
5 VM network connection bug
6 BUFER_SIZE buffer setting is too small, which causes the interface to freeze and the dialog box cannot move
7 Screen resolution issues and mouse coordinate conversion issues
8 The bug of pressing the Enter key, the solution is to override the OnOk event.
9 Not implemented after static variable declaration
The static member variables in the class are only declared, not implemented.
10 VS bug: the function parameter is wrong, the sixth parameter is wrong, and the result indicates that the first parameter is wrong
11 network multithreading bug
1 Simultaneous triggering of two threads, mouse and screen, thread synchronization and data security
Mouse and monitor conflict.The mouse reply (about 10 bytes) and the monitor reply picture (hundreds of k), the buffer is the same, the picture and the reply bytes affect each other, resulting in a bug that multi-threaded sending messages will conflict, and the mouse and monitor reply willConfused The server can only process one command at a time and may fail to connect.
2 The relationship between size and index is not clear
The relationship between size and index is not clear, resulting in problems with the received data packets and buffer processing, and the display of the monitoring screen cannot be updated normally. The solution: memmove(pBuffer, pBuffer + size, index - size).
12 operator precedence issues
The operator priority may cause bugs in the program.parentheses to prevent errors and make it easier to read
13 memory leak
The memory opened up in the heap area is not released, and vld is introduced to facilitate the troubleshooting of memory leak bugs.Need to include header file #include
14 Registry boot auto-start permission
Mklink lacks a space to specify the System32 path when setting the registry startup permission to automatically start, and is forcibly converted to the SysWOW64 path
When booting up, the permissions of the program follow the startup user
If the permissions of the two are inconsistent, it will cause the program to fail to start
Solution:
[Copy these dlls under System32 or under SysWOW64]
Under System32, mostly 64-bit programs under SysWOW64, mostly 32-bit programs
15 reference header file bug
The function in the header file is referenced multiple times. Solution: Change the definition to a declaration and define it in the source file.In a project, there can only be one definition, and there can be multiple declarations.
边栏推荐
猜你喜欢
Using MySQL in Ubuntu/Linux environment: Modify the database sql_mode to solve the "this is incompatible with sql_mode=only_full_group_by" problem
睿智的目标检测61——Tensorflow2 Focal loss详解与在YoloV4当中的实现
微信企业号开发之获取AccessToken
A double non-programmer interviewed Ant, Meituan, Ctrip and other big companies with offers to share the interview process
JD.com was abused on three sides. Regarding redis, high concurrency, and distributed, I am confused.
微信企业号开发之获取公共域名
在Windows环境下使用MySQL:自动定时备份
Unified identity management platform IAM single sign-on process and third-party interface design scheme
入门数据库Days5
笔记&代码 | 统计学——基于R(第四版) 第十章 多元线性回归
随机推荐
A double non-programmer interviewed Ant, Meituan, Ctrip and other big companies with offers to share the interview process
Sencha Touch延迟加载模块提高程序启动时性能
【科研-学习-pytorch】2-线性回归
2022年中国全民健身发展白皮书
Network In Network学习记录
云服务器可以用来做什么?有什么用途?
神经网络基本原理
笔记&代码 | 统计学——基于R(第四版) 第十一章 时间序列预测
安装wcf框架
京东三面惨遭被虐,关于 redis,高并发,分布式,问懵了
5-2 Seaborn 分类绘图
软考总结博客
Using MySQL in Ubuntu/Linux environment: Modify the database sql_mode to solve the "this is incompatible with sql_mode=only_full_group_by" problem
Unified identity management platform IAM single sign-on process and third-party interface design scheme
「复盘」面试 BAMT 回来整理 398 道高频面试题,助你拿高薪 offer
架构组学习总结
Using MySQL in Ubuntu/Linux environment: Solve the problem of com.mysql.jdbc.PacketTooBigException: Packet for query is too large
node工具之nodemon
轻量级学习网络--ShuffleNet v1:Group conv的改进与channel shuffle的提出
Sencha Touch页面跳转创建返回上一级按钮的设计思路