Esempio n. 1
0
        /// <inheritdoc />
        public void Close()
        {
            _rcwReleasePublisher.ReleaseRCWReferences(); // notify subscribers to release COM references.

            // If we don't force garbage collection,
            // the commence.exe will remain open at least when the devenv is running
            // AVB 2019-03-18 seems we can get away with it after implementing IDisposable
#if DEBUG
            GC.Collect(); // force garbage collection
            GC.WaitForPendingFinalizers();
            GC.Collect();
            GC.WaitForPendingFinalizers();
#endif
        }
Esempio n. 2
0
 /// <inheritdoc />
 public void Close()
 {
     // releases the FormOA COM references.
     rw.ReleaseRCWReferences();
 }