Realy, FPC file I/O uses CreateFIle (API in win-32) and
syscall_nr_open(kernel service in LINUX) .
Me dont' know if it will relate to our issue but there's a discussion
at http://www.rsdn.ru/forum/winapi/2541428.all.aspx
There's a solution - creating a console + getting its stdhandle +
killing
Also:
http://dslweb.nwnexus.com/~ast/dload/guicon.htm
http://www.open-chess.org/viewtopic.php?f=5t=597start=10
http://msdn.microsoft.com/en-us/library/ms682499(v=VS.85).aspx
http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/redirecting-standard-io.html
Disabling buffering is consider not
On Thursday 12 July 2012 13:29:50 Ivanko B wrote:
Realy, FPC file I/O uses CreateFIle (API in win-32) and
syscall_nr_open(kernel service in LINUX) .
Me dont' know if it will relate to our issue but there's a discussion
at http://www.rsdn.ru/forum/winapi/2541428.all.aspx
There's a solution -
On Thursday 12 July 2012 14:33:41 Ivanko B wrote:
Also:
http://dslweb.nwnexus.com/~ast/dload/guicon.htm
http://www.open-chess.org/viewtopic.php?f=5t=597start=10
http://msdn.microsoft.com/en-us/library/ms682499(v=VS.85).aspx
On Thursday 12 July 2012 19:43:53 Ivanko B wrote:
Must be done on child side
Who is the child ? GDB (we can't rebuild it in order that to taste the
change) ? Or the debugged MSEgui application (we have the full control
of ) ?
The debugged application where
The debugged application where MSEgui has *no* control.
===
But MSEide may enforce using some tweaks in apps created within it :)
2012/7/13, Martin Schreiber mse00...@gmail.com:
On Thursday 12 July 2012 19:43:53 Ivanko B wrote:
Must be done on child side
Neither Show console on Run or Use external console help to beat the
File not open exception.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has
On Wednesday 11 July 2012 14:40:33 IvankoB wrote:
TextRec(Output).FlushFunc:= TextRec(Output).InOutFunc;
What's the unit name for TextRec ?
sysutils.
--
Live Security Virtual Conference
Exclusive live event will
How can one setup a pipe on Windows so that
getfiletype(handle)
on the other side of the pipe returns 2?
Nowbody knows?
Also some info from ones to blame on :
http://support.microsoft.com/kb/190351/en-us?fr=1
--
Some advices from the russian site
http://www.rsdn.ru/forum/winapi/2066867.flat.aspx (translated):
CRT just check the output type with GetFileType and if the result differs
from FILE_TYPE_CHAR then it activates the full buffering STDOUT. The
solution for child program:
1) call
On Wednesday 11 July 2012 16:03:22 IvankoB wrote:
How can one setup a pipe on Windows so that
getfiletype(handle)
on the other side of the pipe returns 2?
Nowbody knows?
Also some info from ones to blame on :
http://support.microsoft.com/kb/190351/en-us?fr=1
Here
On Wednesday 11 July 2012 16:19:58 IvankoB wrote:
Some advices from the russian site
http://www.rsdn.ru/forum/winapi/2066867.flat.aspx (translated):
CRT just check the output type with GetFileType and if the result differs
from FILE_TYPE_CHAR then it activates the full buffering STDOUT.
Hi IvankoB,
On 11 July 2012 11:57, IvankoB ivankob4m...@gmail.com wrote:
or use debugwriteln().
Excellent option but not too convinient. Could You extend it to be
all-eating (accepting input params of the regular writeln - any data
type arbitrary number of) ?
You could also try the
On Wednesday 11 July 2012 16:43:13 IvankoB wrote:
setvbuf(stdout,0,_IONBF,0); ?
The C-stream function called on child side? This is the C equivalent of
TextRec(Output).FlushFunc:= TextRec(Output).InOutFunc;
Then we should include TextRec(Output).FlushFunc:=
TextRec(Output).InOutFunc; into
Then we should include TextRec(Output).FlushFunc:=
TextRec(Output).InOutFunc; into the GUI program template, sure with
win32-debug-time-only DEFINEs short explanations why around.
Oops..And every unit calling WRITELN should include {$apptype console}.
Although I can't believe that Windows does not provide a solution.
Working in win-9x as well :)
PS:
setvbuf(stdout,0,_IONBF,0) is a solution - switch buffering off if it
harms.
--
Live Security Virtual Conference
Am 11.07.2012 16:02, schrieb IvankoB:
Although I can't believe that Windows does not provide a solution.
Working in win-9x as well :)
PS:
setvbuf(stdout,0,_IONBF,0) is a solution - switch buffering off if it
harms.
How can setvbuf(stdout,0,_IONBF,0) be called from pascal on parent
sideof
On Thursday 12 July 2012 00:19:46 Ivanko B wrote:
It's a regular MSVCRT/LIBC (importable to FPC via the LIBC units)
procedure, AFAIK.
http://msdn.microsoft.com/en-us/library/aa272909(v=vs.60).aspx
It works on C-streams (FILE struct). FPC text files are no C-streams. And I
don't think it can
18 matches
Mail list logo