Re: unload state



rene schrieb:
* how can I detemine when the library is really detached and I can
again call load? In the documentation
I only found " When both reference counts have reached 0, the
library will be detached from the process.".
But how can I find this either on C or Tcl level.

I don't about Windows or Mac, but for POSIX conforming systems have a
look at the dlopen()/dlclose() interfaces - and read very carefully.

You can't unload a C extension from Tcl up to and including 8.4. For
a possibility with 8.5 have a look here: http://wiki.tcl.tk/10852

* what is the preferred way to do a unload? Currently there is no API
in the "package" command.
May be something new like "package unload..."

[package] is for Tcl packages. Plain Tcl packages can be forgotten:
package forget foo

kind regards
--
Matthias Kraft
Software AG, Germany
.



Relevant Pages

  • Re: Starting over with tcl and tk
    ... >> I installed Linux Slackware 10.1 and now I have path problems. ... >> the statement package require tcllib didn't. ... Slackware packages are not Tcl packages. ...
    (comp.lang.tcl)
  • Re: Tcl packages
    ... > Is there a summary of all tcl packages and what they do any where? ... > I often come across a package that provides functionaility I need after ... > I generally have a preference for using published packages rather than ... > developing my own code because I feel the published package will be more ...
    (comp.lang.tcl)
  • Re: Finding installed package files
    ... > you appear to want is a file that lists executables and documentation. ... contains links to the most important information about the installation. ... > doubt others could finesse the command. ... I do understand that rpm has many options that tell me about a package. ...
    (alt.os.linux.redhat)
  • Re: debian how-to
    ... today I wanted to read up on git hook scripts. ... which tells me that git is in the "git-core" package. ... Perhaps it should be policy that if the documentation isn't in the usual ... easily access all the documentation related to a command; PDF viewers ...
    (Debian-User)
  • RE: Duplicate name error after copying task/ VS_ISCORRUPT
    ... What you have to do is copy the assemblies that you want to reference ... Dim oApp As New Application, ... Dim oExec As Executable ... ' Get package path ...
    (microsoft.public.sqlserver.dts)