LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

compile old project version 5.0 to 7.1

Hi,

I’m trying to compile a 5.0 CVI project to version 7.1. Compilation works correctly but a fatal run TIME ERROR is displayed when I start the run debugged program.

I tried to compile with this 5.0 CVI project with the CVI 6.0 instead of 7.1, the same mistake occurs.

Thanks for your help:

The error message is:

Fatal Run-Time error unknown source position tread id 0x00000C54.
A non-debuggable thread cause a ‘General Protection’ fault at address 7C964D1
0 Kudos
Message 1 of 7
(3,846 Views)
Hello

Have you been able to trace were exactly this error is generated? If you set the option to break on first statement and then step thru each function, you might get a better idea of whats going on. 5.0 to 7.0 was a significant upgrade so there might be some unexpected behavior there.
Let me know what you find.
Bilal Durrani
NI
0 Kudos
Message 2 of 7
(3,817 Views)
Unfortunately I can’t put a break point before the error because the error occurs before the first line command in the main function.

I will create a new project and copy function after function from the old version into the new.

If you have a better idea ?
0 Kudos
Message 3 of 7
(3,813 Views)
If you are using any third party dll's, make sure that their import libraries are not corrupted. You could re-create imprt libraries if you have the header files and the dll by opening up the header, go to Tools >> Generate Import library.

I would also delete any output files that were generated during the building process (exe, the cvibuild folder) and try rebuilding the whole project. You can also mark all files for compilation.

If you are using any CVI fp's, make sure to point to the ones in the CVI 7 folder instead of the 5.0 folder.
You could also try removing functions from main() and see if that changes anything.

Hope this helps
Bilal Durrani
NI
Message 4 of 7
(3,805 Views)
Dears guys you’re trying to help me => I’ve just found a solution :

A made a new project and copy all old project files into the new one (*.h , . *.c, *.UIR). that took me 5 minutes. Built all and Now my new project works !

For Mister Bilal,

I have the CVI 7.1, I’d tried to make your recommendation but I could find Tools>>Generate Import library !!! Doesn’t matter because I can update my project now with the CVI 7.1.

Have a nice weekend

Marc
0 Kudos
Message 5 of 7
(3,794 Views)
Dears guys you’re trying to help me => I’ve just found a solution :

A made a new project and copy all old project files into (*.h , . *.c, *.UIR). that took me 5 minutes. Built all and Now my new project works !

For Mister Bilal,

I have the CVI 7.1, I’d tried to make your recommendation but I could find Tools>>Generate Import library !!! Doesn’t matter because I can update my project now with the CVI 7.1.

Have a nice weekend

Marc
0 Kudos
Message 6 of 7
(3,795 Views)
Whoops

That was supposed to be Options >> Generate Import library.

Im glad that it works now! 🙂
Bilal Durrani
NI
Message 7 of 7
(3,776 Views)