I try to use finite buffer counting in a Borland C++ Builder application; for each point in a loop, I set the counter operation(single buffer event counting) and after finishing the counting the counter is reset. However, after a number of points the application crashes with the message 'Unrecognized or unlisted error'. This is followed by a computer crash. Sometimes this happens without any error message. Apparently it seems to occur randomly, without any dependence on the number of times the counting operation is repeated.
I checked for eventual conflicts in the resources tab from the device manager, but there isn't any. Everything seems to be normal.
The OS is Windows 2000, on a Pentium 4 computer, and I use Borland C++ Builder 5.
I would appreciate any help on this issue.