Giter Club home page Giter Club logo

Comments (10)

codz01 avatar codz01 commented on September 25, 2024

i just rebuild sdl2 without sse , it works now
seems problem of alignement between gcc&sse and fpc

from pascal-sdl-2-headers.

suve avatar suve commented on September 25, 2024

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.

suve avatar suve commented on September 25, 2024

Ah, right. There seems to be a bug in FPC currently where sometimes it produces bad alignments.

from pascal-sdl-2-headers.

ev1313 avatar ev1313 commented on September 25, 2024

@suve got any link to the FPC bugtracker?

from pascal-sdl-2-headers.

suve avatar suve commented on September 25, 2024

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.

codz01 avatar codz01 commented on September 25, 2024

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.

codz01 avatar codz01 commented on September 25, 2024

the problem raised again :( , even with fpc trunk
this time with the function SDL_RenderFillRect .

from pascal-sdl-2-headers.

ev1313 avatar ev1313 commented on September 25, 2024

is it still happening with updated fpc/lazarus?

from pascal-sdl-2-headers.

codz01 avatar codz01 commented on September 25, 2024

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.

ev1313 avatar ev1313 commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.