NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) XSuite (Xrecord, XSearch, XGuide, CDK Scheduler) v
« Previous 1 2 3 4 Next »
PVRX2 wont start when Archiving in progress?

 
  • 0 Vote(s) - 0 Average
PVRX2 wont start when Archiving in progress?
fla
Offline

Posting Freak

Posts: 881
Threads: 46
Joined: Mar 2006
#11
2007-12-06, 02:13 AM
Thanks for the tip. I just tried it and .net terminates background threads on application exit which then causes partial/corrupt XRecord archives so I went back to foreground threads. Sorry jksmurf but I'm out of ideas on this one. Why not minimize pvrx2 instead of exiting? Don't know if there's already an API where pvrx2 asks plugins if they're busy? Perhaps a warning at gbpvr exit saying plugin xyz is busy, do you want to exit anyway and possibly lose data?
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#12
2007-12-06, 02:24 AM
fla Wrote:Sorry jksmurf but I'm out of ideas on this one. ....Perhaps a warning at gbpvr exit saying plugin xyz is busy, do you want to exit anyway and possibly lose data?

No worries, I guess I just didn't expect to be ABLE to exit, so was surprised when I did, that I couldn't go back in. So a warning would help on that front, for sure.

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#13
2007-12-06, 02:33 AM
Quote:Don't know if there's already an API where pvrx2 asks plugins if they're busy? Perhaps a warning at gbpvr exit saying plugin xyz is busy, do you want to exit anyway and possibly lose data?
No, there is no mechanism like this, and I dont really think its worth adding it for just this one problem. I dont like fiddle with the way the application interacts with plugins - from past experience I know just how likely changes in this area are to break other plugins.

You're probably better to run something out of process to perform the actual archiving, then just have your plugin communicate with it. That way it wouldnt matter if the app exits while your lengthy archiving process is in underway. Also minimize the duration of any database activities so that you dont create locks that interfere with the other things. For example, if you're moving recordings to another drive, get a list of them up front (few milliseconds, to read then release the database), then for each file do the copy, then a quick update the database (again a few milliseconds), then delete the original. This is only a guess of what you're doing though.
fla
Offline

Posting Freak

Posts: 881
Threads: 46
Joined: Mar 2006
#14
2007-12-06, 03:30 AM
I understand wanting to keep the plugin API very stable. I don't think rewriting/distributing an archiving executable is worth it for this problem. Sounds like you'll have to be careful not to exit jksmurf.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  IO Error Not enough space when archiving to nearly Empty External USB ? jksmurf 6 6,736 2007-12-04, 12:16 AM
Last Post: jksmurf

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

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

Linear Mode
Threaded Mode