Problem with "...invalid conversation..." resolved!

Continuing the discussion from Problem with "error:…invalid conversation…":
The problem was resolved by removing the reference to Context txt in the Interrupt service routine…sweep_isr(Context txt) changed to sweep_isr(). Even though it worked fine with arduino uno, it gets the error when I used esp8266 or esp32 !!?