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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to