| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | redirection |
Hello Henk.
Jan 27 1997 21:58, Henk den Adel wrote to All:
HA> I am trying to de-trap an application, by writing out intermediate
HA> results, using printf, a plain text application, using C code. The
HA> application traps (trap 0005). Output is written to the screen. I have
HA> no idea why my application traps and where it traps.
new stuff is only a forgotten old one?
HA> appli log
HA> leaves me with a file of 0 length, whereas without redirection:
HA> appli < input
HA> results are written to the screen.
do you know about file buffering? and about caching? it is an understandable
result you describe...
HA> When i open a stream and write my intermediate info to this stream,
HA> the streamed file is empty as well, as a result of the trapping.
of course, nobody flushes it, nobody closes it too.
HA> So how can i redirect my info (printf) to a file, when the program
HA> traps?
try do the same and include not-caching option when you open file for logging
and flush it always you wrote to.
HA> I am using OS/2 version 2.1. IBMs C compiler (2.01) or Borlands C
HA> compiler (1.0) produce the same redirection behaviour, so it must be
HA> an intrinsic feature of the OS.
why? try WARP and compiler version 2.0!
HA> Any idea to solve this dilemma?
if it isn't enogh try write direct to me. welcome to vadim{at}dionis.kfti.kcn.ru
for example or to 2:5049/11
I can write russian both addresses if you interest it (I do not know where is
2:286/415).
Vadim
--- GoldED/386 2.50.A0611+
* Origin: Hикто не может объять необъятное... (2:5049/11)SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407 SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1 @PATH: 5049/11 1 16 5051/16 15 5020/400 443 79 5100/8 396/1 270/101 712/624 @PATH: 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.