wrong currentUICulture with Teamviewer installed

Add-in Express™ Support Service
That's what is more important than anything else

wrong currentUICulture with Teamviewer installed
 
Bernd Hoff




Posts: 2
Joined: 2013-07-09
Hi,
I recently ran into a weird issue.

Since my Debugger is set up to break on all errors, the startup of Outlook haltet prior to running any of my code with following exception:
LoadFromContext was detected‎
Referencing ?Â?Ð?ìTeamViewerMeetingAddIn?Â?Ð?í


This didn?Â?Ð?ét bother me because I recently installed Teamviewer.
But my AddIn suddenly displayed in English on my German development machine.

Debugging this weird issue showed, that System.Threading.Thread.CurrentThread.CurrentUICulture() was set to en-US.
Since installing Teamviewer was the only change I could think of, I uninstalled it.
And what happened? System.Threading.Thread.CurrentThread.CurrentUICulture() has now been set to de-DE again.
Reinstalling Teamviewer lets me reproduce this behavior.

So it seems that relying on System.Threading.Thread.CurrentThread.CurrentUICulture() is not the best choice.

Is there a value I could use that cannot be changed by another AddIn?


Best Regards
Bernd
Posted 09 Jul, 2013 04:47:22 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Bernd,

I have the TeamViewer add-in installed. In File | Options Add-ins, the Location field shows "mascoree.dll" for it. This means the TeamViewer add-in is a non-isolated add-in which works in the default AppDomain. Are you sure that you supply adxloader.dll with your add-in? Does the Location field shows "mscoree.dll" for your add-in?


Andrei Smolin
Add-in Express Team Leader
Posted 09 Jul, 2013 05:14:57 Top
Bernd Hoff




Posts: 2
Joined: 2013-07-09
Hi Andrei,

thanks for your fast response.

The AddIn Options Dialog shows mscoree.dll for the Teamviewer AddIn,
and adxloader.dll with full path to install dir for our AddIn.
adxloader.dll is present at this location.


Best Regards
Bernd
Posted 09 Jul, 2013 05:46:52 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Bernd,

I was wrong supposing that the CurrentUICulture is domain-dependent. I suggest that you contact the TeamViewer team and describe them the issue. You can try to avoid it by setting the CurrentUICulture as shown in this blog:
http://www.add-in-express.com/creating-addins-blog/2009/02/13/old-format-invalid-type-library/.


Andrei Smolin
Add-in Express Team Leader
Posted 09 Jul, 2013 10:39:10 Top