LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

app exiting before main function ?

Hi I have an app that depends on 4 or 5 dll's it is working fine on most machine (with cvi installed).
I have made a distribution kit and installed it on a machine without cvi but the app exits immediately.
I have also tried to copy the entire bin directory containing all my dll's from my development machine with the same results.

I suspect that one dll is causing the app to exit but how can I debug this.

Execution never reaches the main function as I have placed in printf statements to track the process.

Any tips greatly appreciated.

0 Kudos
Message 1 of 3
(3,135 Views)
Hi there,
 
Have you tried just creating dummy programs.  Each of which only call a single DLL?
If you tried that you could maybe find the source of the problem?
Are the DLL's threadsafe?
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 2 of 3
(3,107 Views)
I solved the problem it was a dll that dpended on MSVCR71.dll
so I have to distribute this along with the MSVCR8.dll runtime now ?

Anyway I had to install visual studio to get it to tell me the problem with the missing library by using it in a dummy program.

cvi just failed with general protection fault.

Thanks


0 Kudos
Message 3 of 3
(3,103 Views)