Fail to compact the database on every Mail exit

  • Thread starter Thread starter yuki
  • Start date Start date
Y

yuki

I started to notice Windows Mail was prompting me to compact the message
store each time I close the application. It would show a progress dialog of
compacting the database, then it relaunch the Mail again.

I discovered the compact period option in the maintenance page so I can
disable the prompt, but the problem still remains that I cannot compact the
database. Anyone see this problem?
BTW, I can continue to receive & send email, as well as read newsgroups.

I checked Event Viewer, I see the following error on each Mail close. This
is followed by WER entry so I am hoping MS would look into it eventually:

Log Name: Application
Source: Application Error
Date: 1/7/2007 5:15:12 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: fremont
Description:
Faulting application WinMail.exe, version 6.0.6000.16386, time stamp
0x4549b0f9, faulting module unknown, version 0.0.0.0, time stamp 0x00000000,
exception code 0xc0000005, fault offset 0x00000001, process id 0x12b0,
application start time 0x01c732c2377c52c9.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2007-01-08T01:15:12.000Z" />
<EventRecordID>3598</EventRecordID>
<Channel>Application</Channel>
<Computer>fremont</Computer>
<Security />
</System>
<EventData>
<Data>WinMail.exe</Data>
<Data>6.0.6000.16386</Data>
<Data>4549b0f9</Data>
<Data>unknown</Data>
<Data>0.0.0.0</Data>
<Data>00000000</Data>
<Data>c0000005</Data>
<Data>00000001</Data>
<Data>12b0</Data>
<Data>01c732c2377c52c9</Data>
</EventData>
</Event>
 
What value is shown under this key in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows Mail\
and in the right hand pane:
Compact Check Count
what "value" is shown?
 
Jim Pickering said:
What value is shown under this key in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows Mail\
and in the right hand pane:
Compact Check Count
what "value" is shown?

It is 0x7f (127). I am guessing this value is never reset because the
compact keeps failing.
I can reset this value manually, but it will probably start doing the same
thing once it reaches 0x64 (or whatever the period is set to)

At least "DatabaseCorrupt" value is 0.

Thanks for the tip, I did not think to snoop in Registry for a clue.
 
Does Event Viewer show that the database has been backed up? It should back
up every 24 hours. In doing so it should fix some problems, I think. If
not, post back and there are some other things you can do.

steve
 
Steve Cochran said:
Does Event Viewer show that the database has been backed up? It should
back up every 24 hours. In doing so it should fix some problems, I think.
If not, post back and there are some other things you can do.

Yes, it shows that messagestore is backed up successfully, then log files
are backed up & deleted as well. Everything seems normal.

yuki
 
You can try repairing the database. Open a command prompt using Run as
Administrator.

Then copy this line, edit the path to the messasge store, and then hit
enter:

esentutl /p "path\windowsmail.msmessagestore"


Where path is default %USERPROFILE%\AppData\Local\Microsoft\Windows Mail

so the default would be:

esentutl /p "%USERPROFILE%\AppData\Local\Microsoft\Windows Mail
\windowsmail.msmessagestore"

Copy and paste that and then edit it to fill in the variable %USERPROFILE%

steve
 
You rock!

esentutl /p seemed do the trick.

After a successful repair & scan, I bumped up the Compact Check Count to
cause the compact on exit.
It compacted & existed without an error. I also verified that Compact Check
Count was reset to 1.

Thanks,

yuki
 
Back
Top