Re: Window closes on exit -- can't capture error message
- From: klas.engwall@xxxxxxxxxxxxx (Klas Engwall)
- Date: Sat, 31 May 2008 22:32:58 GMT
Frank,
I am trying to support an old Clipper Summer 87 application that's
started crashing under certain circumstances. But I can't capture the
error message. The server is a Windows 2000 server, and I'm
connecting remotely. The workstations are XP.
When it crashes, the DOS window closes. I've tried diverting to an
Error.TXT file by typing, at the command prompt "FILENAME >
ERROR.TXT", and it creates the ERROR.TXT file, but it's a 0 byte file.
The standard S87 errorsys.prg uses @... say which cannot be
redirected. Do you still have the source code and utilities so you can
update errorsys to also write the error message to a log file? Or to
write it to stdout, something like fwrite( 1, 'This is the error
message' ), and then redirect the output to a textfile just like
before. Handle #1 is stdout. It is already open, so just fwrite()
straight to it.
I've tried running FILENAME.EXE from a batch file with a PAUSE after
the executable, but it still closes the window.
That should work. It does for me. But maybe there is a pending
keystroke that bypasses PAUSE? How about more than one PAUSE? Would
that help?
I remember Windows 2000 had a property for shortcuts to close or not
close the window on exit. Shortcuts to the command prompt and DOS
apps on the 2000 server desktop and the XP desktops don't have that
option.
It still exists if the shortcut runs an exe (on the Program tab) but
not for a batch file (missing on the Shorcut tab).
Regards,
Klas
-------
klas dot engwall at engwall dot com
http://www.engwall.com/clipper/
The LFN Library for Clipper
The LanMan Library for Clipper
The NFPAT1A Timeslice release patch for the Nanforum Toolkit
.
- Follow-Ups:
- Re: Window closes on exit -- can't capture error message
- From: N:dlzc D:aol T:com \(dlzc\)
- Re: Window closes on exit -- can't capture error message
- Prev by Date: Re: read information form a webside
- Next by Date: Re: Window closes on exit -- can't capture error message
- Previous by thread: Re: read information form a webside
- Next by thread: Re: Window closes on exit -- can't capture error message
- Index(es):
Relevant Pages
|