Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello I'm using Win32::OLE and have written a com visible C# class that seems to work fine with the perl layer. However I've noticed that it's possible for the object to remain alive even after I've removed the reference in perl. Is there a way to unload the assemblies in the backend? Thanks
  • Comment on How to release COM interop objects/dlls ?

Replies are listed 'Best First'.
Re: How to release COM interop objects/dlls ?
by Anonymous Monk on Jun 10, 2014 at 19:36 UTC
    Not Win32::OLE->FreeUnusedLibraries() ??
Re: How to release COM interop objects/dlls ?
by Anonymous Monk on Jun 10, 2014 at 19:37 UTC
    Destructor subroutine in Win32::OLE->new() ??
Re: How to release COM interop objects/dlls ?
by ww (Archbishop) on Jun 10, 2014 at 22:29 UTC

    You'll get a better reception if you read the docs before asking a question they answer.

    perldoc module_name on the CLI is one say; search CPAN and read docs there is another... among many more.


    Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
    1. code
    2. verbatim error and/or warning messages
    3. a coherent explanation of what "doesn't work actually means.

    check Ln42!

    A reply falls below the community's threshold of quality. You may see it by logging in.