I am recieving an error that states "HEAP CORRUPTION DETECTED" the app wrote to memory after end of heap buffer. I have looked and looked but with no luck, any help would be appreciated.
It would be better if you provide a complete program that demonstrates the problem. With what you have posted nobody has any idea what the function inputs are or what the CIntStat type is.
N is simply the number of elements while CIntStat can be treated as a normal array since I overloaded operators to do so. kbw, what is wrong in the part?
This is the kind of problem that needs to be debugged. i'm not sure what help anyone can give without a complete example that demonstrates the problem. We need to see the definition of all types as well as a short main function that demonstrates the problem.