LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Process start crashes application

Solved!
Go to solution

I have an applicaton that uses a inhouse test client (not labview) to test a server. Labview uses win api calls to control this client. I have to start the test client before I can control it and for the most part it works fairly well. However quite frequently the Labview appliacton is terminated by the OS as it tries to start the client, but only sometimes. Somtimes it works somtimes crash. It crashes at the marked spot between the two Log Start / Finish vis. The windows event log shows an ntdll.dll Start Client block diagram.png

 

From the event log

"Application: Burn-In.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException Stack: "

"Faulting application name: Burn-In.exe, version: 11.4.9.0, time stamp: 0x51d22c87
Faulting module name: ntdll.dll, version: 6.1.7601.18247, time stamp: 0x521ea8e7
Exception code: 0xc0000005
Fault offset: 0x000330bd
Faulting process id: 0x147c
Faulting application start time: 0x01cfe3f348a72fdc
Faulting application path: C:\Program Files (x86)\TCI\Burn-In.exe
Faulting module path: C:\windows\SysWOW64\ntdll.dll
Report Id: 2313cfcc-4fe7-11e4-a010-842b2bbdfe3a"

I have a .evtx file with the saved logs.

0 Kudos
Message 1 of 6
(3,813 Views)

Hi Viper!

 

Can you try to call the ntdll.dll in another development environment to see if it still causes a crash?

 

 

0 Kudos
Message 2 of 6
(3,755 Views)

I believe that there is a problem with my client and the state that its in when I try to restart it. I built a start stop test loop that just starts and closes my client and it ran just fine 2500 times. But in my application when I actually use the client to talk to my server there is a conditon where the client sometimes hangs. To get around this I stop and restart the client. The thing is it only causes a crash about 1/10th of the time.

 

I am not calling ntdll.dll. I don't even know what it does. I am using the "Start Process" invoke node. That causes my app to get kicked and the ntdll.dll error in the windows application event log.

 

Norm

0 Kudos
Message 3 of 6
(3,727 Views)
Solution
Accepted by topic author Viper
I ended up replacing the start process method with the system exec.vi and now it doesn't crash.
0 Kudos
Message 4 of 6
(3,659 Views)

Any follow up on that?  Pretty unsatisfying conclusion for the rest of us 🙂

 

I've been using the process.start method recently and it's worked brilliantly.  Also really nice that you get the ref wire so that you can stop/kill later when needed, rather than trying to kill a process based on name which is sketchy.

0 Kudos
Message 5 of 6
(3,386 Views)

I've done no further research on this. Sorry.

0 Kudos
Message 6 of 6
(3,290 Views)