[fpc-devel] SDL on Mac OS X 10.5 and fpc 2.3.1

Adriaan van Os fpc at microbizz.nl
Mon May 5 15:41:35 CEST 2008


Schindler Karl-Michael wrote:

> SDL is used in the program Ultrastar.
> 
> on macosx 10.5 and fpc 2.3.1 sdl_init leads to a large number of warnings.
> 
> This is the line with sdl_init:
> 
>     SDL_Init(SDL_INIT_VIDEO or SDL_INIT_TIMER);
> 
> This is the related part of the output:
> 
> 2008-05-05 01:17:26.689 UltraStar[22982:807] ***
> _NSAutoreleaseNoPool(): Object 0x121f0d0 of class NSCFNumber
> autoreleased with no pool in place - just leaking

This problem disappears if you alloc and init an "NSAutoreleasePool" object, see 
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html>

Regards,

Adriaan van Os



More information about the fpc-devel mailing list