0 Replies Latest reply on Mar 13, 2012 6:28 AM by M. nav

    Marshal.ReleaseComObject not clearing the vault connection

    M. nav

      Hi i create a vault8 object  and use the LoginAuto function for login.

      after login i browse for file on local disk and select a folder path in Vault and add the selected file to folder. after add i unlock the file. in finally section of try catch i release object

      Marshal.ReleaseComObject(vault)

      Marshal.FinallReleaseComObject(vault)

      vault = null;

      GC.Collect()

      GC.WaitForPendingFinalizers()

      every time i do this a connection to database is left open which i can see in SQL activity window and slowly increase the size of application exe if too many connections are open.

      if i close application all the open connections cleared from Activity monitor.

      any help how i can dispose vault object properly so it close db connection.