Jump to content
  • Advertisement
Sign in to follow this  
kogo50

Having a problem with DirectX program!

This topic is 2900 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm learning directx from a book and I've been having trouble getting the programs to run. How to book is organize is it is making a game library for the user of the book to use and it split up the code into 4 files. A MyWindow.cpp for the windows code, a MyDirectX.h for the game library functions, a MyDirectX.cpp for the function definitions, and a MyGame.cpp for the game or example. It pretty much adds more functionality to the game library each chapter and then show an example. My problem is that all of the examples get the same error or something similar. The error for the latest is

'Animate_Sprite.exe': Loaded 'C:\Users\Admin\Documents\Visual Studio 2008\Projects\Animate_Sprite\Debug\Animate_Sprite.exe', Symbols loaded.
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\d3d9.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\version.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\d3d8thk.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\D3DX9_43.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\xinput1_3.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\dinput8.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcp90d.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcr90d.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\guard32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\fltLib.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'Animate_Sprite.exe': Loaded 'C:\Program Files (x86)\RocketDock\RocketDock.dll', Binary was not built with debug information.
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\nvd3dum.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\hid.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'Animate_Sprite.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
The thread 'Win32 Thread' (0x1340) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xc24) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x10d4) has exited with code 0 (0x0).
The program '[976] Animate_Sprite.exe: Native' has exited with code 0 (0x0).


This is the same error for all of the examples and I'm not sure what is wrong. I'm guessing its either in the MyWindows.cpp or the MyGame.cpp files. Now thats a lot of code to post so if someone can tell what that means or what the problem mostly likely is then I should be able to fix it. If you want me to post the code then just say so.

Share this post


Link to post
Share on other sites
Advertisement
That doesn't really look like an error, rather that just the program ran successfully and exited.

Is there any kind of control flow or pause that stops the program from exiting? What happens if you step through in the debugger?

Share this post


Link to post
Share on other sites
Well it starts to run the program and then terminates. This happen before and someone to me that it was a problem in MyWindow.cpp but I fix that problem. I'm not sure if I should post the source code or not. I have no idea why the programs are doing this. Its doing it to all of the examples so it must be apart of the code.

Share this post


Link to post
Share on other sites
The first thing you should do is determine where the program exits, then why. Set a breakpoint early in the execution, maybe immediately after the WinMain (or tMain, whereever your program initiates). Then step through the code and determine where and why the program exits.

Also, see if the Debug Runtime gives you any information.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!