Author Topic: Entering Chinese commas in the .h file can cause software crashes  (Read 318 times)

Ciky_Yin

  • Community Member
  • Posts: 19
  • Hero Points: 0
Entering Chinese commas in the .h file can cause software crashes
« on: September 09, 2024, 06:33:55 AM »
Entering Chinese commas in the .h file can cause software crashes。As follows:
typedef struct TUpdateProgMessage_t
{
   WORD ProgFrameLen;
   WORD ProgOffset;
、、   BYTE ProgData[UPDATE_FRAME_LENTH];
   DWORD CRC32;

}TUpdateProgMessage;
How to solve the problem?

Ciky_Yin

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: Entering Chinese commas in the .h file can cause software crashes
« Reply #1 on: September 09, 2024, 06:49:28 AM »
It's not just the comma. Any Chinese character that is written at the top of the line will have problems. .c also has the same problem.

Ciky_Yin

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: Entering Chinese commas in the .h file can cause software crashes
« Reply #2 on: September 09, 2024, 07:09:15 AM »
The encoding format is Auto Unicode2 and cannot be changed for the time being.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6938
  • Hero Points: 531
Re: Entering Chinese commas in the .h file can cause software crashes
« Reply #3 on: September 10, 2024, 01:31:21 AM »
Please do the following:

* Activate this source (give it focus in SlickEdit)
* Display the Help>About SlickEdit... dialog
* Click the Copy to Clipboard button
* Paste the contents in a post here so we can look them over

Ciky_Yin

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: Entering Chinese commas in the .h file can cause software crashes
« Reply #4 on: September 10, 2024, 08:08:48 AM »
SlickEdit Pro 2022 (v27.0.2.0 64-bit Qt5)

Serial number: LEEYU-2714899409
Licensed number of users: Single user
License expiration: 2030-06-30 08:00:00
License file: C:\Program Files\SlickEdit Pro 27.0.2\win\slickedit.lic

Build Date: April 25, 2023
Emulation: Visual C++ 6

OS: Windows 10 x64
OS Version: 10.00.0 
Memory: 63% Load, 10303MB/16266MB Physical, 14228MB/22154MB Page File, 5340MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 2560 x 1440 (0 0 2560 1440), 2560 x 1440 (2560 0 2560 1440)

Project Type: Cpp
Language: .c (C/C++)
Encoding: ACP (936)

Installation Directory: C:\Program Files\SlickEdit Pro 27.0.2\ (non-removable drive,NTFS,75655MB free)
Configuration Directory: C:\Users\Administrator\Documents\My SlickEdit Config\27.0.2\ (non-removable drive,NTFS,75655MB free)
Migrated from: C:\Users\Administrator\Documents\My SlickEdit Config\23.0.2\
Spill File: C:\Users\Administrator\AppData\Local\Temp\$slk.14548 (non-removable drive,NTFS,75655MB free)


Ciky_Yin

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: Entering Chinese commas in the .h file can cause software crashes
« Reply #5 on: September 10, 2024, 08:30:48 AM »
Please see the attached picture for the input format

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6938
  • Hero Points: 531
Re: Entering Chinese commas in the .h file can cause software crashes
« Reply #6 on: September 11, 2024, 01:47:17 AM »
Thanks for posting

A hot fix is available for this.

Download the hot fix here:

https://www.slickedit.com/hotfixes

Then load the hot fix: Help>Product Updates>Load Hot Fix…