Page 1 of 1

Weird problem with exceptions

Posted: Sat Jan 10, 2004 11:55 am
by beyondsociety
Ive been working on some code and when I went to test it, I started getting a divisor by 0 exception error. So I commented out my code one by one, but for some reason the exception still appeared, thus my exception handler was still being called. So I decided to comment out the exception and run the code, but to my shock I noticed that the next exception handler was called and displayed.

After noticing this, I decided to comment out all my exception handler code and run it to see what I would get. It printed my messages fine without any exception errors, but after a while the code will restart the computer. Is this normal if I havent called a idle to freeze the computer?

By the way, I am testing my code on a real machine using grub. I would use bochs but I still havent figured out how to create a image for it. The problem is Im using cygwin with a makefile. Before I was using djgpp and a batch file, so it was easy to create a image and run it. Any suggestions on how to create a image of my code that works with cygwin?