NJDave71 Posted February 6, 2018 Share Posted February 6, 2018 (edited) I may have found a plugin bug when switching between themes. @CriticalCid is using my HelperControl plugin for his AEON MQ7 for the scrolling text. This control does a few other things such as returns the Total Game Count and has a couple custom converters. When Switching from his theme back to my theme Aeon Nox. BigBox throws an XAML Error referencing this control. If i close Big Box and open it again all is fine. Has anyone else experienced this issue when switching themes? Edited February 6, 2018 by CriticalCid Renamed title Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted February 6, 2018 Share Posted February 6, 2018 Interesting. Dave, if you would, use a different title for these posts. That way they're not confused with the official beta testing threads. What is the error? Quote Link to comment Share on other sites More sharing options...
NJDave71 Posted February 6, 2018 Author Share Posted February 6, 2018 NP..... now i can't reproduce it... So i guess i will have to table it unless someone else sees it grrrrrrrr. 1 Quote Link to comment Share on other sites More sharing options...
CriticalCid Posted February 6, 2018 Share Posted February 6, 2018 I might be wrong but I think that's the same issue that @eatkinola has encountered a while ago as well. I'll just quote him: On 15.10.2017 at 3:51 PM, eatkinola said: CZ/CH and Nostalgia use different versions of the same plugin Ao.Bigbox.Themer. The first theme loaded gets its version of the plugin loaded, and subsequently switching to the other theme spews a lot of errors. I should've anticipated and fixed this problem sooner. @Porl Hendybrought this to my attention. I tried to fix it like this by specifying the assembly version: xmlns:aop="clr-namespace:Ao.Bigbox.Plugins;assembly=Ao.Bigbox.Themer,Version=3.0.0.0" That did not work, as .NET apparently ignores versioning for loose XAML. The following does work: xmlns:aop="clr-namespace:Ao.Bigbox.Plugins;assembly=Ao.Bigbox.Themer.v3_0" When I compiled the assembly, I just included the version in the name. This resolves the conflict and now I can switch between CZ/CH and Nostalgia without problems. Just wanted to pass along this solution. It might've already been obvious to y'all. If you have a better approach, please let me know. I like this approach because it's quite clear by the file name which version a theme is using. 2 Quote Link to comment Share on other sites More sharing options...
wallmachine Posted February 6, 2018 Share Posted February 6, 2018 (edited) I get the same issue. I've seen this for example on the weather plugin. From memory what happened was I included the weather plugin to my theme and it referenced another theme that had the plugin and threw an XAML error. Closed bigbox and reopened and it was all good. Checked my references all fine, removed other themes just to make sure and its fine. Also I noticed if another theme had the weather plugin it would sometimes list there location listed. Edited February 6, 2018 by wallmachine 1 Quote Link to comment Share on other sites More sharing options...
CriticalCid Posted February 6, 2018 Share Posted February 6, 2018 Interesting. I guess we should tag @Grila as well then. Edit: As Jason pointed out above I've renamed the thread title to reflect the issue. Quote Link to comment Share on other sites More sharing options...
NJDave71 Posted February 6, 2018 Author Share Posted February 6, 2018 Hey guys... looks like it's plugin versioning. I recreated the error with my plugin and @CriticalCid AEON MQ7. The earlier version seems to stay in memory and doesn't load new one. Thanks guys thought it was me. Quote Link to comment Share on other sites More sharing options...
NJDave71 Posted February 6, 2018 Author Share Posted February 6, 2018 46 minutes ago, wallmachine said: I get the same issue. I've seen this for example on the weather plugin. From memory what happened was I included the weather plugin to my theme and it referenced another theme that had the plugin and threw an XAML error. Closed bigbox and reopened and it was all good. Checked my references all fine, removed other themes just to make sure and its fine. Also I noticed if another theme had the weather plugin it would sometimes list there location listed. BINGO Quote Link to comment Share on other sites More sharing options...
wallmachine Posted February 7, 2018 Share Posted February 7, 2018 1 hour ago, NJDave71 said: BINGO Teamwork Quote Link to comment Share on other sites More sharing options...
eatkinola Posted February 7, 2018 Share Posted February 7, 2018 3 hours ago, CriticalCid said: I might be wrong but I think that's the same issue that @eatkinola has encountered a while ago as well. Agreed. Good call Cid! Glad y'all figured it out. Plugin versioning as described above should hopefully avoid this from recurring. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.