Attempted to read or write protected memory – shut down and freeze

Project:Awesync
Version:1.0.1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Attempted to read or write protected memory – shut down and freeze
 
1. I have just updated, but seem to be unable to sync. Please se log below. After finalizing this process LN froze and could not be restarted without rebooting the computer.
 
2010-02-08 08:45:36,828 [1] INFO AweSync.MainForm - Log started (AweSync 1.0.1.5)
2010-02-08 08:45:37,750 [1] INFO AweSync.Settings - Loading settings...
2010-02-08 08:45:38,671 [1] INFO AweSync.Settings - Settings loaded from C:\Documents and Settings\administrator\Application Data\AweSync\settings.cfg
2010-02-08 08:51:40,500 [1] INFO AweSync.MainForm - Log started (AweSync 1.0.1.5)
2010-02-08 08:51:40,562 [1] INFO AweSync.Settings - Loading settings...
2010-02-08 08:51:40,859 [1] INFO AweSync.Settings - Settings loaded from C:\Documents and Settings\administrator\Application Data\AweSync\settings.cfg
2010-02-08 08:52:04,093 [1] INFO AweSync.Settings - Saving settings...
2010-02-08 08:52:04,125 [1] INFO AweSync.Settings - Settings saved
2010-02-08 08:52:05,265 [4] INFO AweSyncLib.AweSyncMain - Process started
2010-02-08 08:52:05,265 [4] INFO AweSyncLib.AweSyncMain - Sync mode: Two Way (Latest Wins)
2010-02-08 08:52:05,281 [4] INFO AweSyncLib.AweSyncMain - OS: Microsoft Windows NT 5.1.2600 Service Pack 3
2010-02-08 08:52:05,296 [4] INFO AweSyncLib.AweSyncMain - Connecting Lotus Notes...
2010-02-08 08:52:06,000 [4] INFO AweSyncLib.LotusHelper - Connected to LN: Release 7.0.3|September 26, 2007, build 266, platform Windows/32, Interop.Domino8
2010-02-08 08:52:06,171 [4] INFO AweSyncLib.AweSyncMain - LN Version: Release 7.0.3|September 26, 2007, build 266, platform Windows/32, Interop.Domino8
2010-02-08 08:52:06,203 [4] INFO AweSyncLib.DocumentsIndex - Loading index...
2010-02-08 08:52:06,546 [4] INFO AweSyncLib.DocumentsIndex - Index loaded from Lotus Notes Database.
2010-02-08 08:52:06,843 [4] INFO AweSyncLib.DocumentsIndex - Index opened successfully (111 entries)
2010-02-08 08:52:06,859 [4] INFO AweSyncLib.AweSyncMain - Retrieving Google Calendars...
2010-02-08 08:52:16,062 [4] INFO AweSyncLib.AweSyncMain - Retrieving unprocessed Lotus Notes events...
2010-02-08 08:52:16,062 [4] INFO AweSyncLib.AweSyncMain - Calculating calendar timeframe...
2010-02-08 08:52:16,078 [4] INFO AweSyncLib.AweSyncMain - Finding only updated Lotus Documents..
2010-02-08 08:57:19,218 [4] ERROR AweSync.MainForm - Can't process: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
2010-02-08 08:57:19,234 [4] WARN AweSync.MainForm - Can't process: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Domino8.NotesDocumentCollectionClass.GetNthDocument(Int32 lN)
   at AweSyncLib.Domino.NotesDocumentCollection.GetNthDocument(Int32 documentsCounter)
   at AweSyncLib.LotusHelper.GetNextDocument(NotesDocumentCollection col, NotesDocument doc, Int32& documentsCounter)
   at AweSyncLib.AweSyncMain.ProcessLotus(NotesDatabase lotusDb, UpdateStatusFunc updateFunc)
   at AweSyncLib.AweSyncMain.Process(UpdateStatusFunc updateFunc, Boolean isWholeSync, Dictionary`2& addCalendars, List`1& remCalendars)
   at AweSync.MainForm.ProcessSyncThreadFunc()
2010-02-08 08:57:19,250 [4] INFO AweSyncLib.AweSyncMain - Collecting garbage...
2010-02-08 08:57:19,281 [4] INFO AweSyncLib.AweSyncMain - Done
 
 
2. With only LN running I tried to start AweSync again, but kept getting error messages from Windows. After reporting the error to Microsoft AweSync was shut down. This log is all I could get from these attempts.
 
2010-02-08 09:06:12,171 [1] INFO AweSync.Settings - Saving settings...
2010-02-08 09:06:12,437 [1] INFO AweSync.Settings - Settings saved
2010-02-08 09:15:15,578 [1] INFO AweSync.MainForm - Log started (AweSync 1.0.1.5)
2010-02-08 09:15:15,640 [1] INFO  AweSync.Settings - Loading settings...
2010-02-08 09:15:16,421 [1] INFO AweSync.Settings - Settings loaded from C:\Documents and Settings\administrator\Application Data\AweSync\settings.cfg
2010-02-08 09:15:42,875 [1] INFO AweSync.MainForm - Log started (AweSync 1.0.1.5)
2010-02-08 09:15:43,046 [1] INFO AweSync.Settings - Loading settings...
2010-02-08 09:15:43,265 [1] INFO AweSync.Settings - Settings loaded from C:\Documents and Settings\administrator\Application Data\AweSync\settings.cfg
2010-02-08 09:15:54,703 [1] INFO AweSync.MainForm - Log started (AweSync 1.0.1.5)
2010-02-08 09:15:54,765 [1] INFO AweSync.Settings - Loading settings...
2010-02-08 09:15:55,125 [1] INFO AweSync.Settings - Settings loaded from C:\Documents and Settings\administrator\Application Data\AweSync\settings.cfg
Best regards
Patrik


#1

 Patrick,
Unfortunately, it's very hard to determine the reason of this error, because it's source is inside Lotus Notes COM. The first thing I can recommend is to upgrade Lotus Notes to latest version, or at least to release 7.0.4 which is last bugfixing release of version 7.0.
 
If such errors are quite rare, you can use this little tool to restart Notes session instead of reboot.

#2

Status:active» won't fix

Please see comments here