キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/6
5,322件の閲覧回数

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 件の賞賛
メッセージ2/6
5,271件の閲覧回数

Thanks for trying...

 

I used

 

#include <stdbool.h>

0 件の賞賛
メッセージ3/6
5,268件の閲覧回数

Hi Luis,

 

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

 

demo.png

0 件の賞賛
メッセージ4/6
5,251件の閲覧回数

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 件の賞賛
メッセージ5/6
5,228件の閲覧回数

Thanks Luis!

0 件の賞賛
メッセージ6/6
5,224件の閲覧回数