NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 30 31 32 33 34 … 93 Next »
Missing DLL

 
  • 0 Vote(s) - 0 Average
Missing DLL
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2008-08-06, 07:33 AM
I'm having problems at runtime with DLLs and GB-PVR reporting that it can't find them. All plugin specific DLLs are located in a sub folder of gbpvr\plugins\ and I have ResolveAssemblyEventHandler method in the plugin (which strangely is not being called).

What kind of logic is in GB-PVR for resolving DLL references? Does anyone have an idea of what I can do to fix this problem..?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#2
2008-08-06, 07:59 AM
Try and use all your dlls at plugin constructor time, as sub tells me this is about the only time he knows what directory a plugin is in.

I've started adding a static "Version" method to my dlls as this is how I can call at the constructor without doing any other initialisation. I find it works well.

But depending on you dlls you may need to initialise a class for it to trigger the assembly resolve (sub also has this implemented).

Hope that helps.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2008-08-06, 08:33 AM
What code do you have in the Version() method?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#4
2008-08-06, 08:40 AM
Code:
System.Reflection.Assembly myAsm = System.Reflection.Assembly.GetExecutingAssembly();
return myAsm.GetName().Version.ToString(3);

And if that doesn't do enough, then in that method I also initialise a class with no try/catch around it, that tends to either force an assembly_resolve or show up some other error.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#5
2008-08-06, 08:54 AM
You're a legend, thanks Big Grin
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Things missing in npvr alibert 2 1,628 2010-10-09, 10:53 AM
Last Post: alibert
  Weather Doppler Radar missing time 4 hours Snooze 0 1,345 2009-02-02, 07:00 PM
Last Post: Snooze
  Missing assembly problem... bgowland 16 4,662 2008-01-10, 06:43 PM
Last Post: bgowland
  Icons missing in Weather plug in HK Phoey 2 1,591 2005-10-13, 09:22 PM
Last Post: tieke

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode