On Thu, Feb 12, 2004 at 02:57:31PM +0100, Steffen Kaiser wrote: > > You simply keep INT-24 hooked the whole lifetime of your program. It gets > automatically restored, when your program terminates.
I have INT 24 hooked and I'm still getting the error. See code below. > BTW: If you start your shell with "/F", there is no interactive prompt, > the request is automatically failed. I put this in config.sys and I'm still getting the error: config.sys: SHELL=C:\FDOS\BIN\CMDXSWP.COM /F /P=C:\AUTOEXEC.BAT TIA for any help with this. -------------------------------------------- Turbo C code: // extern to asm function extern void interrupt NewCritErrHandler(__CPPARGS); void interrupt (*OrigCritErrHandler)(__CPPARGS) = NULL; void SetupCritErrorHandler(void) { if (OrigCritErrHandler) return; disable(); OrigCritErrHandler = getvect(24); setvect(24, NewCritErrHandler); enable(); } void RestoreCritErrorHandler(void) { if (OrigCritErrHandler == NULL) return; disable(); setvect(24, OrigCritErrHandler); OrigCritErrHandler = NULL; enable(); } int main(void) { SetupCritErrorHandler(); atexit(RestoreCritErrorHandler); /* rest of code */ } ------------------------------------ TASM code that is linked in: public _NewCritErrHandler CEH_TEXT segment byte public 'CODE' assume cs:CEH_TEXT _NewCritErrHandler proc far mov al, 3 iret _NewCritErrHandler endp CEH_TEXT ends end -- All of us could take a lesson from the weather. It pays no attention to criticism. www.GCFL.net (The Good, Clean Funnies List): Good, clean funnies five times a week, no ads, for f_r_e_e! ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freedos-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-user