LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

array view

Solved!
Go to solution

Hello,

 

may be I am just too tired but I can't find the error:

 

Using CVI 2009 SP1 I am debugging a dynamically allocated array of double values, the relevant code snippet is shown below:

 

 

array.jpg

 

 

the program has stopped at the breakpoint and the mouse is hovering over the &array text; the tooltip text indicates that there is at least one value, set to zero. This is as it should be (as the programmer wants it to be...).

 

However, if I want to inspect the array using the variable view, the view claims that the array has not been allocated and still is NULL, see below:

 

 

array2.jpg

 

 

I have checked that there is no other variable in all the source with the same name, so both variable view and mouse tooltip text should refer to the same variable...

 

Please, could anybody enlighten me?

 

Thanks!! 

0 Kudos
Message 1 of 2
(2,797 Views)
Solution
Accepted by topic author Wolfgang

It appears that the memory of the debugger got corrupted. After restarting CVI debugging behaves as expected. 

0 Kudos
Message 2 of 2
(2,791 Views)