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

Issue tracker authoring and conflict of DLLs

From: Fernando Najera <tigris_org_at_fernandonajera.com>
Date: Mon, 15 Jul 2013 08:59:42 -0700 (PDT)

Hello,

I am currently developing an issue tracker plugin to be used with the different Tortoises out there. My main testing platform is TortoiseHg, and there my plugin runs ok. But when testing against TSvn, I ran into problems.

After a good number of hours of debugging, and to make the story short, the issue is that the commit dialog of TSvn uses Scintilla, and my plugin too, and that creates all kind of problems. Furthermore, if I invoke the options dialog from the Tsvn Settings dialog (where Scintilla is not used), then my plugin calls Scintilla without problems.

In particular, I use Scintilla.NET, which in 64-bit environments expects the dll "SciLexer64.dll", whereas the version that TSvn ships for 64-bit environments is "SciLexer.dll".

When my plugin loads SciLexer64.dll, it is taken as a new library, so in the DllMain it tries to register a couple of classes with RegisterClassEx(), and the calls fail with error 1410 (class already exists). This prevents SciLexer64.dll to load, and my plugin fails there.

I guess that, if I modified Scintilla.NET to load SciLexer.dll, it would then reuse the one that TSvn uses instead of the one I supply, and that *might* work. I say "might" because, even if the .dlls were named the same, the versions are (or could be) different, and then though the plugin loads and shows the component, heaven knows what kind of problems I could face then. I think this is what already happens in 32-bit environments, where some of my users said the plugin "works".

My question is: is there any "good" way to create a Tortoise issue tracker plugin that uses Scintilla and that could interoperate with all the Tortoises, even if they already load some Scintilla in the process where the plugin is loaded?

The only solution I can think of would be that the plugin IBugTraqProvider2 spawns a new process that shows the UI, waits for its termination and then passes the result to Tortoise. But it seems too complicated... Is there any other way that I am missing?

Note: I address this question here and not in the lists of Scintilla because the problem seems to me a bit more general (any dll/component that TSvn might be using and my plugin uses too could potentially lead to this kind of conflict).

Thanks for any help about this.

Best regards,

Fernando Nájera

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3060509

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-07-15 18:30:41 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.