CodeSmith Community
Your Code. Your Way. Faster!

Using Codesmith 4.0 in VSS 2005, doesn't release assemblies after running templates

Latest post 02-27-2007 11:07 AM by pwelter34. 1 replies.
  • 02-13-2007 6:43 AM

    • Nursey
    • Not Ranked
    • Joined on 02-13-2007
    • Perth, Western Australia
    • Posts 1
    • Points 35

    Using Codesmith 4.0 in VSS 2005, doesn't release assemblies after running templates

    I'm using a CodeSmith 4 project in my VSS Project, and I run the Generate step from the context menu and all goes well. However, my templates reference Enterprise Architect through COM, as I've written stuff to help me generate code with Codesmith/Enterprise Architect. When my generation process finishes, i.e. my Codesmith template execution has finished, I observe that EA.EXE is retained in memory. I think this tells me that the templates are still cached, and therefore I still have a reference to EA.EXE and I can't see a way to clean up afterwards.

     Any suggestions? Is my assumption correct, that when the templates are used first time, they are effectively cached? I have a strong belief this is the case, and ideally I need to clean up so this EA.EXE instance is also cleaned up.

     Many thanks, and well done to the Codesmith developer(s), I'm loving it!

    Cheers, Nursey
    • Post Points: 35
  • 02-27-2007 11:07 AM In reply to

    • pwelter34
    • Top 25 Contributor
    • Joined on 03-13-2003
    • Eden Prairie, MN
    • Posts 255
    • Points 680,955

    Re: Using Codesmith 4.0 in VSS 2005, doesn't release assemblies after running templates

    Hi,

    The Visual Studio addin uses a custom app domain to generate.  However, it keeps that app domain active while Visual Studio is running to speed things up.  This may have been a bad choice because of situations like that.  We are going to evaluate that and possible change the behavior in a future maintenance release to help with that situation.

    ~ Paul 

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems