Author Topic: how to watch the value of an array in Nightly Debug Branch?  (Read 4582 times)

Offline facat

  • Multiple posting newcomer
  • *
  • Posts: 19
how to watch the value of an array in Nightly Debug Branch?
« on: April 09, 2011, 08:24:26 pm »
i was using the nightly debug branch of CB. i added my interesting array to the watch window, ticked the "Watch as array" and set the count. However it said "Cannot access memory at address 0x0". how can i see the value of my array?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: how to watch the value of an array in Nightly Debug Branch?
« Reply #1 on: April 09, 2011, 08:55:45 pm »
Are you sure you try to watch a valid array ?

Offline facat

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: how to watch the value of an array in Nightly Debug Branch?
« Reply #2 on: April 10, 2011, 03:01:55 am »
Are you sure you try to watch a valid array ?

yes, i tried to watch a dynamically allocated array.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how to watch the value of an array in Nightly Debug Branch?
« Reply #3 on: April 10, 2011, 03:33:23 am »
What is the type of the array?
Are you sure that the pointer is not pointing to NULL?
GDB is telling you just this:)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline facat

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: how to watch the value of an array in Nightly Debug Branch?
« Reply #4 on: April 10, 2011, 07:02:01 pm »
What is the type of the array?
Are you sure that the pointer is not pointing to NULL?
GDB is telling you just this:)
ok. it was solved. i made a mistake. thk you.