2006/6/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
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
_______________________________________________
fpc-other maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-other

Reply via email to