LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI2013 problem with excluded lines

I found a problem with CVI 2013 when you have some excluded lines in a header file which has some errors.

This problem can be seen in the attached example, following these steps:

  1. exclude the line #35 (CTRL+E shortcut)
  2. build the project; this gives error due to line #28 in dummy.h
  3. in the Build output window double click on the line explaining the error
  4. CVI opens a new tab with a copy of dummy.h header (from UnsavedChanges directory) where the excluded lines have been commented (//....)
  5. when this happens it's not clear that this is NOT the real header file, so you modify it (fixing the error), but when you rebuild the project you see the same error described at step #2

This behavior has no sense.

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
Message 1 of 4
(3,763 Views)

Hi Vix,

 

Thank you for your valuable feedback.  I have filed a bug report to investigate this issue.  The bug ID is: 430277.  You may use this number to track the issue.

 

Warm Regards,

Daniel Dorroh
National Instruments
Message 2 of 4
(3,716 Views)

I've seen this behavior too.  I have found a work-around:

 

If you choose the Edit | Resolve All Excluded Lines option, and change them all to something like #if 0, then all will compile.

0 Kudos
Message 3 of 4
(3,484 Views)

This bug has been partially solved with f1 patch (see here).

But anyway the behavior is not correct yet; another bug report ID has been already filled in.

 

I know that if I comment and/or "#if 0" the lines the project can be compiled, but my usage of CTRL+E is to temporary disable lines without saving the modifications in the source files.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 4
(3,472 Views)