0

Hello all.
I have been trying to run a program on my VC8 compiler which incorporates the Allegro enviroment. It enables users to move a small robot.bmp image around the screen by using the arrow keys. Problem is I get my main window up and first animation frame displayed, but once a n arrow key is pressed , the program crashes. This is what my log displays:

'RobotMoves.exe': Loaded 'C:\Documents and Settings\Jason\My Documents\Visual Studio 2005\Projects\RobotMoves\Debug\RobotMoves.exe', Symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\alld42.dll', Symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\dinput.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\dsound.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\serwvdrv.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\umdmxfrm.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded.
al-main INFO: Allegro initialised (instance 1)
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\mslbui.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\hid.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll', No symbols loaded.
'RobotMoves.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll', No symbols loaded.
al-gfx INFO: Called set_gfx_mode(0, 640, 480, 0, 0).
al-gfx INFO: First call, remembering console state.
al-gfx INFO: Autodetecting graphic driver.
al-gfx INFO: The driver will wait for vsync.
al-gfx INFO: set_gfx_card success for 640x480x8.
Assert failed at line 250 of c:\code\allegro\include\allegro\inline/draw.inlThe thread 'Win32 Thread' (0x2d8) has exited with code 3 (0x3).
The thread 'Win32 Thread' (0xe00) has exited with code 3 (0x3).
The thread 'Win32 Thread' (0xf54) has exited with code 3 (0x3).
The program '[3988] RobotMoves.exe: Native' has exited with code 3 (0x3).

Can someone please give me an idea as to what is happening here?

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Ancient Dragon
0

the errors you posted are not of much value. You should compile your program for debug then step through it one line at a time until you find the place where it crashes.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.