To: vim-dev@vim.org Subject: patch 5.5.007 (extra) Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.007 (extra) Problem: Win32 OLE: Occasional crash when exiting while still being used via OLE. Solution: Move OleUninitialize() to before deleting the application object. (Vince Negri) Files: src/if_ole.cpp *** ../vim-5.5.6/src/if_ole.cpp Wed Sep 22 10:06:25 1999 --- src/if_ole.cpp Sat Sep 25 21:23:47 1999 *************** *** 710,721 **** CoRevokeClassObject(cf_id); cf_id = 0; } ! else if (cf) ! { ! // Delete the class factory ! delete cf; ! cf = NULL; ! } // Delete the application object if (app) --- 710,718 ---- CoRevokeClassObject(cf_id); cf_id = 0; } ! ! // Shut down the OLE libraries ! OleUninitialize(); // Delete the application object if (app) *************** *** 724,730 **** app = NULL; } ! // Shut down the OLE libraries ! OleUninitialize(); } #endif /* HAVE_OLE */ --- 721,731 ---- app = NULL; } ! // Delete the class factory ! if (cf) ! { ! delete cf; ! cf = NULL; ! } } #endif /* HAVE_OLE */ *** ../vim-5.5.6/src/version.c Sat Sep 25 21:03:31 1999 --- src/version.c Sat Sep 25 21:24:29 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 7, -- hundred-and-one symptoms of being an internet addict: 180. You maintain more than six e-mail addresses. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /