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

Jonas Maebe jonas.maebe at elis.ugent.be
Mon May 5 16:05:42 CEST 2008


On 05 May 2008, at 09:50, 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 happens if libSDL_main is not used (properly). Did you follow the  
instructions at http://wiki.lazarus.freepascal.org/FPC_and_SDL#Mac_OS_X_specific_issues 
  ?

(in particular the -XMSDL_main parameter)


Jonas



More information about the fpc-devel mailing list