Weird problem with exceptions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
beyondsociety

Weird problem with exceptions

Post 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?
Post Reply