ArduinoProcessScheduler icon indicating copy to clipboard operation
ArduinoProcessScheduler copied to clipboard

compiling failed when EXCEPTION_HANDLING is enabled

Open MartinSE73 opened this issue 7 years ago • 1 comments

I want to use the functionalitiy of the timeout handling for long running processes (Webbino). For this I have to activate the _PROCESS_EXCEPTION_HANDLING and _PROCESS_TIMEOUT_INTERRUPTS. But when I uncomment the EXCEPTION_HANDLING I receive following compiler error:

_C:\Users\Martin\Documents\Arduino\Heat2017\HT2017\libraries\Arduino_Process_Scheduler\src\ProcessScheduler\Scheduler.cpp: In member function 'virtual void Scheduler::handleException(Process*, int)':

C:\Users\Martin\Documents\Arduino\Heat2017\HT2017\libraries\Arduino_Process_Scheduler\src\ProcessScheduler\Scheduler.cpp:464:21: error: request for member 'restart' in 'process', which is of pointer type 'Process*' (maybe you meant to use '->' ?)

         process.restart();_

Now my quetion is it a "layer 8 problem" or a bug?

MartinSE73 avatar Oct 28 '17 03:10 MartinSE73

Hi Martin,

This is indeed a simple bug, recently changed the default behavior to restart a stuck process and accidentally used . instead of -> on a pointer type. Fixed in master, should be good now, give it a try and let me know.

wizard97 avatar Oct 28 '17 05:10 wizard97