Home > Software engineering >  MFC cstrings problem in serial communication
MFC cstrings problem in serial communication

Time:09-17

I speak for byte archived for cstrings behind and then have a series of + operation, after the program runs soon appear memory leaks. Find a stack is found after cstrings when cross-border. But I run out of a string is empty? Bosses to explain?

CodePudding user response:

Multiple threads? May need to lock operation?

CodePudding user response:

Cstrings can cross?? Then take a closer look at cstrings usage.

CodePudding user response:

Crossing the line is probably not pay attention to the string to end with "\ 0"
A serial port from the string may not have "\ 0" at the end, you need to add
Switch to cstrings need to pay attention to this problem

CodePudding user response:

To get the actual may is 12345, the converted value is 102030405
  • Related