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

Update Indy to use new delay-load features in D2010 #9

Open
rlebeau opened this issue Apr 5, 2017 · 2 comments
Open

Update Indy to use new delay-load features in D2010 #9

rlebeau opened this issue Apr 5, 2017 · 2 comments
Labels
Element: Compiler/IDE Issues related to a particular Compiler and/or IDE Status: Deferred Issue to be re-reviewed in a future release Type: Enhancement Issue is proposing a new feature/enhancement
Milestone

Comments

@rlebeau
Copy link
Member

rlebeau commented Apr 5, 2017

Delphi 2010 introduces a new 'delayed' keyword for delay-loading of DLL functions. Indy's manual calls to LoadLibrary() and GetProcAddress() can be replaced with this feature, allowing for much cleaner code. In the event that a DLL function cannot be found (older OS version, wrong DLL version, etc), the System.SetDliFailureHook() callback can be used to handle that.

@rlebeau rlebeau added the Type: Enhancement Issue is proposing a new feature/enhancement label Apr 5, 2017
@czhower
Copy link

czhower commented Apr 5, 2017 via email

@rlebeau
Copy link
Member Author

rlebeau commented Apr 6, 2017

We would still have to use LoadLibrary()/GetProcAddress() for those versions. But this is an older ticket, still open, and since we are considering code cleanups in an upcoming maintenance release, this one is a possibility to consider.

@rlebeau rlebeau added the Element: Compiler/IDE Issues related to a particular Compiler and/or IDE label Apr 25, 2023
@rlebeau rlebeau added this to the Indy 12 milestone Apr 25, 2023
@rlebeau rlebeau added Status: Review Needed Issue needs further review to decide next status Status: Deferred Issue to be re-reviewed in a future release and removed Status: Review Needed Issue needs further review to decide next status labels Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Element: Compiler/IDE Issues related to a particular Compiler and/or IDE Status: Deferred Issue to be re-reviewed in a future release Type: Enhancement Issue is proposing a new feature/enhancement
Projects
None yet
Development

No branches or pull requests

2 participants