<br><div><span class="gmail_quote">2006/6/1, <a href="mailto:sascha-zimmermann@arcor.de">sascha-zimmermann@arcor.de</a> &lt;<a href="mailto:sascha-zimmermann@arcor.de">sascha-zimmermann@arcor.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>I am developing a small game with FreePascal (FP for short) and SDL. While trying to support multiple platforms<br>I ran into a problem with SDL_AddTimer. I reduced my code to the core problem (see below) to find out what's wrong.
<br><br>In Win32 the executables (FP and C) run as expected. But when I compile the same code under Linux only the C binary<br>will run while the FP binary crashes at the first call to the timer callback function:<br><br>
Starting...<br>SDL_AddTimer: Success!<br>Waiting 8 seconds...<br>An unhandled exception occurred at $08055A31 :<br>Exception : Unknown Run-Time error : 202<br>&nbsp;&nbsp;$08055A31<br>&nbsp;&nbsp;$08048472<br>&nbsp;&nbsp;$40036544<br>&nbsp;&nbsp;$4006638A<br>&nbsp;&nbsp;$4003615B
<br>&nbsp;&nbsp;$400638CF<br>&nbsp;&nbsp;$400B9E51<br><br></blockquote></div>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.
<br clear="all"><br>-- <br>Geno Roupsky