Pointer Warning in glGenTextures

(I've been lurking this site for a long time, and have really enjoyed reading the posts here. Hopefully you guys can help me out on this one)

I've got a small problem...

I'm teaching myself Cocoa with OpenGL, and was writing a small program for practice to display a square and, with the right and left arrow keys, rotate it. The next step was for me to attempt to apply a texture to the object. For the texture loading code, I wrote this:

[Session started at 2008-04-06 14:01:10 -0400.]
Loading program into debuggerâ€¦
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".Program loaded.
sharedlibrary apply-load-rules all
Attaching to program: `/Users/davidallen/Downloads/OpenGLrules/build/Release/OpenGLrules.app/Contents/MacOS/OpenGLrules', process 2310.

After that, no window pops up or anything. If I comment out the code, though, the program works normally. I've checked the debugger, but, considering I've never used it before, didn't see anything interesting.

I'm on a MacBook Pro 15.4" with 2GB RAM and 512MB VRAM.

** EDIT **

I got rid of the warning (texture was a GLint when it should have been a GLuint), but the program still crashes. Looking further into it, it appears to be because of an error EXEC_BAD_ACCESS (SIGSEGV). Any suggestions?