How to catch InternalLimitsError : too many java alive thread

Hello,

I would like to be able to catch InternalLimitsError : too many java alive thread exceptions to reset my board when they happen.
Is there a way to do this ?

Hi @jadams,

In order to clarify what is the InternalLimitsReached error and how to recover from it I have written a How-To for everyone to find the information.

You can find it here.

But long story short you need to use the Thread.setDefaultUncaughtExceptionHandler API.

Hope it’ll help.
Gaëtan for MicroEJ