So I am trying to get started with SFML and game making in C++ but I can't even start the basic "Hello World" program. When I press F5 it prints out "ops.Press any key to close this window . . .". Here is the only information that I get from the debug window bellow.
'SFML.exe' (Win32): Loaded 'C:\VisualStudio\Projects\SFML\Debug\SFML.exe'. Symbols loaded.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'.
The thread 0xbe8 has exited with code 0 (0x0).
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'.
'SFML.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'.
The thread 0x2194 has exited with code 0 (0x0).
The thread 0x28d4 has exited with code 0 (0x0).
The thread 0x179c has exited with code 0 (0x0).
The program '[13688] SFML.exe' has exited with code 0 (0x0).
Also I don't know why are those .dll files loading since i used them in a previous project that I deleted.
Any help will be appreciated.
Related
Using VS 2017 and SFML 2.5.1 I followed the instructions for installation and used the code given in the tutorial here. I get a window with "SFML Works!" but instead of drawing a green circle I only get a white box like this:
The output after I close the application is as follows:
test
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\SFMLTutorial.exe'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-system-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-window-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmmbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ucrtbase.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Users\userName\source\repos\SFMLTutorial\Debug\sfml-graphics-d-2.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\opengl32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ucrtbased.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files (x86)\Avecto\Privilege Guard Client\PGHook.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptsp.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rsaenh.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\psapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyMemDef.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyKNPHDOJQHQZ.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files\Cylance\Desktop\CyNTFMIHYBLXA.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\ig9icd32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\SHCore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\windows.storage.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\profapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wtsapi32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\igdlh64.inf_amd64_8c587880ddec6926\igc32.dll'. Cannot find or open the PDB file.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dinput8.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\InputHost.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreMessaging.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\CoreUIComponents.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\WinTypes.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\hid.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\TextInputFramework.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\UIAutomationCore.dll'. Symbols loaded.
onecore\com\combase\inc\comcataloghelpers.hpp(67)\combase.dll!753F0530: (caller: 753F02C0) ReturnHr(1) tid(3efc) 80004002 No such interface supported
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sxs.dll'. Symbols loaded.
mincore\com\oleaut32\dispatch\ups.cpp(2125)\OLEAUT32.dll!75CD239F: (caller: 75CD1F41) ReturnHr(1) tid(3cf4) 8002801D Library not registered.
mincore\com\oleaut32\dispatch\ups.cpp(2125)\OLEAUT32.dll!75CD239F: (caller: 75CD1F41) ReturnHr(2) tid(3cf4) 8002801D Library not registered.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleacc.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\twinapi.appcore.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rmclient.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dxgi.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d11.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'. Symbols loaded.
'SFMLTutorial.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ResourcePolicyClient.dll'
The thread 0x3efc has exited with code -1073741510 (0xc000013a).
The thread 0x1ff8 has exited with code -1073741510 (0xc000013a).
The thread 0x3cf4 has exited with code -1073741510 (0xc000013a).
The thread 0x3c1c has exited with code -1073741510 (0xc000013a).
The thread 0x1e50 has exited with code -1073741510 (0xc000013a).
The thread 0x3c9c has exited with code -1073741510 (0xc000013a).
The thread 0x3e98 has exited with code -1073741510 (0xc000013a).
The thread 0x3f68 has exited with code -1073741510 (0xc000013a).
The thread 0x3ebc has exited with code -1073741510 (0xc000013a).
The thread 0x3ea4 has exited with code -1073741510 (0xc000013a).
The thread 0x3f58 has exited with code -1073741510 (0xc000013a).
The thread 0x360c has exited with code -1073741510 (0xc000013a).
The thread 0x3dd4 has exited with code -1073741510 (0xc000013a).
The thread 0x3b1c has exited with code -1073741510 (0xc000013a).
The thread 0x392c has exited with code -1073741510 (0xc000013a).
The program '[15600] SFMLTutorial.exe' has exited with code -1073741510 (0xc000013a).
The source code (copy / paste) is here:
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
I should be getting a green circle. Any thoughts on what I might be doing wrong?
When I try to open one of the sample models inside samples folder(C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\examples\x64_windows_vs2015\stat_mdas) and try to build it says build is successful but when I want to debug it setting a breakpoint to a line I got the following lines:
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\bin\x64_win64\cplex1270.dll'. Module was built without symbols.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\wsock32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
The thread 0x62c8 has exited with code 0 (0x0).
The thread 0x3414 has exited with code 0 (0x0).
The thread 0x3ea4 has exited with code 0 (0x0).
The program '[12884] admipex1.exe' has exited with code 0 (0x0).
It seems like Visual Studio 2015 is not supported by any CPLEX version yet.
Try using other Visual Studio versions like 2013 or earlier.
Follow this guide here:
http://www.leandro-coelho.com/how-to-configure-ms-visual-studio-to-use-ibm-cplex-concert/
it shows.....
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ig7icd32.dll'. Cannot find or open the PDB file.
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\version.dll'
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'2.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'2.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
The program '[7212] 2.exe' has exited with code 0 (0x0).
how to solve this!!!!!
Did you try simply reinstalling the program and restarting your computer? Worth giving a shot.
Just started programming in C++ and I installed Visual 2015. I've been trying to run a simple "Hello World" program but I get the following:
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\(user)\Documents\Visual Studio 2015\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.
The thread 0x2714 has exited with code 0 (0x0).
The thread 0x748 has exited with code 0 (0x0).
The thread 0xc24 has exited with code 0 (0x0).
The program '[3496] ConsoleApplication1.exe' has exited with code 0 (0x0).
I NO CLUE what this is for. The console shows my output for a bit, then it closes and shows that whole message. I've searched the internet but I am not getting solid answers on this.
It seems like your program has been running fine:
The thread 0x2714 has exited with code 0 (0x0). The thread 0x748
has exited with code 0 (0x0). The thread 0xc24 has exited with
code 0 (0x0). The program '[3496] ConsoleApplication1.exe' has
exited with code 0 (0x0).
The first part is about starting your program and loading of all the necessary dll's. The last part means the threads and your program exited with a code of 0x0, which means no errors.
You probably need to put a breakpoint F9 somewhere, to pause the program, or in a console application a getch(); (which needs: #include <conio.h>).
The console shows this output when the program is started in debug mode (with F5), to start it without debugging output, use Ctrl-F5 (Menu Debug / Start Without Debugging).
I was going through this tutorial on audio using SDL_mixer and everything went just fine.
After that I decided to experiment, play, and learn through exploration, so I made a program that was very similar, had two sound channels, and let me play some video game music, and push buttons to play game sound effects.
I then started having fun and button-mashing just to be silly and test the program. I started button mashing multiple buttons really quickly and then after doing that for probably 5 or so seconds the program closed unexpectedly.
Since that date 2 or so months ago, I have been unable to run -anything- on my computer that uses SDL_mixer. I've tried creating new projects with SDL_mixer, I've re-downloaded all of SDL and SDL_mixer, and even asked this question on the sdl forums.
I'm at the point where I'm going to reformat my entire computer to get it working again, which is -NOT- ok. An extension library should never force someone to reformat, especially when this is a problem that could potentially be passed onto end users who download and use the program later.
I'm using Windows 7 64-bit; Microsoft Visual Studio 2012 Professional; C++; and SDL 1.x
Also, if anyone knows what is wrong, how can I fix this, prevent it from happening again, and safely use sound so that I wouldn't cause problems on a user's computer?
The line I used to initialize the mixer is below:
//Initialize SDL_mixer
if( Mix_OpenAudio( 22050, MIX_DEFAULT_FORMAT, 2, 4096 ) == -1 )
{
return false;
}
The lines spat out by the debugger after I launch the program and it immediately closes:
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\SDL_Tutorial11.exe'. Symbols loaded.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\SDL.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\SDL_image.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\SDL_ttf.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\libfreetype-6.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\zlib1.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\SDL_mixer.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp110.dll'. Symbols loaded.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110.dll'. Symbols loaded.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ddraw.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dciman32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ddraw.dll'
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\dwmapi.dll'
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\setupapi.dll'
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\devobj.dll'
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\oleaut32.dll'
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\dciman32.dll'
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KBDUS.DLL'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL'
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KBDUS.DLL'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL'
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dsound.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dinput.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\hid.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\MMDevAPI.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\propsys.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\AudioSes.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\libmikmod-2.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wdmaud.drv'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ksuser.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\avrt.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.drv'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msacm32.dll'. Cannot find or open the PDB file.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Windows\SysWOW64\midimap.dll'. Cannot find or open the PDB file.
The thread 0x5b8 has exited with code 0 (0x0).
The thread 0x1d2c has exited with code 0 (0x0).
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\libpng15-15.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\libvorbisfile-3.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\libvorbis-0.dll'. Module was built without symbols.
'SDL_Tutorial11.exe' (Win32): Loaded 'C:\Users\Rayne\Documents\Visual Studio 11\Projects\SDL_Tutorial11\Debug\libogg-0.dll'. Module was built without symbols.
The thread 0x1a1c has exited with code 0 (0x0).
The thread 0x1fbc has exited with code 0 (0x0).
The thread 0x3f8 has exited with code 0 (0x0).
The thread 0x584 has exited with code 0 (0x0).
The thread 0xa98 has exited with code 0 (0x0).
The thread 0x182c has exited with code 1 (0x1).
The thread 0x1d1c has exited with code 1 (0x1).
The thread 0x1278 has exited with code 1 (0x1).
The thread 0x1d28 has exited with code 1 (0x1).
The thread 0x1ca0 has exited with code 1 (0x1).
The thread 0x1844 has exited with code 1 (0x1).
The thread 0x1340 has exited with code 1 (0x1).
The thread 0x6e8 has exited with code 1 (0x1).
The thread 0x2008 has exited with code 1 (0x1).
The program '[4852] SDL_Tutorial11.exe' has exited with code 1 (0x1).
P.S. Is there an easier way to denote large sections of code without having to manually copy-past 4 spaces in front of every line? That took a while ._.;
Thanks to genpfault's advice I was able to discover a way to fix this.
It turns out that the solution was that when the program was crashing from over-loaded sound channels, that because the sounds had to be activated by key-presses, the queued up key presses were getting appended into the program's source code because Visual Studio automatically grabbed 'window focus' after the crash and 'caught' the excess characters.
The characters just happened to be appended to a string-literal of one of the first error-checking lines for the SDL_mixer functions in the very beginning of the program, so it wasn't throwing syntax errors for the compiler; the error check line was just saying "nope, the loaded file doesn't match this string exactly, so therefore close the program", which caused the program to be exiting before my break-points could register and allow me to debug.
It's an absolute relief to finally have this resolved.
Thank you genpffault and stack-overflow!~