The difference between Win2000 Pro and Server

xiaoxiao2021-03-06  21

The difference between Win2k Pro and Server

Author:

Yuan Huashi

Recently programmed, more than a strange thing, the same program runs on the Windows2000 Server level operating system does not have an abnormality, and it will have an exception on Window 2000 Professional. Once an abnormality occurs, the CPU has as high as 100%. The program tracking result conclusions are: Stack overflow. WINDOWS 2000 series OS is not a NT core, but many of the materials are not strict in the Windows 2000 series products, and generally only and 98 or XP Due to four threads in the program, plus the main thread is a total of five, the access serial port requires a certain thread synchronization, I thought it was an error on the synchronization of the thread object, but check the code, no Question, I can't find a reason. The result is tested, and the result will pay attention to people. I found that there is a mistake due to the mouse click menu, which makes me think that the original CBITMAPMENU I use, this class is from I In the example in the instance, I later thought this class is very good, I will use it. Will it be this class problem, I immediately modify the code for a try .... Sure enough, it is a problem with CBitmapMenu, CBitmap is a menu The Owner Draw can automatically read the toolbar icon to update the small icon on the left side of the menu item. The following conclusions are obtained: 1 CBitmapMenu class has a problem (may also be improper use, but why Windows 2K Server / XP What is normal?); When using others or writes yourself, it is necessary to make a strict test on each operating system version. For the convenience of testing, it is recommended to use the most user-friendly operating system, such as 98 / Windows 2000 PRO. / XP, typical users do not use the Server level operating system .2. Although this problem may be a programming error, I still next conclusion: Windows 2000 Version For performance consideration, the default parameter will have Some different, such as thread stack (I haven't confirmed this now) .3. In order to make the program have a large compatibility, it is recommended not to use a library or class library with version restrictions (such as changing skin library), in addition, The stability of the program is always the first, the beautiful interface is the second, so be sure to talk about other. 4. Developers don't feel free to join yourself (generally a little bit) The function of tip skills, unless the user clearly requires, otherwise let the software operation method, running process characteristics, etc., such as the Office series, or the Office series, can be developed, the user does not want, the result, the result Don't ask, and labor is hurt. 5. After the program is designed, there will be many problems, open The staff is best to match the testers, and the developers are best to test the testers when they do not test, and then make the test personnel to communicate, so that the software will gradually improve.

转载请注明原文地址:https://www.9cbs.com/read-39932.html

New Post(0)