Hello,

I'm coding some functions in C language on Windows for Postgres server (calling from PG).

After dll generation and put it to the correct postgres directory the problem is as follow :

Postgres stop running when i call  fflush()  function on a file stream and no data are in my file.

The behavior is already the same,  Postgres process dies.

Is it a know problem ?,
or there is a way to protect the calling function, or  to implement with caution 
the soft.
Best regards
Jean-Michel