Skip to content

[feature] No way to unload/reload cea_excel.dll from VBA during development #196

Description

@djkees

Problem / use case
EnsureCEALibraryLoaded caches the loaded library handle in a module-level static (mCEALibraryHandle) for the life of the Excel session. There's no macro to release it, so after rebuilding cea_excel.dll during development, the developer must fully close and reopen Excel (VBA holds the file handle/mapping open) before the new DLL takes effect.

Proposed solution
Add a diagnostic macro (e.g. ReloadCEALibrary) in modCEATest.bas that calls FreeLibrary on the cached handle and resets mCEALibraryHandle/mCEALibraryPath, so a rebuilt DLL can be picked up without restarting Excel.

Additional context
source/bind/excel/vba/modCEADeclare.bas.

Drafted with Claude's assistance

  • Confirmed by reading EnsureCEALibraryLoaded and finding no FreeLibrary call or reload entry point anywhere in the module.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: lowCosmetic, nice-to-have, or open-ended with no clear action yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions