INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: VB.NET GetObject() Problem  (Read 1831 times)

TreeFrog77

  • Junior Woodchuck
  • **
  • Posts: 60
VB.NET GetObject() Problem
« 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:
  • Installed 15 (got libraries converted, tested, etc)
  • Uninstalled 14
  • Rebooted
  • Reinstalled 15 (got the last.fm plugin not found error)
  • Rebooted

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.
Logged

TreeFrog77

  • Junior Woodchuck
  • **
  • Posts: 60
Re: VB.NET GetObject() Problem
« Reply #1 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.
Logged
Pages: [1]   Go Up