LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to connect to remote application (fatal error)

Symptom:

 

After building a debuggable application (EXE), I tried to connect to it by:

 

1.  Running the EXE

2.  Operate » Debug Application or Shared Library...

 

The IDE tried to connect to the EXE and then posted this dialog:

 

Remote Debug - Fatal Error.PNG

 

After clicking OK, my Connection Status looked like this:

 

Remote Debug - Failed to Connect.PNG

 

 

 

Explanation:

 

It turns out you cannot debug an application if there are any subVIs without diagrams.  In my case, I'm calling someone else's VI in ONE location.  That VI happens to NOT have a diagram.

 

In case someone ever sees this puzzling "fatal error" dialog during connection, watch out for VIs where the diagrams have been removed.

 

 

Work Around:

 

Use a DDS (Diagram Disable Structure) to comment out the VI w/o diagram.  Then, build your application and debug it.  Enable the DDS case with the VI before building the final application.


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 1 of 5
(3,886 Views)
It's just a very bad idea to work with VIs that do not have a diagram. By doing so, you prevent the user from upgrading the LabVIEW version for no reason. Password protect them if you must but always insist on VIs with diagrams.
0 Kudos
Message 2 of 5
(3,882 Views)
Tell me about it.  If you know how to convert hBitmap (DDB) to a LabVIEW image cluster PLEASE let me know.  This is the *only* downside of the G Toolbox...

Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 3 of 5
(3,867 Views)

I currently have the problem described at the top of the this thread.

 

In my case, my LV2009 build connects just fine to the debugger. Now the same code is saved using LV2010, then rebuild the application and each time the OS reports the application has stopped and "failed to connect" message appears.

 

Any ideas how I fix this, I'm unable to debug the exe (the source code works just fine).

0 Kudos
Message 4 of 5
(3,713 Views)

I successfully debugged my application without use of the Project Operate debugger. How: (I set "open FP when called" and FP indicators on VIs for debugging the exe). But although all is well the debugger still fails to connect, even after creating a new build in the project from scratch.

0 Kudos
Message 5 of 5
(3,699 Views)