Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

User exception handler in C (Developers)

posted by Guti Homepage, 27.07.2020, 08:22

> Hi, is it possible/how to install user exception handler in user program in
> DJGPP (DOS) and MinGW (Windows) to catch CPU exception before OS/program
> will crash? Does DJGPP have it's own hander or is it catched by DPMI server
> or other memory manager in v86 mode like JEMM? Is it possible to resume
> from exception and continue normally? Eg. in case of RDMSR of nonexisting
> MSR exception is generated and it leads to crash or BSOD in Windows. There
> was some discussion about CPU-Z in Win9x that from VXD the exception cannot
> be catched and Windows will BSOD...

You can use com0com0 to map a real Windows port to a virtual DOS one. Indeed I use it for debugging my DOS Watcom applications under Windows 10.

https://www.javiergutierrezchamorro.com/depurar-aplicaciones-dos-con-watcom-c-y-openwatcom-c/

---
Visit my personal blog at https://www.javiergutierrezchamorro.com

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 270 users online (0 registered, 270 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum