[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: OnCommitFinished() not called in x64 version of plugin

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 24 Aug 2011 22:05:15 +0200

On 24.08.2011 19:27, Randall Moore wrote:
> I've written a Tortoise BugTraqProvider for IssueView
> <http://issueview.com>. The 32 bit version works fine. I compiled and
> installed a 64 bit version for a customer. I get the GetLinkText()
> button in the Tortoise commit dialog, so I know my code is getting
> loaded. Most everything seems to work, but OnCommitFinished() is not
> getting called.
>
> I put MessageBox calls in all the functions to troubleshoot (I'm
> compiling on my x86 machine and testing on an x64 box). I see
> GetCommitMessage2() and CheckCommit() get called. But the MessageBox for
> OnCommitFinished() never appears. The same code, compiled for x86
> (32bit), works fine, including the MessageBox in OnCommitFinished().
>
> Can anyone suggest a reason why OnCommitFinished() would not be getting
> called? I'm concerned I may have a code mismatch. My function prototype
> looks like this:
>
> public string OnCommitFinished(IntPtr hParentWnd, string commonRoot,
> string[] pathList, string logMessage, int revision)
>
> But I've seen this documented
> <http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-ibugtraqprovider-2.html>.
> When I try to add the error parameter, my code won't compile.
>
> HRESULT OnCommitFinished (
> [in] HWND hParentWnd,
> [in] BSTR commonRoot,
> [in] SAFEARRAY(BSTR) pathList,
> [in] BSTR logMessage,
> [in] ULONG revision,
> [out, retval] BSTR * error
> );

Are you using this file:
http://tortoisesvn.googlecode.com/svn/trunk/contrib/issue-tracker-plugins/Interop.BugTraqProvider/IBugTraqProvider.cs

to get the correct interface?

Maybe you could have a look at Gurtle (http://code.google.com/p/gurtle/)
how they do it.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2829501
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-08-24 22:05:58 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.