C
carl
I have a function "transform" that gets called for each voxel/pixel in a 3D
volume. Currently I am using data which contains 128*128*128 pixels.
In the function "transform" a search function on a kdTree is called for each
pixel. An array of closest neighbors are returned which might vary in size.
But when I run the code I get the error:
HEAP CORRUPTION DETECTED:after Normal block(#107261) at 0x020A44E0.
CRT detected that the application wrote to memory after end of heap
buffer.
I have now tried to set a limit on how many times the search function on
the kdTree should be called from the transform function. If I set the limit
to 20000 it works fine. But anything above 20000 gives the above error.
Is it possible to stress a function to much with to many calls?
volume. Currently I am using data which contains 128*128*128 pixels.
In the function "transform" a search function on a kdTree is called for each
pixel. An array of closest neighbors are returned which might vary in size.
But when I run the code I get the error:
HEAP CORRUPTION DETECTED:after Normal block(#107261) at 0x020A44E0.
CRT detected that the application wrote to memory after end of heap
buffer.
I have now tried to set a limit on how many times the search function on
the kdTree should be called from the transform function. If I set the limit
to 20000 it works fine. But anything above 20000 gives the above error.
Is it possible to stress a function to much with to many calls?