What causes SXSTrace error "StartTrace failed ... Unknown Error"? [closed] - c++

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm here because of a sibe-by-side configuration error.
When I try to launch a game, it pops a side-by-side configuration error.
I try lots of stuff that didn't work, but then, I found this site:
http://blogs.msdn.com/b/cesardelatorre/archive/2011/03/27/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-error-related-to-mmc-exe-programs-and-weird-cause-amp-simple-solution.aspx.
Following they'r instructions, I tried the command( In command prompt! ):
sxstrace.exe trace -logfile:C:\MySxSTrace.log
at first it returned that it couldn't recognize this kind of command.
So I did this:
Right click computer -> advanced -> environment variables -> system variables -> and i edited the path to add C:\Windows\System32\
OR
http://helpdeskgeek.com/how-to/fix-not-recognized-as-an-internal-or-external-command/
So it resolved the problem that it could not recognize it as an internal or ext command.
But then, i tried the command again: sxstrace.exe trace -logfile:C:\MySxSTrace.log
and it returns THIS: StartTrace failed. Error message is: Unknown Error.
I searched and I found someone who sayd that you cant put something on the root folder, complete nonsense. Because I haven't found anything, I ask in this site as I think programmers should understand that kind of stuff. Oh yeah and I heard that the side-by-side configuration error has something to do with c++.
So yeah:
1-The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.
2- StartTrace failed. Error message is: Unknown Error.

You can use dependency walker to open your exe and find the missing dependency and SxS versioning.

Related

Run an executable after moving it to a different directory in the make file [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
In my make file I try to move my executable to a different release directory and then run the program but I am having some issues when I run the program from the make file
mv main ../Data/Derived/Release;
./Data/Derived/Release/main
I get the command not found error.
When I go to the release folder and run ./main From the command line, it works as expected. I am not sure what I am missing here.
You moved the program to ../Data/Derived/Release.
Then you tried to run ./Data/Derived/Release.
These are not the same path. .. means "the parent directory", but . means "this directory".
Looks like you missed out a dot.

Running a c++ file from command line [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm very much used to Visual Studio, but a HW assignment requires that the finished product be run from the command line. I've built it in Visual Studio to make sure my code is at least syntactically correct and won't cause any compiler to throw me a message, but he designed the template so that it would only really work on Command Line. Therefore, I need the command line to test the functionality of the code
TL/DR: the jist of it is: I should be able to run it from command line by typing in:
programName argument
How do I do this with a .cpp?
It should be
Programname.exe argument 1 argument2 ... argumentn
Make sure you're running the program in the correct path or specify the full path of the .exe
First open command prompt than type cd and your file's location ( Bot don't write your program's name.Example we have a test.exe in our desktop. If we open the command prompt we will see something like this: C:\Users\Username\ : We should locate the file so we can do : cd C:\Users\Username\Desktop or cd Desktop This one works if the directed folder is a sub folder of Username .Than you can use this code : start test.exe. hope this helps.Please send a feedback.

CS107 Assignment Files [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to run the Stanford CS107 Assignment files on my mac but whenever I try to run the binary files I get an error 'Permission denied'. If I chmod the file so I have execute permissions I get an error that says 'cannot execute binary file'.
How can I execute these files?
I can't run the imdb-test-linux binary because all the source files aren't given. To get the imdb-test file to run there was a problem in the imdb-utils.h file. The code uses
const char *ostype = getenv("OSTYPE");
Which returns Null on my mac for some reason. To fix the problem, in the 'determinePathToData' function inside the imdb-utils.h file just return the directory where you have placed the data files.
run 'make imdb-test' and it should run.
Hope this helps someone :)

Fatal Error while Running c++ object file [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have compiled C++ project using cmake utility on Red hat Linux 4.1.2.
gcc version: 4.1
When I try to run object file using following command I got an exception:
./GCVMP ../../dat/settlingsUnix/MPSettings.xml
exception : Fatal Error: æ¹¥åSä
I am not able to understand root cause.
Please help me in this regard.
I suspect that the "Fatal Error:" portion is something printed by your code. It's supposed to be followed by a message explaining the error, but the message passed is corrupted, and so junk is printed.
Have you tried compiling the program with -ggdb running it under gdb? Here's a good starter on how to use the debugger: http://www.ibm.com/developerworks/library/l-gdb/

Permission denied running my own program on Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have Ubuntu 9.4. I've built the program, some basic OpenGL. The program just makes a rotating square. Then run it and:
sh: /blabla permission denied.
And an empty main doesn't work:
int main()
{
return 0;
}
How can I make that disappear?
I had the same problem and it appeared that my partition was mounted as noexec
cat /etc/mtab
When I configured options in /etc/fstab I wrote exec,user but it appears that "user" option by default sets up "noexec". When I changed the order of these two to user,exec everything went back to normal!
Hope it helps.
How are you compiling it? Can you post the makefile? If you run
chmod +x myPorgram
./myProgram
something changes?
Check the mountpoint to see if it's mounted as noexec by running "mount"
I use CodeBlocks on Ubuntu and have had this exact problem MANY times.
what KermiDT said is exactly the solution (if i had enough rep points, i would have voted it up)
The "user" option by default sets up "noexec".
so in /etc/fstab just add ,exec after user.
i.e. mine looks like this:
/dev/sda6 /media/DATA vfat uid=kenny,gid=kenny,users,user,exec 0 0
Though, the spacingis a bit off... but you get the idea.
Apart from the above mentioned chmod +x file, another problem might be a missing library. To check the required libraries, use ldd:
$ ldd /bin/sh
linux-vdso.so.1 => (0x00007fffb43fe000)
libc.so.6 => /lib/libc.so.6 (0x00007fc4abe11000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc4ac183000)
If one of these lines shows a missing library, you'll know what needs to be installed before you can run your program.
Another possibility is if your program is a script (shell, perl, python or other text-based program). The first line looks like:
#!/usr/bin/perl
If that file cannot be found, you'll get a permission denied error.
Couple of questions:
Are the permissions set correctly on the file?
Is the path to any interpreter set correctly?
You also get this problem when trying to execute 32-bit apps on a 64-bit system. Execute:
a. file (executable name)
b. uname -a
and check that both are either "i386" or "amd64".
If they are not the same, have a look at this article:
Try executing the command with strace to trace the successful system calls it makes and where it stops.
This is how you might launch it,
strace ./blabla
Do you get a "permission denied" error or something like "exec format error"? With chmod +rx on the file you should not hit "permission denied".
You should also make sure that your username is in the video group. Check the /etc/group and make sure that your username appears on the "video" line.