Thread: fflush

fflush

From
Jean-Michel Riet
Date:
Hello,<br /><br /> I'm coding some functions in C language on Windows for Postgres server (calling from PG).<br /><br
/>After dll generation and put it to the correct postgres directory the problem is as follow :<br /><br /> Postgres
stoprunning when i call  <i>fflush() </i> function on a file stream and no data are in my file.<br /><br /> The
behavioris already the same,  Postgres process dies.<br /><br /> Is it a know problem ?, <br /> or there is a way to
protectthe calling function, or  <span style="font-size: 15px;"><span direction="target" id="IDAXMJ1"><font>to
implementwith caution<span style="margin-left: 0px; width: 2px;"> </span></font></span></span><font><br /></font>the
soft.<br/> Best regards<br /> Jean-Michel <br /> 

Re: fflush

From
Andrew Dunstan
Date:

Jean-Michel Riet wrote:
> 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.
>

That seems very odd. I think you'll need to show us the whole function code.

cheers

andrew