SageTV Community  

Go Back   SageTV Community > SageTV Customizations > SageTV Studio

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-31-2006, 07:04 PM
beelzerob beelzerob is offline
Sage Advanced User
 
Join Date: May 2006
Posts: 163
Having trouble handling what an api call returns...

I've written a little java program, and what I'm trying to get it to do (as a test), is return the list of active encoding devices, via the "GetActiveCaptureDevices" api call. All I want to do is output the result to the system I/O (the Sage console window).

The file compiles, and runs fine up to this point:
System.out.println(FileList[0]);

The FileList is a result of:
String[] FileList = (String[])sage.SageTV.api("GetActiveCaptureDevices", null);


The error I get is very generic, and I'm not sure why my catch doesn't catch it. It just says "Exception in thread..."

Basically, it doesn't like me treating it like an array of strings.

Things I think I might be doing wrong: It could be returning a NULL if it doesn't think there are any active capture devices, though I've verified there are.

I've compiled the .java file into a .class file, and it is run by Sage on startup. I get other system I/O message out fine. Any suggestions?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:44 PM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2003-2005 SageTV, LLC. All rights reserved.