fflush

Started by Jean-Michel Rietalmost 17 years ago2 messages
#1Jean-Michel Riet
jean-michel.riet@thalesgroup.com

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
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 stop running when i call&nbsp; <i>fflush()&nbsp;</i> function on a file
stream and no data are in my file.<br>
<br>
The behavior is already the same,&nbsp; Postgres process dies.<br>
<br>
Is it a know problem ?, <br>
or there is a way to protect the calling function, or&nbsp; <span
style="font-size: 15px;"><span id="IDAXMJ1" direction="target"><font>to
implement with caution<span style="margin-left: 0px; width: 2px;">&nbsp;</span></font></span></span><font><br>
</font>the soft.<br>
Best regards<br>
Jean-Michel <br>
</body>
</html>

#2Andrew Dunstan
andrew@dunslane.net
In reply to: Jean-Michel Riet (#1)
Re: fflush

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