--- In [email protected], Ravi Mishra <ravics...@...> wrote: > > Actual firstime cellNextCounter value is =0 but second time when > cplane->cellAmount value and other value is incremented > but that time cellNextCounter value is still zero so in gdb dump is taking > pointer to that line.
Are you using any optimisation eg. -O2? That might confuse gdb. Can you show us the output from the printfs when you run your code?
