Bugs item #1835720, was opened at 2007-11-21 04:08 Message generated for change (Comment added) made by robmen You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1835720&group_id=105970
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: light Group: v3.0 >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: Instyler Software (instyler) >Assigned to: Rob Mensching (robmen) Summary: Executing wix linker multiple times fails Initial Comment: This is a little bit complicated.) We are trying to use the Wix.Compiler / Wix.Linker classes directly by referencing wix.dll in our project. We basically reproduced the way candle and light are working. It works fine except when using the WixUI Extension and trying to run the Linker multiple times. We modified the original light.exe to compile a .msi twice without re- running light.exe (by using a goto at the end of light's main() and clearing all dictionaries) - the error also occurs. When running the compilation procedure the first time, the following exceptions are logged: A first chance exception of type 'Microsoft.Tools.WindowsInstallerXml.DuplicateSymbolsException' occurred in wix.dll A first chance exception of type 'System.InvalidCastException' occurred in wix.dll (Just look at the debug output of a light compilation using parameter "test.wixobj -ext WixUIExtension -cultures:en-us") Now when running light the second time, it breaks where the linker is trying to add the Sequences to a SectionCollection dictionary. I'm not sure how to fix this, but it seems to be a problem when the WixUIExtension gets loaded for the second time. As you know .NET cannot unload assemblies, so it will not load the extension a second time but reuse the already loaded one. Thank you for looking into this. ---------------------------------------------------------------------- >Comment By: Rob Mensching (robmen) Date: 2008-05-02 02:53 Message: Logged In: YES user_id=991639 Originator: NO I believe this is fixed now. There were a few static variables in the Compiler and Linker that were not being reestablished correctly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1835720&group_id=105970 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
