09-17-2020 07:00 PM
How to deal with a frozen exe file?
Once it freezes, the task manager also does and they do not recover. The only thing I could do was the forced termination of computer.
Can I avoid this situation by modifying the vi? Is there any code for recovering from freezing?
09-17-2020 07:22 PM
What does the EXE do?
Is it pure LabVIEW or does it call third party drivers or dlls?
What's the LabVIEW version?
What is your OS?
Does it freeze randomly or predictably?
09-17-2020 07:27 PM
Super F4 can kill the hang application with Ctrl+Alt
It's free, open source, on GitHub.
Maybe worth to give a shot.
09-17-2020 07:32 PM - edited 09-17-2020 07:33 PM
Dear altenbach,
Thank you for your response.
The EXE simulates the control system of pump. Because it is now under development, it has not been connected with pump or flowmeter yet. Now it generates random numbers (flow rate), conduct PID control and determines the pump output. Everything completes in the computer. It just changes the color of the display and indicates the flow rate-like random numbers.
It is pure LabVIEW 2017 SP1 (32bit).
My OS is Windows 10.
Unfortunately I have not found the condition where freezing occurs.
09-17-2020 07:35 PM
Dear zou,
Thank you for telling me the software. It must be helpful if I cannot find the solution.
09-17-2020 10:41 PM - edited 09-17-2020 10:41 PM
@K.Hata wrote:
Dear altenbach,
Thank you for your response.
The EXE simulates the control system of pump. Because it is now under development, it has not been connected with pump or flowmeter yet. Now it generates random numbers (flow rate), conduct PID control and determines the pump output. Everything completes in the computer. It just changes the color of the display and indicates the flow rate-like random numbers.
It is pure LabVIEW 2017 SP1 (32bit).
My OS is Windows 10.
Unfortunately I have not found the condition where freezing occurs.
Unfortunately we haven't, either. The chances are slim to none that we can help you because we still hardly know anything about the executable.
09-17-2020 11:54 PM - edited 09-18-2020 12:12 AM
Dear billko
Thank you for your reply.
My question is why the task manager freezes when the executable freezes, NOT why my executable freezes.
A frozen software can be terminated with the task manager, whereas my executable is stronger than the task manager. I wonder why they can be terminated. Is there any specific code needed for terminating it with task manager?
In other words, can an executable produced with LabVIEW be terminated with the task manager? Or, is special attention necessary for achieving this?
09-18-2020 12:12 AM
But you already said that you think your exe freezing is the cause of the task manager freezing.
Generally, task manager doesn't freeze.
Therefore, we need to see your code to maybe see some reason why it would freeze and thus cause task manager to freeze.!!
09-18-2020 12:20 AM
Dear RavensFan
Thank you for your explanation.
So I will decompose the code and clarify which part causes the task manager freezing with my computer.
The sentence "Generally, task manager doesn't freeze." has encouraged me.
09-18-2020 01:32 AM
@K.Hata wrote:My question is why the task manager freezes when the executable freezes, NOT why my executable freezes.
Correlation is not causation. So far we don't even know what freezes first. It could even be that a third actor causes both to freeze.
How long does your executable typically run before the freeze occurs? How is the CPU use (low or high?) and the memory use (high, low, constant, increasing, etc.)
Do you run any unusual antivirus or security software? Is your hardware good? Is there anything interesting in the windows logs?