MS
This commit is contained in:
parent
f2273ceed7
commit
631929ec46
@ -1161,9 +1161,16 @@ Public Class Windream
|
|||||||
_logger.Warn("File '{0}' does not exist", Path)
|
_logger.Warn("File '{0}' does not exist", Path)
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
Dim oWMObject As IWMObject6
|
||||||
|
|
||||||
Dim oWMObject As IWMObject6 = GetFileByPath(Path)
|
Try
|
||||||
|
oWMObject = GetFileByPath(Path)
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Warn("Could not create a WMObject for path '{0}'!!", Path)
|
||||||
|
_logger.Warn(ex.Message)
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
_logger.Debug("SetFileIndex '{0}' ... ", IndexName)
|
||||||
If LockObject(oWMObject, WMObjectEditModeIndexEdit) = False Then
|
If LockObject(oWMObject, WMObjectEditModeIndexEdit) = False Then
|
||||||
_logger.Warn("File {0} could not be locked")
|
_logger.Warn("File {0} could not be locked")
|
||||||
Return False
|
Return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user