Can't launch VS2005 profiler against app that uses redirection on the command line
I've been trying for a while today to profile a simple C++ app, and finding that the profiler simply attaches and then immediately exits
Profiler started
Successfully attached to process: 5004
Exited from process: 5004
Collection file exited: C:\Develop\longevitas\longevitas\longevitas060621(18).vsp
Profiler exited
PRF0025: No data was collected.
===================== Profiling Complete =====================
The app compiles and debugs without a problem and I believe now the issue relates to the use of file redirection in the command line which is of this form:
myexe.exe <infile.csv par1 par2par3 >output3.xml
Setting "<infile.csv par1 par2par3 >output3.xml" for the project properties-> Configuration Properties -> Debugging -> Command Arguments, works fine, but it looks to me as if the launcher for the profiler isn't able to deal with it.
I even tried to run the command line tools and sure enough setting /launch and /args for vsperfcmd showed that the string "<infile.csv" was being passed in as the first string argument, so the app was terminating abnormally, presumably causing the rapid detach.
Am I correct, and is there any workaround?
I am using
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Thanks,
Gavin Ritchie.

