Any Plugin Experts Out There?

Jaxel

Member
The issue appears to be in the following code:
Code:
    public override void Tick(float fSeconds)
    {
        Application.Current.Dispatcher.Invoke(new TickFunctionDelegate(renderBitmap));
    }

If I comment out that code, and instead run renderBitmap() from within the UpdateSettings(), I no longer get any crashes... of course, then my plugin is no longer animated; which defeats the entire purpose of the plugin... but at least it no longer crashes.

Any ideas on how to fix?
 

Jaxel

Member
Okay, I appear to have fixed the crashing issue by replacing "Invoke" with "BeginInvoke".

Still have 2 remaining issues.
  • When I add the plugin to a source, it adds it 100x100, instead of the WidthxHeight I define in my plugin config. Must hit Ctrl+R to fix.
  • When I open up OBS with the plugin already set up in a scene, the plugin won't "start" until after I open the config window at least once.

* EDIT *

New issue... when I edit the plugin config... it doesn't actually apply the config changes until I "hide>show" the plugin.
 
Last edited:

Jaxel

Member
New question... The plugin takes a TON of memory. Most likely due to the fact that every frame, its building a bitmap image and setting it as a texture. Is there any way to fix this?
 

Faruton

Developer
Don't really have time to look, all I can say is to refer to CLRBrowserSourcePlugin as it exercises the CLRHost plugin the most.
 

Jaxel

Member
Okay, new question...

When I edit the config of my plugin, it doesn't reload the plugin when I click "OK". I have to "hide/show" the plugin using the checkbox next to it in the source list in order for it to reload and use the new config settings. How do I force the plugin to reload itself when the configuration is changed?
 

Faruton

Developer
Looking at your UpdateSettings, you don't change anything if it is already initialized. Saving configuration doesn't automatically reload the plugin
 
Top