Mac OS X - 1.2.9 stable - Errors and aglGetCurrentContext()

I’m new to SDL, so this could potentially be my problem, but I seem to
be following the docs properly. Also, if this has already been
answered, I apologize and I haven’t found a searchable list.

When calling SDL_SetVideoMode, it throws a number (about 10 or so) of
warnings to the console, they are all:

2005-10-06 18:23:53.201 dim3 Engine[251] *** _NSAutoreleaseNoPool ():
Object 0x627270 of class NSCFString autoreleased with no pool in place

  • just leaking

If this is fixed, I can recompile from the CVS.

Now, my big problem. I need to get the current AGL context that SDL is
operating under. For some reason, aglGetCurrentContext() never seems to
return a proper context (it might not be set when I need it), but
scanning the source I see that some private structures have the context
in them. Can somebody give me the chain to get the private context out
of the private structures?

[>] Brian

It might help if you told us things like, what operating system you’re using.On October 7, 2005 07:28 am, ggadwa at charter.net wrote:

I’m new to SDL, so this could potentially be my problem, but I seem to
be following the docs properly. Also, if this has already been
answered, I apologize and I haven’t found a searchable list.

When calling SDL_SetVideoMode, it throws a number (about 10 or so) of
warnings to the console, they are all:

2005-10-06 18:23:53.201 dim3 Engine[251] *** _NSAutoreleaseNoPool ():
Object 0x627270 of class NSCFString autoreleased with no pool in place

  • just leaking

If this is fixed, I can recompile from the CVS.

I’ve seen this error message once before a long time ago. In my case,
it was caused by developing/running an SDL app after a system software
update was applied but the “You must restart” message was ignored and
the system was never rebooted.

Maybe you should try rebooting? (And maybe you should run a software
update while you’re at it, just in case.) Other than this, I don’t
remember seeing any other instances of this reported. If this
continues to persist, you’ll have to tell us a lot more, starting with
with OS X version you’re running, and probably a reproducable test
case that others can run.

-Eric> From: “ggadwa at charter.net

I’m not paying attention to the thread, but… did you look at the
Subject line? :wink:

-bill!On Fri, Oct 07, 2005 at 01:16:27PM -0600, Tyler Montbriand wrote:

It might help if you told us things like, what operating system you’re using.

When calling SDL_SetVideoMode, it throws a number (about 10 or so) of
warnings to the console, they are all:

2005-10-06 18:23:53.201 dim3 Engine[251] *** _NSAutoreleaseNoPool (): Object
0x627270 of class NSCFString autoreleased with no pool in place - just
leaking

Did you link to SDLmain? This sounds like you’ve forgot that one (and
somehow managed to link it together anyway).

// MartinOn Fri, 7 Oct 2005, ggadwa at charter.net wrote:

Did you link to SDLmain? This sounds like you’ve forgot that one (and
somehow managed to link it together anyway).

This is actually easy to link without it…make sure you #include
"SDL.h" in the source file with main(), or you won’t get the basic SDL
initialization that needs to run before YOUR main().

(SDL.h, on Mac OS X, will redefine your main() to be SDL_main()…then
the libSDLmain library has it’s own main() that calls SDL_main(). It’s
messy, but it works.)

–ryan.

Did you link to SDLmain? This sounds like you’ve forgot that one (and
somehow managed to link it together anyway).

That was it, thank you all.

The second part of my question is still a mystery – I need to get
the AGLContext that SDL is using (this is on Mac OS 10.4.2, SDL
1.2.9). I know it’s hidden in the data structures somewhere. Is
there a way to coax it out? aglGetCurrentContext() always returns
null under SDL.

While this is, of course, not cross platform, it’ll currently be used
for a function that is not used on other platforms.

[>] BrianOn Oct 8, 2005, at 3:20 PM, sdl-request at libsdl.org wrote:

The second part of my question is still a mystery – I need to get the
AGLContext that SDL is using (this is on Mac OS 10.4.2, SDL 1.2.9). I know
it’s hidden in the data structures somewhere. Is there a way to coax it out?
aglGetCurrentContext() always returns null under SDL.

I don’t know about agl, but I’ve used CGLGetCurrentContext(), which works
fine.

// MartinOn Sat, 8 Oct 2005, Brian Barnes wrote: