Hi , I see a wierd problem here. I am allocating memory , doing some operations and freeing the memory. but when i build the solution again, as soon as i allocate the memory , the previous values are seen. I use VS05 as my environment
For ex,
Allocating memory A…
once the kernel is run , A has an array say 1 to 10
free memory A…
rebuild the solution…
As soon as A is allocated, i see 1 to 10 in it…
isn this wierd??? and ha, this is happening to only one of the pointers , other pointers are behaving in a nomal way. What could be the reason???
It’s not weird at all. That particular array is being reallocated to the same space as before. This is why you should always initialize your arrays after allocation.