Can't run a programme using main stadalone but does work on IDE

I am using an H7 and interested in the face recognition example. It works well when connected to the IDE via USB, but if I save the programme as ‘main’ and try to run remotely it restarts the board every time it recognises a face using the Haar function if there are no faces in view it runs continuously. Other programmes work fine remotely using main it seems to be the Haar function when it recognises a face that causes it to crash Any help appreciated.

Hi, add try catch exceptions to your program and print them out and continue your code loop. You can then open a serial port to the camera using the Open Terminal feature in the IDE to see what the camera is doing without having it in debug mode when you click connect on the IDE.

thanks will try that