Closed ghost closed 5 years ago
I believe it isn't possible to catch CPU exceptions unless you modify the devkit code. Just try to avoid them.
Did you check the generated assembly code to see if your plug got included and is getting called? If your code is being plugged properly then try stepping through it with the Cosmos Assembly Debug Window or Bochs debugger to see what's going wrong.
On Sep 13, 2016, at 15:37, hannah notifications@github.com wrote:
I believe it isn't possible to catch CPU exceptions unless you modify the devkit code.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
I think that it isn't even called. Because it works the same with and without it.
Did you use try and catch?
Try catching fatal errors if you can.
Were you able to check if your plug is used or not?
How can i catch Critical errors like division by zero or any other like that. Because i tried using try but it still crashes. Also i found out one files called INTs that is supposed to catch the critical system errors and i took the Plug from dewitcher (https://dewitcher.codeplex.com/) but it is not working. This is the code that i use (slightly modified from dewitcher so it will work in the newest version of Cosmos and be compatible with my OS):
EDIT: Because i wasn't able to find the References i took the DLLs from my cosmos dev kit and i put them in one folder and i referenced the DLLs in the project. And i also have my MihailOS.Plugs project referenced to my MihailOS Boot project.