Comments (10)
i just rebuild sdl2 without sse , it works now
seems problem of alignement between gcc&sse and fpc
from pascal-sdl-2-headers.
FPC user manual says that runtime error 216 is an Access Violation. This usually means referencing an invalid pointer. Can you add NIL-checks to see if SDL_CreateWindow
and SDL_CreateRenderer
calls do not fail?
Also, you can use a triple backtick ("```") to put a code block in a comment; this makes it easier to read such stuff. :)
from pascal-sdl-2-headers.
Ah, right. There seems to be a bug in FPC currently where sometimes it produces bad alignments.
from pascal-sdl-2-headers.
@suve got any link to the FPC bugtracker?
from pascal-sdl-2-headers.
We've noticed a breakage on Fedora, where some FPC-compiled programs would crash with an Access Violation during cleanup (somewhere in glibc
destructors). This was deemed to be caused by some misaligned data. Here's the link to the Red Hat Bugzilla ticket: 1526848
To be fair, I haven't checked if anyone reported this upstream. I'll look into that tomorrow.
from pascal-sdl-2-headers.
i tried with fpc 3.1.1 (trunk ), and seems there is no problem !!
the problem was with fpc 3.0.0 and 3.0.4
no need to fill a report :)
from pascal-sdl-2-headers.
the problem raised again :( , even with fpc trunk
this time with the function SDL_RenderFillRect .
from pascal-sdl-2-headers.
is it still happening with updated fpc/lazarus?
from pascal-sdl-2-headers.
the last time i tried with fpc trunk Feb 16 , yes it happend
but since sdl2.0.8 is officially released , i download the library's binary yesterday and seems no problem , but maybe they build it without sse !!
from pascal-sdl-2-headers.
i'm closing this issue then, as I don't think this is an issue with the headers itself, but rather fpc. Feel free to keep us updated here, though.
from pascal-sdl-2-headers.
Related Issues (20)
- implementation expected but ; found error in SDL2_net.pas HOT 5
- Bugs in sdlsyswm.inc HOT 5
- Missing field "last_fullscreen_flags" in TSDL_Window HOT 2
- Delphi compilation HOT 2
- f21f039 broke Free Pascal support HOT 1
- Linux jedi.inc compile problems HOT 2
- Invalid TSDL_RendererFlip declaration HOT 2
- Missing SDL_GL_GetDrawableSize HOT 2
- post link is wrong for dgl sources HOT 2
- it Can be used in the firemonkey? HOT 1
- missing some core units HOT 1
- Switch to GitLab? (MS bought GitHub) HOT 5
- Change license in accordance with SDL 2 library? HOT 4
- A small bug in sdl2_ttf.pas HOT 1
- Returning PAnsiChar instead of PChar HOT 4
- Compiling for Android from Delphi HOT 4
- more of s uggestion than a bug HOT 2
- Support static linking HOT 2
- Kindly asking for integrating the pull requests. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pascal-sdl-2-headers.