Re: Window closes on exit -- can't capture error message



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
.



Relevant Pages

  • Re: IE and dll error messages
    ... with an error message 'Server not found or DNS fault'. ... still trying to use her old ISP's DNS (Domain Name Server) server. ... When the new window opens, ...
    (microsoft.public.windowsxp.help_and_support)
  • The Server Threw an Exception
    ... I'm using IE6 and I attempt the error message "THE ... SERVER THREW AN EXCEPTION" when I click on link to open ... new ie window. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: SQL2005 sys tables
    ... window i could change the the dbs in the server. ... getting an error message, please include the exact error message text. ... SQL Server Documentation Team ...
    (microsoft.public.sqlserver.security)
  • Unable to create web project
    ... local copy of a project from the SourceSafe. ... In the "Set Project Location - ProjectName" window, ... error message "Unable to create Web project ... The two need to map to the same server ...
    (microsoft.public.dotnet.general)
  • Re: TCP Window Size
    ... terminal server, so window size wouldn't be the problem. ... network I/O, active clients, etc. ... Multiple parallel WAN links are being load ...
    (comp.dcom.sys.cisco)