From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Tooltip corruption

It appears that the Data Tooltip in the CVI editor does not like bool...

 

I am attaching three pictures to illustrate the process: there is some code (a function), and when typing the Data Tooltip shows the function definition; this mostly works except sometimes, see below. 'Sometimes' seems to be related to boolean function definitions

 

1)

s1.png

 

2)

s2.png

 

3)

s3.png

 

 

0 Kudos
Message 1 of 6
(4,485 Views)

Hi Wolfgang,

 

I haven't been able to reproduce this yet. Here is what I did:

 

bool.png

 

I don't know if it depends on how bool is defined. Can you reproduce this outside of your project and, if so, can you share your definition of bool?

 

Luis

0 Kudos
Message 2 of 6
(4,434 Views)

Thanks for trying...

 

I used

 

#include <stdbool.h>

0 Kudos
Message 3 of 6
(4,431 Views)

Hi Luis,

 

I have been able to reproduce it in a simple demo, see below:

 

demo.png

0 Kudos
Message 4 of 6
(4,414 Views)

Thanks, Wolfgang. With your help, I've reproduced and confirmed the bug: 473109.

 

The difference here is in the use of the clang-intrinsic _Bool data type (via stdbool,h). If you define bool yourself to something else (for example, typedef int bool), then the bug doesn't happen.

 

0 Kudos
Message 5 of 6
(4,391 Views)

Thanks Luis!

0 Kudos
Message 6 of 6
(4,387 Views)