LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LaunchExecutableEx execuation time grows with repeated use

Hello,

 

I have a program where I need to zip files on a repeated basis, every second to maybe 5 seconds on average.

 

I have an issue where if I use LaunchExecutableEx to run the zip program, the time for LaunchExecutableEx continually rows.  I.e. if I start at ~0.25 seconds, its ~0,5 seconds after 1000 or so repetitions.

 

Stoping and restarting the program does not correct it, I have to reboot the PC to reduce the execution time.

 

I tried this with a sampleCVI program instead of the zip program, and it behaves the same.

 

LaunchExecutableEx ("C:\\Users\\Public\\Documents\\National Instruments\\CVI2015\\samples\\toolbox\\RegEx.exe", LE_HIDE, &pkZipHandle);

 

I commented out the "RunUserInterface()" from the example program, so it just loads and exits.

 

I'm really not sure what to think about this.  Is a CVI bug, a Windows 10 bug?

 

Any comments and suggestions are appreciated.

 

Terry Moss

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

Hello,

 

Yes, I wait for it to finish and then delete the handle.

 

A colleague suggested running the thread in the main thread using a Postdefered Call.

 

That seems to show some promise..

 

Thanks,

 

Terry

0 Kudos
Message 3 of 5
(1,246 Views)

Update, running this in a deferred post doesn't help anything.

0 Kudos
Message 4 of 5
(1,231 Views)

Dear  TerryMoss,

 

Can you please attach the file and executable you have?

Regards,

anasei.

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