Date: Thu, 10 Feb 2000 17:43:24 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.