INTERACT FORUM

More => Old Versions => Media Center 15 (Development Ended) => Topic started by: TreeFrog77 on July 30, 2010, 12:16:49 pm

Title: VB.NET GetObject() Problem
Post by: TreeFrog77 on July 30, 2010, 12:16:49 pm
Hey guys... just upgraded to 15 last night.  I have always had it (since 12) tied into my home automation through simple VB.NET scripting.  Now, with 15, this is failing.  The function I use to grab the MC object is:

Code: [Select]
function chGetMCObj()
dim mcObj
On Error Resume Next
mcObj = GetObject(, "MediaJukebox Application")
If Err.Number = 429 Then
mcObj = CreateObject("MediaJukebox Application")
end if

return mcObj
end function

When I run this, I simply get the error (immediately following the execution of the GetObject statement, it doesn't make it into the "if" statement):

Quote
Deleting Variable, Object reference not set to an instance of an object.

The steps I used to upgrade:

Everything in 15 is running along fine, but this call to GetObject is still failing.  Any ideas?

EDIT: Nevermind for now.  Something else is going on here... ran a test and was able to grab the object, however something is failing here.  Will need to do more testing.  I hadn't changing anything else on the system, except this upgrade, so there may be some other function in the script regarding MC that is actually failing.
Title: Re: VB.NET GetObject() Problem
Post by: TreeFrog77 on July 30, 2010, 12:49:22 pm
DOAH.  It was something else that happened in my HA that just coincided with this upgrade.  Everything working along smoothly as before.

MODS.. feel free to delete this thread.  Thanks.