Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crash in QMetaObject creation #57

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Fixed crash in QMetaObject creation #57

merged 2 commits into from
Feb 5, 2025

Conversation

filcuc
Copy link
Owner

@filcuc filcuc commented Feb 5, 2025

Closes #6 by ensuring parameters pointers doesn't get invalidated by reallocations. The idea is to just create before hand the parameters sequences and only later reference the elements in the signal and slots structs. This makes the code safe since the sequences are immutable (and so cannot be reallocated)

Closes #56 by ensuring parameters pointers doesn't get invalidated by reallocations.
The idea is to just create before hand the parameters sequences and only later reference
the elements in the signal and slots structs.
This makes the code safe since the sequences are immutable (and so cannot be reallocated)
@filcuc filcuc merged commit fead4c3 into master Feb 5, 2025
0 of 12 checks passed
arnetheduck pushed a commit to arnetheduck/nimqml-miqt-poc that referenced this pull request Feb 11, 2025
feat: add support for float64 as QMetatype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

{.slot.} directive does not work well on nim 0.15
1 participant