TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: JOSE MEJUTO
date: 1995-12-22 02:55:00
subject: Std Out

Hola All!
 When I open a file with this line:
 Open "CONS:" for output as #XX
 And then I print to the file with:
 Print #XX,"Hi I'm testing something"
 and press Control-C conbination, if the 'Print' is active at that moment the 
PowerBASIC crashes!
 Try this code:
-----------------------====---------------------------------
 Open "CONS:" for output as #1
 Do
    Print #1,"I'm testing something."
 Loop
-----------------------====---------------------------------
 At any moment press CTRL-C or CTRL-Break. My PowerBASIC 3.0, 3.1 and 3.2 
crashes with a QEMM Exception 13h.
 It looks like DOS terminates the program, but PowerBASIC has many vectors 
hooked and don't restore it. I was solved (50%) this problem hooking INT 0x09 
to a IRET routine, but the problem is that I can't now detect keys ;-)
 There are anybody of PowerBASIC tech support here ? Can you solve this ? 
Have solution ?
 Of course I need Std out because the information can be redirected to a file 
or to a DOS pipe.
 A solution may be 2 new commands like Pascal, UnHookVectors and 
ReHookVectors or do this job previously any DOS std out call internally.
Saludotes,
       ,,,
      `0-0'  JOS (2:348/102)         ** Fel¡s navid s **
     /-(_)-\ mejuto@sfdzuma.usc.es
--- FD2.12+ & GoldED 2.50+ & FE145+
---------------
* Origin: -=EDI=BBS=- 28800 //V34/VFC// Santiago //+34-81-502110 (2:348/102)

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