I have created a library which contains 2 interrupt routines (these are installed and run as the interrupt occurs).
However I have a problem, I get an Exception Handling Error after a few minutes of the program (which uses the library) running.
My question is what is the best way to protect the data that these interrupt routines are accessing. I think that at some time both interrupt routines are access the same data and corruption is occurring.
I am mindful that these routines have to run quickly and not consume too much processing time.
The error is:
First-chance exception at 0x78004df5 in AIMAPI_TEST.exe: 0xC00000FD: Stack overflow.
Unhandled exception at 0x78004df5 in AIMAPI_TEST.exe: 0xC00000FD: Stack overflow.
However I have a problem, I get an Exception Handling Error after a few minutes of the program (which uses the library) running.
My question is what is the best way to protect the data that these interrupt routines are accessing. I think that at some time both interrupt routines are access the same data and corruption is occurring.
I am mindful that these routines have to run quickly and not consume too much processing time.
The error is:
First-chance exception at 0x78004df5 in AIMAPI_TEST.exe: 0xC00000FD: Stack overflow.
Unhandled exception at 0x78004df5 in AIMAPI_TEST.exe: 0xC00000FD: Stack overflow.