Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: Access violation, when using TortoiseProc.exe to lock a file.

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Back to topic list

Re: Access violation, when using TortoiseProc.exe to lock a file.

Author jonathh
Full name Jon H
Date 2009-01-20 05:29:46 PST
Message --- On Tue, 20/1/09, jerik <jerikmail@google​mail.com> wrote:

> From: jerik <jerikmail@google​mail.com>
> Subject: Access violation, when using TortoiseProc.exe to lock a file.
> To: users at tortoisesvn dot tigris dot org
> Date: Tuesday, 20 January, 2009, 1:13 PM
> Hi,
>
> OS: Windows
>
> i wanted to make life easier and create a macro in word,
> which makes
> it possible to lock the word file which is currently open.
> The macro
> in word, calls:
> c:\path\TortoiseProc.exe /command:lock
> /path:"c:\path\file.doc"
>
> Full macro code:
> Sub svn_lock()
> ' In the Environment varibale svn_cmd is the path
> to
> TortoiseProc.exe stored!
> svn_cmd = Environ$("svn_cmd")
> svn_cmd_lock = svn_cmd & " /command:lock
> /path:" & Chr(34) &
> ActiveDocument.FullName & Chr(34)
> Call Shell(svn_cmd_lock)
> End Sub
>
> I receive the following error message (translated from
> german):
> An access violation has occured during the access of
> C:\path\file.doc
>
> What should I do to avoid the Error message and get the
> macro to
> work?
>
> If I use the same macro with the /command:log, it works
> perfectly. I
> think I have to free the document in a special way, but
> dont know
> how.
>
> btw: vba skills novice.
>
> Cheers -- Jerik
>

Hi,

3 pence worth.. I am pretty sure i have stumbled on something that does a similar job. I think you can find it using 'svnword' in google.. i think it was a 'google summer of code' project...


-----------------------
N: Jon Hardcastle
E: Jon at eHardcastle dot com
'..Be fearful when others are greedy, and be greedy when others are fearful.'
-----------------------

« Previous message in topic | 11 of 12 | Next message in topic »

Messages

Show all messages in topic

Access violation, when using TortoiseProc.exe to lock a file. jerik <jerikmail at googlemail dot com> jerik <jerikmail at googlemail dot com> 2009-01-20 05:13:39 PST
     Re: Access violation, when using TortoiseProc.exe to lock a file. Andy Levy <andy dot levy at gmail dot com> Andy Levy <andy dot levy at gmail dot com> 2009-01-20 05:22:40 PST
         Re: Access violation, when using TortoiseProc.exe to lock a file. jerik <jerikmail at googlemail dot com> jerik <jerikmail at googlemail dot com> 2009-01-20 05:31:35 PST
             Re: Access violation, when using TortoiseProc.exe to lock a file. Andy Levy <andy dot levy at gmail dot com> Andy Levy <andy dot levy at gmail dot com> 2009-01-20 05:46:16 PST
                 Re: Access violation, when using TortoiseProc.exe to lock a file. jerik <jerikmail at googlemail dot com> jerik <jerikmail at googlemail dot com> 2009-01-20 07:37:29 PST
                 Re: Access violation, when using TortoiseProc.exe to lock a file. jerik <jerikmail at googlemail dot com> jerik <jerikmail at googlemail dot com> 2009-01-20 09:16:49 PST
                     Re: Access violation, when using TortoiseProc.exe to lock a file. Andy Levy <andy dot levy at gmail dot com> Andy Levy <andy dot levy at gmail dot com> 2009-01-20 09:31:47 PST
                         Re: Access violation, when using TortoiseProc.exe to lock a file. jerik <jerikmail at googlemail dot com> jerik <jerikmail at googlemail dot com> 2009-01-21 01:58:03 PST
                             Re: Access violation, when using TortoiseProc.exe to lock a file. jonathh Jon H 2009-01-21 02:02:58 PST
     Re: Access violation, when using TortoiseProc.exe to lock a file. Kurt Pruenner <leak at gmx dot at> Kurt Pruenner <leak at gmx dot at> 2009-01-20 05:24:37 PST
     Re: Access violation, when using TortoiseProc.exe to lock a file. jonathh Jon H 2009-01-20 05:29:46 PST
     Re: Access violation, when using TortoiseProc.exe to lock a file. kkolinko Konstantin Kolinko 2009-01-20 07:14:04 PST
Messages per page: