Skip to content

Fix: Add-Type exceptions during runtime compilation#283

Merged
LordHepipud merged 1 commit intomasterfrom
fix/add_type_exceptions
Feb 9, 2022
Merged

Fix: Add-Type exceptions during runtime compilation#283
LordHepipud merged 1 commit intomasterfrom
fix/add_type_exceptions

Conversation

@LordHepipud
Copy link
Collaborator

Icinga for Windows is using Add-Type in some small cases, to properly fetch UNC Path values for plugins or disk attribute information.

While in most cases this works without problems, sometimes the on-the-fly compilation fails because of out-of-memory exceptions or different errors.

This fix will now compile the DLL required inside the cache/dll folder if not present and load the compiled DLL's if required and available by using the new Framework function Add-IcingaAddTypeLib

@cla-bot cla-bot bot added the cla/signed label Feb 9, 2022
@LordHepipud LordHepipud changed the title Fix: Add-Type exceptions during runtime compilcation Fix: Add-Type exceptions during runtime compilation Feb 9, 2022
@LordHepipud LordHepipud force-pushed the fix/add_type_exceptions branch from 9cfb498 to 64ceb81 Compare February 9, 2022 11:25
@LordHepipud LordHepipud added this to the v1.9.0 milestone Feb 9, 2022
@LordHepipud LordHepipud added the bug Something isn't working label Feb 9, 2022
@LordHepipud LordHepipud self-assigned this Feb 9, 2022
@LordHepipud LordHepipud merged commit ed06dee into master Feb 9, 2022
@LordHepipud LordHepipud deleted the fix/add_type_exceptions branch February 9, 2022 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant