Skip to content

Fix memory address issues when queuing events during Windows OS window creation.#1382

Merged
caffeinepills merged 1 commit intopyglet:masterfrom
caffeinepills:issue_1374
Nov 4, 2025
Merged

Fix memory address issues when queuing events during Windows OS window creation.#1382
caffeinepills merged 1 commit intopyglet:masterfrom
caffeinepills:issue_1374

Conversation

@caffeinepills
Copy link
Copy Markdown
Collaborator

As discussed in #1374 some events cannot be deferred or queued for later due to memory locations only being guaranteed for the duration of the call.

This should fix the initial issue to prevent garbage from being passed into a structure.

This should probably be looked at in the future to just remove the queue and allow events to run as intended, and handle the cases where some resources aren't available (such as window.set_current being called before a context is created).

@caffeinepills caffeinepills changed the title Fix for some Windows OS windows needing to use events immediately. Fix memory address issues when queuing events during Windows OS window creation. Oct 28, 2025
@caffeinepills caffeinepills merged commit d1f6ace into pyglet:master Nov 4, 2025
20 checks passed
@caffeinepills caffeinepills deleted the issue_1374 branch November 7, 2025 16:24
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.

2 participants