My configuration :
While playing, sustain pedal works.
If i record, sustain is not recorded, only short notes are recorded.
It is not an error.
The CC 64 Sustain command is well interpreted.
I made the error to search the result of sustain in the score display.