SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-30-2010, 05:48 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Not possible to read from windows registry on extender?

I have some java code some windows registry code. It works fine on the server and clients but doesn't on the extenders. I would think the extender should get the same value as the server but I am getting no return for the extender is there anyway around this issue?

I guess worst case scenerio I could write the server read and make the extenders use that read but would require server running before any extenders not ideal.
Reply With Quote
  #2  
Old 01-30-2010, 06:17 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Are you talking about extenders in standalone mode? You're not running under Windows in that mode, hence no registry to read.

If you're talking about extender mode, i.e. connected to a SageTV server, then your code is running on the server and reading the server's registry. If you're having issues with that, maybe you're trying to read from keys that don't exist. But in that case I have no idea what you mean about starting the server before the extenders, since your code executes on the server.
__________________
-- Greg
Reply With Quote
  #3  
Old 01-30-2010, 06:44 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by GKusnick View Post
Are you talking about extenders in standalone mode? You're not running under Windows in that mode, hence no registry to read.

If you're talking about extender mode, i.e. connected to a SageTV server, then your code is running on the server and reading the server's registry. If you're having issues with that, maybe you're trying to read from keys that don't exist. But in that case I have no idea what you mean about starting the server before the extenders, since your code executes on the server.
Sorry wasn't very clear it is extender mode. The registry key exist on the server as if I run the code on the server it returns correctly in this case It Is a path to a mapped drive, but if I run it on the extender I get a wierd ip address returned instead of the path. To be precise it is returning 127.0.0.1 which is not even a path in my domain.
Reply With Quote
  #4  
Old 01-30-2010, 06:59 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
127.0.0.1 is the local machine which would be the server. Wouldn't the path need to be UNC and not mapped?

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #5  
Old 01-30-2010, 07:11 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by gplasky View Post
127.0.0.1 is the local machine which would be the server. Wouldn't the path need to be UNC and not mapped?

Gerry
Yeah the path in the registry is a unc path but for some reason when the extender gets the value that is what it returns but from the server ui it returns fine.
Reply With Quote
  #6  
Old 01-30-2010, 07:20 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
You're sure you're reading the identical registry path in both cases? If it's a subkey of HKEY_CURRENT_USER then it may not be the same, depending on which user you're logged in as. So for instance SageTVService may be logged in as one user and get one value from that key, whereas the SageTV UI process may be logged in as a different user with a different value.

And to state the obvious, code with Windows registry dependencies won't work on Mac or Linux systems. So be aware that you're excluding those users by introducing such dependencies.
__________________
-- Greg
Reply With Quote
  #7  
Old 01-30-2010, 07:33 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by GKusnick View Post
You're sure you're reading the identical registry path in both cases? If it's a subkey of HKEY_CURRENT_USER then it may not be the same, depending on which user you're logged in as. So for instance SageTVService may be logged in as one user and get one value from that key, whereas the SageTV UI process may be logged in as a different user with a different value.

And to state the obvious, code with Windows registry dependencies won't work on Mac or Linux systems. So be aware that you're excluding those users by introducing such dependencies.
Didn't think of the user situation that is it will have to work around that some way thanks

and as for the other yeah this is for mymovies addin which is windows exclusive unfortunetly so Linux and mac won't be supported.
Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTPC Extender (Diskless, lowcost, Windows 7, etc.) zakrzep Hardware Support 9 01-21-2010 06:43 PM
Jerky Blu-ray playback from Windows Home Server to HD-200 Extender - SOLVED DMT SageTV Beta Test Software 6 06-23-2009 09:01 PM
playing windows media streams on sage extender geekgr SageTV Media Extender 0 01-03-2008 07:48 PM
Recommendation: Media Extender vs. Windows Client mattporco Hardware Support 6 01-08-2006 09:12 PM
forum posts not marked read when read? xlr8shun The SageTV Community 2 05-04-2004 01:49 AM


All times are GMT -6. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.