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

Print error if unable to delay-load DLL on Windows #13475

Conversation

HertzDevil
Copy link
Contributor

This replaces the Windows exceptions from the reference implementations entirely, and instead causes the process to exit immediately with exit code 1. This also means that failure to resolve a lib fun at run time is irrecoverable; code that anticipates failure or performs custom error handling must still use LibC.LoadLibrary / LibC.GetProcAddress or Crystal::Loader directly.

@straight-shoota straight-shoota added this to the 1.9.0 milestone May 22, 2023
@straight-shoota straight-shoota merged commit 5c4dc9c into crystal-lang:master May 23, 2023
46 checks passed
@HertzDevil HertzDevil deleted the feature/windows-dll-not-found-error branch May 23, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants