PDA

View Full Version : Strange output after a successfull(?) compile of my SDL game.


RHLinuxGUY
2006.10.21, 04:03 AM
Thanks to the help of One Sad Cookie and akb825, I was able to successfully comile and run a small SDL app. Now afterwards I compiled a large, but only one file application that I made for my Linux desktop to take keyboard input, and output it into a img for that peticular character.

I will tar ball the relatively small package for anyone who would care to jump in and do their best to see what the problem is?

The program was compiled and ran fine under Gentoo Linux with gcc 3.4.6, it also compiled fine with just warnings about the main parameters not being used, using the followin commands:

gcc -c SDLMain.m -I/Library/Frameworks/SDL.framework/Headers -o SDLMain.o

g++ -g -c myfont_engine.cc -W -Wall -ansi -pedantic -I/Library/Frameworks/SDL.framework/Headers -o myfont_engine.o

g++ SDLMain.o myfont_engine.o -framework Cocoa -framework SDL -I/Library/Frameworks/SDL.framework/Headers -o myfont_engine_end

GDB cannot run the application, saying there is an internal error in GDB, but here is the output from just making the file executable and running it.

georget% ./myfont_engine_end
kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
2006-10-20 23:53:54.881 myfont_engine_end[4491] _NXCreateWindow: error creating window (1002)
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid connection
kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
kCGErrorFailure : Failed to create window context device.
kCGErrorFailure : CGWindowContextCreate: failed to create context.
2006-10-20 23:53:54.976 myfont_engine_end[4491] _initWithWindowNumber: error creating graphics ctxt object for ctxt:0, window:-1
kCGErrorFailure : CGContextResetClip: invalid context
kCGErrorFailure : CGContextReplaceTopGState: invalid context
kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current hide-on-deactivate state
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting client event mask window property
kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting window event mask
kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut: Invalid connection
2006-10-20 23:53:55.073 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2560 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.285 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2580 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.288 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e25c0 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.292 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2610 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.294 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2650 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.297 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2690 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.299 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e26b0 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.301 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e26d0 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.304 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e26f0 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.306 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2710 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.308 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2730 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.311 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2790 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.313 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e27c0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.315 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e27f0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.318 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e28d0 of class NSCFDictionary autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.323 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e29d0 of class NSIdEnumerator autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.325 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307cfa8 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.327 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e2980 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.330 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307d008 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.333 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307d058 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.335 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307cfd8 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.338 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307cf98 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.340 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307d028 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.343 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307cfb8 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.345 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa307cf88 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.348 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x11f770 of class NSCFNumber autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.352 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3900 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.357 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3c70 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.359 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3d00 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.363 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3d80 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.365 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x108630 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.366 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3e00 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.369 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3a70 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.374 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3ef0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.376 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3be0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.410 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e4280 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.411 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e42f0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.411 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x101cb0 of class NSConcreteData autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.412 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e44b0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.412 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5d3c10 of class NSConcreteData autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.412 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e3c50 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.633 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e5280 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.636 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e5340 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.637 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e62d0 of class NSCFDictionary autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.638 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e5850 of class NSCFData autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.638 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e58e0 of class NSCFData autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.939 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa3079c28 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.942 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e6ac0 of class NSBitmapImageRep autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.945 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e6b00 of class NSImage autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.947 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e6c40 of class NSBitmapImageRep autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.949 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e6cd0 of class NSImage autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.951 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e0420 of class _NSThemeCloseWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.955 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa3079c28 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.957 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7200 of class NSBitmapImageRep autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.959 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7240 of class NSImage autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.961 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7290 of class NSBitmapImageRep autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.965 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e72d0 of class NSImage autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.967 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e6e60 of class _NSThemeWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.970 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa3079c28 of class NSCFString autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.973 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7650 of class NSBitmapImageRep autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.976 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7690 of class NSImage autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.978 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e76e0 of class NSBitmapImageRep autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.980 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7720 of class NSImage autoreleased with no pool in place - just leaking
2006-10-20 23:53:55.982 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7400 of class _NSThemeWidget autoreleased with no pool in place - just leaking
kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
2006-10-20 23:53:55.999 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7880 of class NSView autoreleased with no pool in place - just leaking
2006-10-20 23:53:56.004 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5d8e60 of class SDL_QuartzWindowDelegate autoreleased with no pool in place - just leaking
2006-10-20 23:53:56.007 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7cb0 of class NSIdEnumerator autoreleased with no pool in place - just leaking
2006-10-20 23:53:56.009 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0xa3075ad8 of class NSCFString autoreleased with no pool in place - just leaking
kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
2006-10-20 23:53:56.013 myfont_engine_end[4491] _NXCreateWindow: error creating window (1002)
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid connection
kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
kCGErrorFailure : Failed to create window context device.
kCGErrorFailure : CGWindowContextCreate: failed to create context.
2006-10-20 23:53:56.014 myfont_engine_end[4491] _initWithWindowNumber: error creating graphics ctxt object for ctxt:0, window:-1
kCGErrorFailure : CGContextResetClip: invalid context
kCGErrorFailure : CGContextReplaceTopGState: invalid context
kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current hide-on-deactivate state
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting client event mask window property
kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting window event mask
kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut: Invalid connection
kCGErrorInvalidConnection : CGSNewWindow: Invalid connection
2006-10-20 23:53:56.053 myfont_engine_end[4491] _NXCreateWindow: error creating window (1002)
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSInvalidateWindowShadow: Invalid connection
kCGErrorInvalidConnection : CGSSetWindowListAlpha: Invalid connection
kCGErrorIllegalArgument : CGSLockWindowRectBits: Invalid window
kCGErrorFailure : Failed to create window context device.
kCGErrorFailure : CGWindowContextCreate: failed to create context.
2006-10-20 23:53:56.054 myfont_engine_end[4491] _initWithWindowNumber: error creating graphics ctxt object for ctxt:0, window:-1
kCGErrorFailure : CGContextResetClip: invalid context
kCGErrorFailure : CGContextReplaceTopGState: invalid context
kCGErrorInvalidConnection : CGSGetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetHideOnDeact: error getting current hide-on-deactivate state
kCGErrorInvalidConnection : CGSSetWindowProperty: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting client event mask window property
kCGErrorInvalidConnection : CGSSetWindowEventMask: Invalid connection
kCGErrorInvalidConnection : CGSSetEventMask: error setting window event mask
kCGErrorInvalidConnection : CGSSetWindowToReleaseBackingOnOrderOut: Invalid connection
2006-10-20 23:53:56.177 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5d7a90 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:56.179 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5deed0 of class NSCFArray autoreleased with no pool in place - just leaking
2006-10-20 23:53:56.179 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5d4740 of class NSCFArray autoreleased with no pool in place - just leaking
kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
2006-10-20 23:53:59.292 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5d7a00 of class SDL_QuartzWindow autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.297 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e0420 of class _NSThemeCloseWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.299 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e6e60 of class _NSThemeWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.302 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7400 of class _NSThemeWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.304 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7880 of class NSView autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.306 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e0420 of class _NSThemeCloseWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.308 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e6e60 of class _NSThemeWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.310 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7400 of class _NSThemeWidget autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.312 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e7880 of class NSView autoreleased with no pool in place - just leaking
2006-10-20 23:53:59.315 myfont_engine_end[4491] *** _NSAutoreleaseNoPool(): Object 0x5e5830 of class NSIdEnumerator autoreleased with no pool in place - just leaking
georget%

PS: I am a Mac newb... I have been realy using it, only for the past couple days.

OneSadCookie
2006.10.21, 04:45 AM
Some of that is very odd, but my guess is that you need to create a proper Mac application bundle. That means you'll need the directory structure Foo.app/Contents/MacOS, the executable at Foo.app/Contents/MacOS/Foo, the PkgInfo file at Foo.app/Contents/PkgInfo, and the Info.plist file at Foo.app/Contents/Info.plist . The SConstruct and Info.plist here: http://onesadcookie.com/svn/repos/Astro/ might be helpful to you...

RHLinuxGUY
2006.10.21, 09:27 PM
What am I supposed to do with the bundle?

skwirl42
2006.10.21, 09:44 PM
What am I supposed to do with the bundle?

You can still launch the executable from the command line, the Info.plist file just tells the window server, et al., that it's a GUI app. If it doesn't need command-line arguments, you can just double-click it in the Finder. However, if it still appears as a folder in the Finder, you can rename the top level directory of the bundle, in the Finder, and it should update. It's a bit kludgey, but it's the only way I've found that consistently updates the Finder.

If you've got the documentation for the dev tools installed, and this link works in 10.2.8, file:///Developer/ADC%20Reference%20Library/documentation/CoreFoundation/Conceptual/CFBundles/index.html should give you a bit more documentation on bundles. However, you'll definitely find the document at http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/index.html

RHLinuxGUY
2006.10.22, 08:40 PM
After spending some time, I fixed the problem. Making a bundle didn't help the problem at hand... it was SDL.

I made my program call SDL_Init() before it reached main(). In Linux, this works just fine, because it does not need SDL_main() as Mac OS* does. With a program compiled using SDL, when main() is found, it is replaced with SDL_main() in order to actualy use SDL (which I'm sure guys on #sdl @ irc.freenode.net can explain in more detail).

So, to see a working copy of an SDL program, check out my SDL_FontEngine (in alpha stages, just took me about less then half a day) here: http://www.yousendit.com/transfer.php?action=download&ufid=5EEE11EF1E250A9D

It's under GPL, so if you think you might want to use it, exploit the license.

akb825
2006.10.22, 10:47 PM
Works great... until it's time to quit. :-p I had to force quit... several times. Also, delete doesn't take place immediately. It waits until you put in another letter to delete that one and it puts the new one in it's place.

RHLinuxGUY
2006.10.22, 11:09 PM
Ya, I should have mentioned that it is completely finished. I know about the delete not deleting any characters until one overwrites the other. It's getting there though. :D It just shows me how to making a running SDL app on Mac OSX, and maybe help anyone else who might do the same mistake I did.

--update--

hrm... I'm don't see why it is not quiting like it should. Did you try pressing escape? I did not implement the x button on the window title. The escape keys exits the program only.

akb825
2006.10.23, 12:22 AM
I essentially tried anything but escape. To implement the close button or the quit menu item, simply look for an event of type SDL_QUIT.

RHLinuxGUY
2006.10.23, 12:32 AM
hehe! Thanks, will do.