[synchronicity-commits] SF.net SVN: synchronicity:[1686] trunk/Create Synchronicity
Easy, fast, and lightweight backup and synchronization app for Windows
Brought to you by:
createsoftware
From: <cre...@us...> - 2012-10-30 11:18:23
|
Revision: 1686 http://synchronicity.svn.sourceforge.net/synchronicity/?rev=1686&view=rev Author: createsoftware Date: 2012-10-30 11:18:19 +0000 (Tue, 30 Oct 2012) Log Message: ----------- Catch mutex UnauthorizeAccessException, and limit length to 260 chars. Modified Paths: -------------- trunk/Create Synchronicity/Main.vb trunk/Create Synchronicity/Revision.vb Modified: trunk/Create Synchronicity/Main.vb =================================================================== --- trunk/Create Synchronicity/Main.vb 2012-10-30 11:15:25 UTC (rev 1685) +++ trunk/Create Synchronicity/Main.vb 2012-10-30 11:18:19 UTC (rev 1686) @@ -209,6 +209,8 @@ #Region "Scheduling" Private Function SchedulerAlreadyRunning() As Boolean Dim MutexName As String = "[[Create Synchronicity scheduler]] " & Application.ExecutablePath.Replace(ProgramSetting.DirSep, "!"c).ToLower(Interaction.InvariantCulture) + If MutexName.Length > 260 Then MutexName = MutexName.Substring(0, 260) + ProgramConfig.LogDebugEvent(String.Format("Registering mutex: ""{0}""", MutexName)) Try @@ -216,6 +218,9 @@ Catch Ex As Threading.AbandonedMutexException ProgramConfig.LogDebugEvent("Abandoned mutex detected") Return False + Catch Ex As System.UnauthorizedAccessException + ProgramConfig.LogDebugEvent("Acess to the Mutex forbidden") + Return True End Try Return (Not Blocker.WaitOne(0, False)) Modified: trunk/Create Synchronicity/Revision.vb =================================================================== --- trunk/Create Synchronicity/Revision.vb 2012-10-30 11:15:25 UTC (rev 1685) +++ trunk/Create Synchronicity/Revision.vb 2012-10-30 11:18:19 UTC (rev 1686) @@ -1,3 +1,3 @@ Module Revision - Public Const Build As Integer = 1684 + Public Const Build As Integer = 1685 End Module This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |