[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decwindows

Title:DECWINDOWS
Notice:DECwindows Motif V1.2-4 SSB kits: note 5519
Moderator:GRIM::MESSENGER
Created:Wed Nov 28 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5861
Total number of notes:24081

5837.0. "Cancel button from Session Manager destroys DECterminal" by NNTPD::"[email protected]" () Mon May 05 1997 10:39

Hi,
  Clicking on the Cancel button for example from the
  Session Manager: Clock Qualifiers
  leads to a disappearing of DECterminal created via
  Session Manager
How to reproduce :
  1) Session Manager
                Options
                Menus...
                Add menu entry  test
                                @decw$user_defaults:t.com
                                        $ typ t.com
                                        $ create/term
                                        $ exit
                under Applications
   2) Creating a DECterminal via Application menu entry test
   3) Selecting Application
                Clock ...
                Clicking on the Cancel button ( Clock Qualifiers )
   4) DECterminal disappear
Before entering an IPMT I would like to know if this is known bug
and if so is there any workaround for it ?
My important customer starts his applications in a DECterminal like :
 $ CREATE/TERMIN command  ( not starting DECterminals as detached processes )
from the Session Manager.
Regards,
        Stefan
[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
5837.1Which version of DECWindows?4954::KIRBYMon May 05 1997 11:516
    Hi,
    
    Which version of DECWindiws Motif are they using?
    
    Martin Kirby
    DECWindows for OpenVMS Project Manager
5837.2GRIM::MESSENGERBob MessengerMon May 05 1997 17:5427
You need to use create/term/detach (preferably) or create/term/wait, not
just create/term.

create/term creates a DECterm window and creates a subprocess to run
inside the DECterm window, and then create/term exits (returns to DCL).
The process that was created to run create/term doesn't exit immediately
because the DECwindows Session Manager (FileView) caches processes for
possible re-use.  A few minutes later if the process isn't reused the Session
Manager will terminate the process, which also terminates all of its
subprocesses including the subprocess running inside of the DECterm window.

You're probably seeing an interaction with the Clock command because if
you start Clock soon enough after starting DECterm the create/term process
will be reused and become a Clock process, which means that the DECterm
window won't go away.  If you click on Cancel then Clock won't be started.
I'm not sure if the Session Manager will terminate the (create/term)
process that was going to be used for Clock at this point.

create/term/detach creates a detached process instead of a subprocess to
run inside the DECterm window, so it won't be affected by the create/term
process exiting.  create/term/wait tells the create/term program not to
exit to DCL until its subprocess has exited.  This is a less desirable
solution because it wastes a process slot, but it's needed sometimes
because you can't pass a command line to the created process when you use
create/term/detach.

				-- Bob
5837.3NNTPD::"[email protected]"Mon May 12 1997 04:0314
Hi Bob,
	Thanks for your advice.
	I found the following workaround for the customer :
		
	Start the Command Procedure T.COM 
	
	$ CREAT/TERM/INPUT=DECTERM-INPUT.DAT/DETACH
	$ exit

	from the Session Manager

	$ TYPE DECTERM-INPUT.DAT
	$ MC DECW$CLOCK
[Posted by WWW Notes gateway]