emacs 24.3 on Windows 7 does not close properly
Solution 1:
I was having this problem.
I solved it for my setup by passing the --no-splash
option to emacs on start up.
I don't get a splash screen now, but I don't crash on exit either.
Solution 2:
I just had this problem while setting up a new Windows 7 laptop. Checking the Windows event viewer revealed that the version of Emacs libgcc_s_dw2-1.dll was linking to was the culprit. A quick scan of my C drive with Everything resulted in no fewer than seven versions of the library scattered among various versions of MinGW that I had install alongside other apps, RStudio, OSGeo4W, CodeBlocks, etc. A couple of which had injected themselves into my system path variable.
The solution for me was to ensure Emacs found a compatible libgcc_s_dw2-1.dll or none at all by setting the PATH variable before starting Emacs. From a command line type set path=
to clear the path variable before starting emacs with c:\<pathtoemacsbin>\runemacs.exe
, assuming you will not need path access to other files. Alternatively, a recent version of MinGW32 should be compatible. Just make sure it is available on the search path, set path=c:\MinGW32\bin
.
Solution 3:
I found just one instance of libgcc_s_dw2-1.dll on my machine, installed under GNUplot.
I renamed it arbitrarily, and now emacs works fine. Of course, GNUplot doesn't, but hey!