NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 13 14 15 16 17 … 93 Next »
Access ImportHDPVRChannelsForm

 
  • 0 Vote(s) - 0 Average
Access ImportHDPVRChannelsForm
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#1
2011-07-31, 11:50 PM
I am playing around with adding a tuner plugin and I have decided importing from the NShared.ImportHDPVRChannelsForm will do exactly what I want for importing and enabling channels. I can load the form with XML using the base case and I can override the OnClose event to read the check items, but I can't find anyway to use the OK or Cancel buttons. Is there any way I can inherit this form and have those buttons enabled?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2011-07-31, 11:58 PM
Sorry, but these forms were never intended for being used this way.

What exactly are you trying to do?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#3
2011-08-01, 12:29 AM
I want to see how hard it is to write a plugin for tuning r5000 devices. Since they can tune 100's of channels like the HDPVR using this form I figured I could leverage all the work that you have done for importing XMLTV/SD downloading, plus the mapping against the channel table.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2011-08-01, 12:37 AM
I dont think you'd be able to reuse that class. I might be able to create you something which is reusable, but I dont have time to do that right now. I dont know how much work you have to do, but if you leave that bit of work til last, I should be able to make something.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#5
2011-08-01, 02:57 AM
Well I tried to wait, and just edited the database but I can't even get the recording service or NPVR to try to record. The database entry gets made and things start ok

Code:
checking: TestRecorder1
enabled and present
has channel
StartStream(6867:TVG CAN)
looking for capture source
checking: TestRecorder1
enabled and present
has channel
Reloading recording schedule
allocating recording target filename: C:\movies\TV Guide\TV Guide_20110731_21000000.ts
About to start recording (931): C:\movies\TV Guide\TV Guide_20110731_21000000.ts

but then..

Code:
[4572] <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>NextPVR.exe</AppDomain><Exception><ExceptionType>System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Object reference not set to an instance of an object.</Message><StackTrace>   at NShared.RecordingService.WorkerThread()
[4572]    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
[4572]    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[4572]    at System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.NullReferenceException: Object reference not set to an instance of an object.
[4572]    at NShared.RecordingService.WorkerThread()
[4572]    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
[4572]    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
[4572]    at System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2011-08-01, 03:37 AM
Can you post the nrecord.log so I've got some clues where it is crashing?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#7
2011-08-01, 03:47 AM
Sure but that log above is where NRecord ends Also NRecord does not seem to call the constructor and neither does NPVR (when running as a recorder) after the first crash.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#8
2011-08-01, 05:50 AM
Can you zip and attach your npvr.db3 file so I can see what the channel and channel mapping look like in the database.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#9
2011-08-01, 02:12 PM
Sure. I emptied it but it is otherwise complete. It includes a future recording that do seem to get created properly, until recording time starts. I didn't know what service_type to use so I used zero. On the channels panel it does show up as unknown though.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#10
2011-08-01, 06:25 PM
Sorry, is there any chance you can try to reproduce it again, then post the matching npvr.db3 and nrecord.log? The current log referred to a scheduled recording that wasnt in the database.

In the code it looked like the scheduled recording entry in the database had an invalid capture source ID. I wanted to check if that was really the case.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (7): 1 2 3 4 5 … 7 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR 5: When is PIN Required for API Access? pkscout 3 2,629 2020-05-26, 04:45 AM
Last Post: sub
  API access to artwork and deleting recordings cncb 29 15,378 2016-11-06, 02:20 AM
Last Post: mvallevand
  Access 'Stay on top' setting from a plugin? McBainUK 5 2,343 2011-11-07, 04:43 PM
Last Post: sub
  Access to Schedules inside standalone progs dero 1 1,367 2008-12-09, 12:03 PM
Last Post: dero
  Linking gbpvr.db3 to Access 2003: get readonly tables Khurram 5 3,887 2008-09-11, 08:35 AM
Last Post: Khurram
  Access to FSE switch idkpmiller 12 4,162 2008-07-05, 04:01 PM
Last Post: whurlston
  Access DB and DateTime idkpmiller 5 2,306 2008-04-14, 10:37 AM
Last Post: idkpmiller
  SilverLight Web Access uwfalcon 1 1,310 2008-03-16, 05:32 AM
Last Post: sub
  GB-PVR web access McBainUK 2 3,588 2008-03-14, 03:21 PM
Last Post: McBainUK
  Need help, using VB 2005 Express and Access TOM22 1 1,313 2007-09-23, 06:29 AM
Last Post: Ommina

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

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

Linear Mode
Threaded Mode