LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The software Icon is still on taskbar , after I close the software in 64-bit Windows 7.

Hi,

 

I programmed two labview software. One is bigger and the other is smaller. Both  work fine on windows XP. After I move those software to 64-bit windows 7, I found the smaller one can not close correctly, but the bigger one is good. The software Icon of the smaller one is still on taskbar, after I close it. The windows 7 tasks manager shows 'Not responding'. I can not figure out how to fix it. I have to kill the process manually.

Please help me

Thanks a lot.

Steven

0 Kudos
Message 1 of 30
(3,005 Views)

This could be due to any number of issues.  Please post your code so we can take a look.

0 Kudos
Message 2 of 30
(2,995 Views)

I can not upload the code, unless I get approved from my boss.

 

It is OK on 32-bit windows 7. It only happens on 64-bit windows 7.  Anyone has similar experience?

 

Thanks a lot.

 

Steven

0 Kudos
Message 3 of 30
(2,986 Views)

BTW, the Labview rev. is 2011

0 Kudos
Message 4 of 30
(2,984 Views)

Please take a look the code. I delete some detailed information as per my boss's requirements.

Thanks

0 Kudos
Message 5 of 30
(2,976 Views)

You have a race condition caused by abuse on Local variables

 

event element is going to be overwritten in the lower state machine.  (Which is probably why you are abusing Closetimingloop pick a better exit strategy!)

 

The best guess is the lower loop finishes and the FP closes but one of your top loops stays running


"Should be" isn't "Is" -Jay
Message 6 of 30
(2,964 Views)

I updated the software: I put 'CloseOtherloop'  into the program to ensure the lower loop is the last one to finish. But the problem is still there, the software icon is still on the tasker bar, after I close the software.  

Is there any memory or processor that I should release or kill?

Thanks.

Steven

0 Kudos
Message 7 of 30
(2,950 Views)

I'm fairly certain the solution will not involve beating up another local variable.  switch the bool constant on the last case structure. does the vi actually stop?

 

Is this problem vi actually a built exe?  if so you need to close app instance not close FP.  (Try using the App.Kind property to drive the last cases selection)1b.PNG


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 30
(2,938 Views)

@JÞB wrote:

(Try using the App.Kind property to drive the last cases selection)

1b.PNG


I'm more of a fan of the Conditional Disable Structure myself


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 9 of 30
(2,931 Views)

I like the Conditional Disable myself...

 

I would also refactor the code..  There's too much loose logic and spread of Localized nonsense variables..  

Ok.. trying to sound phylosophical didn't work for me today.. 

 

But I'd still refactor the code.. 

0 Kudos
Message 10 of 30
(2,923 Views)