delorie.com/archives/browse.cgi | search |
Date: | Thu, 10 Feb 2000 17:43:24 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | arcadepreserv AT hotmail DOT com |
cc: | djgpp AT delorie DOT com |
Subject: | Re: How Do I start another DOS program from DJGPP ? |
In-Reply-To: | <87ucs9$7at$1@nnrp1.deja.com> |
Message-ID: | <Pine.SUN.3.91.1000210174053.29921A-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | dj-admin AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Thu, 10 Feb 2000 arcadepreserv AT hotmail DOT com wrote: > frontend.c > > main{ > ... > setup_timer_interrupt_to_call_int_handler_often_enough; > exec_dos_program("backend.exe>tempfile.dat"); > ... > } > > int_handler > { > read_last_string_from_file("tempfile.txt"); > process_that_string_quickly_since_we_are_in_an_interrupt; > } That won't work (or, rather, will crash your system): you cannot safely make DOS calls from a hardware interrupt handler, and reading from a file requires a DOS call.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |