RST 38 error

Hi all:

For test purposes, I’m using a delay (OSTimeDlyHMSM) within an ISR, it works fine if the delay is under 8 milliseconds, but it crashes if I make the delay 9 milliseconds or larger, it appears the following message.

An RST 38 occurred, but the RST 38 vector is uninitialized
file: b[/b]
line: 0

If somebody of you could tell me what is the problem I would be very grateful.

Thanks in advance