Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c2206cc0206e9e32ca25f49e05e1f59cf27b1cea
Ticket: 615304ffffffffffffffffffffffffffffffffff
Tcl_InitStubs crash/exception
User & Date: davygrvy on 2002-10-03 12:18:13
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    Ahh!  I agree with your detective work.
    
    As there isn't any linkage from Tcl to your 
    extension/application when using Stubs, Tcl_Finalize can not 
    take on responsibility to affect a global in the Stubs library 
    used, so it looks like you should set it manually to NULL, 
    now armed with the knowledge of how it works.
    
    void
    UnloadIt(Tcl_Interp *interp)
    {
        extern TclStubs *tclStubsPtr;
    
        Tcl_DeleteInterp(interp);
        Tcl_Finalize();
        FreeLibrary(hTclModule);
        tclStubsPtr = NULL;
    }
    
    I guess I was lucky in that Tcl had loaded into the same 
    place for the test case I had made.
    
    Does this solve it for you?
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. status changed to: "Open"
  5. username: "davygrvy"