Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
4727 Discussions

Inspector does not let my program read external files.

dominique120
Beginner
200 Views

I have a program that must read a configuration file when it starts but whenever I start this program inside inspector the program does not read this external configuration file. If I execute the program outside of Inspector the program loads this file fine.

Is these something I can do so that my program reads the config file?

Thanks

0 Kudos
1 Solution
Peter_W_Intel
Employee
200 Views

It sounds this is impossible.

On GUI, have you added items into "User-defined environment variables" which is in <Project Properties>\Target tab ? These user environment variables might be required for program to read external files.

Another way is, use a console which can ran your app to read external files, without Inspector XE. Then run inspxe-gui or inspxe-cl, they will inherit all system variables and user variables from this console.

View solution in original post

5 Replies
Peter_W_Intel
Employee
201 Views

It sounds this is impossible.

On GUI, have you added items into "User-defined environment variables" which is in <Project Properties>\Target tab ? These user environment variables might be required for program to read external files.

Another way is, use a console which can ran your app to read external files, without Inspector XE. Then run inspxe-gui or inspxe-cl, they will inherit all system variables and user variables from this console.

dominique120
Beginner
200 Views

I did not adjust the env variables but I did adjust other options like the working directory.

Everything is working now, thank you.

Peter_W_Intel
Employee
200 Views

 Yes. Run Inspector from console which has right working directory, will help. Thank you let me know the problem has been solved:-)

dominique120
Beginner
200 Views

I'm having the same problems with Advisor but I cant fix it with the console and I dont see any properties windows, what should I do?

Peter_W_Intel
Employee
200 Views

Please go this forum to discuss the problem from Advisor XE.

Reply