LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use fp file in my project

Solved!
Go to solution

I have used ini and toolbar functions in my project, these functions are included in inifile.fp and toolbar.fp. Recently I found my released .exe routine userly got run-time error. And I changed CVI compiling environment as below:

 

1. add these two fp files in the customize library, and do not include them in my project tree;

 

2. do not include fp files in customize library, and add them in my project tree directly, CVI will load related instruments automaticly.

Does these two settings has any different? Which setting is better?

 

Thanks!

0 Kudos
Message 1 of 5
(5,087 Views)

The 'Customize Library' menu entry specifies libraries to load once you start CVI - independent of the project. So if you need an instrument driver for one project only I would add it to the specific project.

0 Kudos
Message 2 of 5
(5,084 Views)

You mean customize library's application domain is all CVI projects? So these two settings I montioned above should be the same. But I feel the first setting cases my released routine unstable. It sounds very strenge, my project can pass the complie and also can create release exe succes in both two settings, but the exe created in the first setting usually have run-time error.

0 Kudos
Message 3 of 5
(5,078 Views)

Yes, I would think that both variants should work for you.

 

Did you check that the path names are correct (and identical) in both cases?

0 Kudos
Message 4 of 5
(5,070 Views)
Solution
Accepted by topic author Bance

Hi Wolfgang,

 

Thanks for your helping. I have found the problem. The key issue is cvirte2012 have a bug in table control, it may case function protection when mouse move to a deteleted row. I have been updated it to cvirte2013, and the crash does not happen any more.

 

Bance

0 Kudos
Message 5 of 5
(4,932 Views)