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

save the last freed selector and if possible reuse it for the next al… #1282

Merged
merged 2 commits into from
Mar 12, 2023

Conversation

cracyc
Copy link
Contributor

@cracyc cracyc commented Mar 10, 2023

…location
fixes #1271
The program uses globalfree followed a little later with globalalloc and the selectors must be the same. This works in win31 and ntvdm because the selectors a placed on a stack like linked list. Hopefully there is no program with frees more than one selector and expects them to be allocated in reverse order.

@cracyc
Copy link
Contributor Author

cracyc commented Mar 11, 2023

There doesn't appear to be any way to prevent endpaint from deleting a dc so it needs to be removed from the cache. The program in #1271 has a printer dc hint deleted because of this breaking the print preview.

@cracyc cracyc marked this pull request as ready for review March 11, 2023 15:18
@otya128 otya128 merged commit 54be5e0 into otya128:master Mar 12, 2023
@cracyc cracyc deleted the selector branch March 12, 2023 18:56
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.

Interrupt 0D #GP When trying to print
2 participants