LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Discrepancies between system() and LaunchExecutableEx()

I'm attempting to replace a call to system() with LaunchExecutableEx to allow for more control over window appearance. The application I am calling is sending some SNMP commands. I eventually send the same commands, using the same function, to a remote client and to localhost. The actual calls to the executable contain a LOT of arguments; Paths, tokens, IP addresses...

 

However, the ones sent to localhost never make it to the listening server I've setup. But, ONLY if I'm using LaunchExec... it works just fine with system...

 

LaunchExec... returns a valid handle, and no errors. I've renamed the executable during runtime and made sure it was throwing errors, and it is.

I does this ont he first call to LaunchExec... so I'm sure it's nothing to do with the number of processhandles being made.

 

 Anyone else ever have this issue?

0 Kudos
Message 1 of 2
(2,941 Views)

Hey Crymsenn,

What are you passing in as your arguments to LaunchExecutableEx? Also, have you tried using your local IP address instead of using localhost?

 

Lars

Message 2 of 2
(2,903 Views)