LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI AppCrash when terminating

Solved!
Go to solution

Hello,

i work on a CVI software, currently with CVI 10.

 

The software is crashing when the program exits.

 

int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                       LPSTR lpszCmdLine, int nCmdShow) {     if (InitCVIRTE (hInstance, 0, 0) == 0)
        return -1;    /* out of memory */
[ ... bla bla bla ...] RunUserInterface (); return 0; }

I tried to put a popupmessage between the "RunUserInterface" and the "return" command, and it is ok (the message is displayed), but the program crash after the "return".

 

The windows event logger presents  an appcrash, quoting kernelbase.dll.

 

Furthermore, the crash does not occur on all PC, but is systematic. It seems  to happen under windows 10, and not on windows 7, mostly used by my customer.

This error also happen with two similar softwares.

 

I don't know how to fix this problem...

0 Kudos
Message 1 of 4
(2,812 Views)
Solution
Accepted by topic author cedric_b

Hello, there exists a similar known situation of error at program termination, related to CVI2015 and Windows 10. The error has been fixed with CVI2015 SP1F1 patched run-time module. The error is discussed in this thread and the patch can be downloaded from here.

 

If you happen to have CVI2015 installed also on your machine (so you are executing your applications with the 2015 runtime) you are very likely to fall in this scenario and installing the patched runtime will fix it for your machine and all Win10 boxes you are running your app on.

 

I don't know if a similar situation may affect older runtime modules running on win10, but if the error is the one described in the linked thread and considering the RTE is backward compatible you may want to try downloading and installing the patch as well.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 4
(2,793 Views)

Wouaouw !

As we said in french : "better is one who knows that ten who seek".

 

It works fine !

 

Thank you

0 Kudos
Message 3 of 4
(2,782 Views)

You're welcome! Smiley Happy



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(2,770 Views)