LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug where program hangs and two tasks of the same program are running for no known reason

Hello,

 

 

I have a strange bug with a data acquisition program that normally works very well.  Once in a blue moon, it will hang up, and when we find it it has two versions of the task showing in Task manager, but no one has touched the computer.

 

Any ideas on how to trouble shoot this?

 

Thanks,

 

Terry

0 Kudos
Message 1 of 3
(3,944 Views)

Hello Terry!

 

It would be very helpful if you could provide some more information about what your application does. Does your program do any forks or does it call other processes in the meantime?

 

Here are some resources you could use in order to troubleshoot this:

  • Sysinternals utilities suite (procmon, procexp, etc.)
  • Resource Tracking Window in CVI
  • Windows Debugging Tools
  • Debug program in order to identify the location where the hang occurs and output logs of individual threads/functions in your code.
0 Kudos
Message 2 of 3
(3,900 Views)

I tried running the debugger on it, but when it hangs up, the debugger won't show you where its hung up at.

 

In the meantime, I'm going back to an older version of code, that was stable.

 

Thanks for the advice.

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