I've just written an app in C++ using SDL 1.2.15 and SDL_image 1.2.12 libraries. It works on my computer but whenever I send *.exe to my friends (of course with all *.dll files from SDL libraries and images that program needs) they say that nothing happens (no message, no error, etc.). The content of the program doesn't matter as every SDL app written by me create such a problem.

2 Answers
2

If application appears to don't even start, you can use DependencyWalker to check whether all the static dependencies are fulfilled. It will show you if there are any missing dlls. If all dependencies seem to be fulfilled (no error in dll list), you can use Profile command from the main menu to profile the startup of the application.

Profiling will show you if there are any issue with dynamic dependencies (dlls loaded via COM or explicit calls to LoadLibrary).

Ok, I've just discovered my mistake. I determined the width and height of my SDL_Surface (with SDL_SetVideoMode()) to fit my screen dimensions. When the function wanted to do the same on screen with other dimensions it returned NULL thus crashing all app.
Thanks for concern.