comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to redirect stdout & stderr from a Windows app?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to redirect stdout & stderr from a Windows app? [message #23386] Wed, 24 January 2001 04:15 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dave Greenwood wrote:
>
> I have a windows app (NT 4, IDL 5.3) that apparently screws up occasionally.
> That is, it doesn't respond to certain buttons, sliders, etc. Of course it
> hasn't failed any of the times I've tried it in the IDE. Is there any way
> to redirect stdout and stderr so I can capture IDL messages, PRINT output,
> etc. in a file? I've tried invoking runtime IDL from a DOS window with ">
> foo.bar" but I never get any output in foo.bar although my app starts. And,
> of course, I can't close or reopen units -1 or -2.
>

If you take a look at

"Diverting IDL Output" or "Initialization"

in the online help


Diverting IDL Output:
When using a tty-based interface (UNIX or VMS), IDL sends its output to
the screen for the user to see. When using a GUI based interface (any
platform), the output goes to the log window. The default output
function is automatically installed by IDL at startup. To divert IDL
output to a function of your own design, use IDL_ToutPush() and
IDL_ToutPop() to change the output function called by IDL.
Internally, IDL maintains a stack of output functions, and provides two
functions (IDL_ToutPush() and IDL_ToutPop()) to manage them. The most
recently pushed output function is called to output each line of text.
Output functions of your own design should have the following type
definition:

typedef void (* IDL_TOUT_OUTF)(int flags, char *buf, int n);

...


Who is able to share IDL_ToutPush() and IDL_ToutPop() functions?



Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de

=============================================
a IDL library at ForschungsZentrum J�lich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL Documentation tool?
Next Topic: Re: MPEG movies & frame rate

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:39:44 PDT 2025

Total time taken to generate the page: 1.67915 seconds