raga scusate, in questa porzione di codice

codice:
...
WriteFile(hCOM, init3, 14, &nb, 0);
TransmitCommChar(hCOM,13);
fflush(hCOM);
ReadFile(hCOM, buffer, 14, &nb, 0);
...
kuando il programma esegue la funzione fflush(hCOM) mi crasha! e non capisco perkè! hCOM è la seriale (infatti kuesto prog scrive delle stringhe sulla seriale)

Se kualkuno ha kualke suggerimento è ben accetto