Allegro Issues


Trying to play with allegro, and it is giving me errors with my debug. Any tips?


'ALLEGRO_TEST.exe': Loaded 'C:\Users\Matt Cromer\Documents\Visual Studio 2010\Projects\ALLEGRO_TEST\Debug\ALLEGRO_TEST.exe', Symbols loaded.
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\alld42.dll', Cannot find or open the PDB file
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\dinput.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Symbols loaded (source information stripped).
'ALLEGRO_TEST.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Symbols loaded (source information stripped).
The program '[1636] ALLEGRO_TEST.exe: Native' has exited with code 3 (0x3).

Are you sure you're getting errors? With the exception of the ALLEGRO_TEST.exe returning a 3, I don't really see anything that may be wrong. I don't even see the word "error" in there.
You mean 'Cannot find or open the PDB file'? That's no error. It tells you that the debugging informations are not found. Not really a problem
.
Last edited on
.
Last edited on
My program always crashes when I run it... I would post my whole source code but it is rather large.

But even if I empty main and just run this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//INCLUDES
#include <allegro.h>
//GLOBALS
const int scrx = 640;
const int scry = 480;
BITMAP *buffer = create_bitmap(640,480);
//CLASSES
//#include "ball.h"
//#include "timer.h"
//ALLEGRO INIT
void AllegroInit ()
{

		if (allegro_init()) 
	{
		allegro_message("Cannot initalize Allegro.\n");
	}

	if (install_keyboard()) 
	{
		allegro_message("Cannot initalize keyboard input.\n");
	}

	if (install_timer())
	{
		allegro_message("Cannot initialize timer. \n");
	}

	set_window_title("Hello World");

	//GRAPHICS MODE TRYING ALL DEPTHS
  set_color_depth(32);
  if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, scrx, scry, 0, 0)) {
    set_color_depth(24);
    if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, scrx, scry, 0, 0)) {
      set_color_depth(16);
      if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, scrx, scry, 0, 0)) {
        set_color_depth(15);
        if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, scrx, scry, 0, 0)) {
          allegro_message("Video Error: %s.\n", allegro_error);
        }
      }
    }
  }
}




int main(int argc, char* argv[]) 
{

AllegroInit();

//set buffer to black
floodfill(buffer, 0, 0, makecol(0,0,0));


		//textprintf(buffer,font,scrx/2,scry/2,makecol(255,255,255),"X: %4i",ball_x_position);
		//textprintf(buffer,font,(scrx/2),(scry/2)+20,makecol(255,255,255),"Y: %4i",ball_y_position);
		//textprintf(buffer,font,scrx/2,(scry/2)+40,makecol(255,255,255),"DownSpeed: %4i",ball_downspeed);


return 0;
}
END_OF_MAIN()


it gives me an error saying:

Debug Error!
R6010
- abort() has been called

(Press retry to debug the application)



Also, it points to my bitmap creation, so maybe that has something to do with it.


So I guess the main problem is that since the debug symbols aren't loading, I can't figure out whats wrong with my code.. so I need to figure out how to load the PDB first and foremost so that I can debug.
Last edited on
Okay so I figured out that the error was caused by me initializing the bitmap pointer outside of main.

I still need to know how to fix my debugger so it can tell me when I make stupid mistakes instead of spending a whole damn hour on it like I just did.

Thanks
That's Allegro 4, which is deprecated. If you wanna use Allegro, use Allegro 5.

http://www.allegro.cc
Okay thanks
Topic archived. No new replies allowed.