[fpc-other] SDL TimerCallback crash with Linux

Geno Roupsky groupsky at gmail.com
Fri Jun 2 15:41:56 CEST 2006


2006/6/1, sascha-zimmermann at arcor.de <sascha-zimmermann at arcor.de>:
>
> Hi there,
>
> I am developing a small game with FreePascal (FP for short) and SDL. While
> trying to support multiple platforms
> I ran into a problem with SDL_AddTimer. I reduced my code to the core
> problem (see below) to find out what's wrong.
>
> In Win32 the executables (FP and C) run as expected. But when I compile
> the same code under Linux only the C binary
> will run while the FP binary crashes at the first call to the timer
> callback function:
>
> Starting...
> SDL_AddTimer: Success!
> Waiting 8 seconds...
> An unhandled exception occurred at $08055A31 :
> Exception : Unknown Run-Time error : 202
>   $08055A31
>   $08048472
>   $40036544
>   $4006638A
>   $4003615B
>   $400638CF
>   $400B9E51
>
> My guess is that it has to do with the calling conventions but I don't see
why and can't test right now. Try compiling with -gl to see line numbers in
the back trace.

-- 
Geno Roupsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freepascal.org/pipermail/fpc-other/attachments/20060602/78d86eb1/attachment.html


More information about the fpc-other mailing list