This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

operator new and interrupts



Hi all,

I have a project coded in C++, combined with some timecritical interrupts. In the background loop I create a singleton object at runtime, so interrupts are enabled at this time. Unfortunately this leads into an illegal op trap in the "new" method. If I create the singleton object before enabling the interrupts, things are fine. Although I can life with this workaround I would like to understand what I am doing wrong. Can anybody guide me?

BR Andreas