TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: ALL
from: PETER LOUWEN
date: 1998-02-03 22:20:00
subject: Terminating Matlab 3

I'm running Matlab version 3.5g (Nov 9 1990) on a 386.
Matlab can usually be interrupted by pressing Ctrl+C or Ctrl+Break.
"Usually": not when it is executing one of its builtin routines (try
running "eig(rand(250, 250))" to see what I mean).
Matlab contains a copy of Phar Lap's DOS extender:
386|DOS-Extender 2.2d -- Copyright (C) 1986-89 Phar Lap Software, Inc.
386|VMM 2.2d -- Copyright (C) 1986-89 Phar Lap Software, Inc.
What I'd like is a program that can be called at any time to either
- terminate the current Matlabroutine, and return to the Matlabprompt,
or
- terminate Matlab itself, and return to the DOS prompt.
Currently, the program in question is a TSR that intercepts INT 5.
Upon detecting PrtSc has been pressed, it does two things:
- send an EOI: mov al, 20h
               out 20h, al
- quit to DOS: mov ax, 4CFFh
               int 21h
This works fine for real mode programs, and it even works inside of Matlab.
Except sometimes, when pressing PrtSc generates the Matlab complaint
"Fatal exception processing Int 0D", followed by a register dump, followed
by the need to press the Reset button.
Is what I want at all possible, and if so, how ?
Note: the above problem is of the "intellectual challenge" variety, as the
      version of Matlab I use during working hours is 5 (for NT).
Peter
... Lottery:  A tax on people who are bad at math.  
--- EBO-BBS Diemen - NL
---------------
* Origin: EBO-BBS Diemen (http://home.worldonline.nl/~biginski) (2:280/901)

SOURCE: echomail via exec-pc

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™.