INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: help! plugin only running when displayed in MC  (Read 1911 times)

Rob L

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 469
help! plugin only running when displayed in MC
« on: November 07, 2006, 10:52:58 am »

I'm really stuck here...

For ages I've been planning to convert my standalone .EXE into a proper plugin, and I've finally taken the plunge. I guess I should have tried it with MC11 first, but I've totally cut over to MC12 now, so I don't know if I'm making things harder for myself...

Anyway, the problem is, I've written it as a plugin, and it appears in the plugins section, next to the Library Server, and it works - but only if it's displayed! As soon as you switch to another part of the MC interface, it gets unloaded!

Any ideas how I can ensure the plugin runs regardless of whether it's displayed or not?

It's written in VB6, and is just an OCX.

Any ideas? I'm really stumped.

Thanks
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5906
  • Farm Animal Stupid
Re: help! plugin only running when displayed in MC
« Reply #1 on: November 07, 2006, 11:45:04 am »

In the plugin's registry entry, set the PluginMode value to 1
Logged

Rob L

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 469
Re: help! plugin only running when displayed in MC
« Reply #2 on: November 07, 2006, 11:48:31 am »

thanks :-)

so how do you know that then?

I couldn't see that in the documentation anywhere...
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5906
  • Farm Animal Stupid
Re: help! plugin only running when displayed in MC
« Reply #3 on: November 07, 2006, 12:15:35 pm »

I have no idea. I just know it. I must have read it somewhere, but I couldn't say where now.
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: help! plugin only running when displayed in MC
« Reply #4 on: November 07, 2006, 12:16:36 pm »

It's one of those things that's not supposed to be documented.
It's passed down from Plugin Writer to plugin writer  ;)

Rob L

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 469
Re: help! plugin only running when displayed in MC
« Reply #5 on: November 07, 2006, 12:26:30 pm »

hehe

so does that mean you have to delete this thread now?

sweep it under the JRiver carpet? :-)
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: help! plugin only running when displayed in MC
« Reply #6 on: November 07, 2006, 04:26:48 pm »

so does that mean you have to delete this thread now?

Yes

Everyone Please Stand Back, And Move Along There Is Nothing To See Here.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA
Pages: [1]   Go Up