Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Error just when finished the program (SDL - C++)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 riverreal   Members   -  Reputation: 616

Like
0Likes
Like

Posted 24 June 2012 - 11:22 PM

When I can't run the program from the IDE (Visual C++). But I can run it just double clicking the generated EXE file.
The program runs fine, but when I close it gives me a message like:

"
Microsoft Visual C++ Runtime Library

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

"

And when I try to run it from the IDE it says:


'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\Ultra Pong.exe', Symbols loaded.
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\SDL.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\SDL_image.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\SDL_ttf.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\libfreetype-6.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\zlib1.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\SDL_mixer.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\ddraw.dll'
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\dwmapi.dll'
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\setupapi.dll'
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\devobj.dll'
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\dciman32.dll'
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\KBDUS.DLL', Cannot find or open the PDB file
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL'
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\KBDSP.DLL', Cannot find or open the PDB file
'Ultra Pong.exe': Unloaded 'C:\Windows\SysWOW64\KBDSP.DLL'
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\dinput.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\hid.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\smpeg.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Windows\system\libstdc++-6.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Windows\system\libgcc_s_dw2-1.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\MMDevAPI.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\propsys.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\AudioSes.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Users\usuario\Desktop\pong\project pong\Ultra Pong\Debug\libmikmod-2.dll', Binary was not built with debug information.
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\wdmaud.drv', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\ksuser.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\avrt.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\msacm32.drv', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\msacm32.dll', Cannot find or open the PDB file
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\midimap.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0xe20) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x5b4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1220) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xf84) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1368) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xe68) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1374) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xca0) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x11f0) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x1358) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x4c4) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xe70) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x190) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xdb0) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x13ac) has exited with code 1 (0x1).
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
The program '[3596] Ultra Pong.exe: Native' has exited with code 3 (0x3).




I think the problem ocurre because the compiler takes the SysWOW64 folder instead the System32 ones.
For example:
'Ultra Pong.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
The ntdll.dll file cannot find in the SysWOW64 folder, but I checked the System32 folder and indeed there was the ntdll.dll file.

I thought copy the necessary files to SysWOW64 but I know it is very risky, so I didn't.

Please help...
I got the same problem compiling the program with codeblocks (mingw).

Sponsor:

#2 DevLiquidKnight   Members   -  Reputation: 834

Like
0Likes
Like

Posted 25 June 2012 - 12:20 AM

This sounds like you have a problem with your compiler configuration settings, but I could be wrong, as I have never used codeblocks. PDB files are used for debugging purposes.

Edited by DevLiquidKnight, 25 June 2012 - 12:21 AM.


#3 mhagain   Crossbones+   -  Reputation: 8142

Like
1Likes
Like

Posted 25 June 2012 - 01:34 AM

Here's your hint:

Invalid parameter passed to C runtime function.



It's highly unlikely to be a compiler-related problem and highly likely to be a problem in your code - particularly as it happens across two different compilers. So you need to find which C runtime function you're passing an invalid parameter to, and fix it.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS