Page 1 of 1 1
Topic Options
#191889 - 2009-01-24 01:12 AM Understanding COM errors
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Again being fairly new to COM scripting, I just don't know what I am looking at here.

This the error that I am recieving....

COM exception error "setIP" (SFTPCOMInterface.CISite.1 - MX Error: 7 (00000007)) [-2147352567/80020009]

Here is the code that I am using
 Code:
$a_IPlist = Split(ReadValue("\\SEFT02\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{3C86D4EF-07E9-4FE3-A4DA-4CBBD1A3A525}","IPAddress"),"|")
$a_IPList = Bsort($a_IPList)

;  Change the IP's to the correct one for each site.
For $s_Counter = 0 to $o_Sites.count -1
	$s_SiteName = $o_Sites.Item($s_Counter).name
	$s_IP = ReadProfileString("\\dfs\eftdata\eftconfig\globalscape\config.ini","Sites",$s_SiteName)
	$o_site = $o_Server.Sites.Item($s_Counter)
	$s_Index = AScan($a_IPList,$s_IP) + 2
	$o_site.setIP($s_Index)
Next


The error happens on the $o_site.setip($s_index)

I have asked the vendor for assistance as well, but they usually take awhile to get an answer back. So I come here \:\)
_________________________
Today is the tomorrow you worried about yesterday.

Top
#191890 - 2009-01-24 01:56 AM Re: Understanding COM errors [Re: Gargoyle]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4557
Loc: USA
Look for Cerror() in the UDFs. Put the @error in it, and most times, it will return a usable error message.
Top
#191893 - 2009-01-24 04:09 AM Re: Understanding COM errors [Re: Allen]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I will take a look at that on Monday morning.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#191921 - 2009-01-26 11:51 PM Re: Understanding COM errors [Re: Gargoyle]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Okay finally got time to look, and I am getting back an error code of 9
Net HelpMSG gives me this.."
The storage control block address is invalid." Uhm.... I am off to google it now, but if you have any suggestions.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#191923 - 2009-01-26 11:57 PM Re: Understanding COM errors [Re: Gargoyle]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
I don't think you're going to get back a good answer for that from Google, but if you do please share. I typically see that error when the object has already been acted upon i.e. in your example I'm guess that the IP is already set to that ?
Top
#191926 - 2009-01-27 12:25 AM Re: Understanding COM errors [Re: NTDOC]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I do know that I am trying to set it to a different index value. Here is some output from my debugging.

Current Site Index = 0
New Site Index is 19
Did it change? 0
_________________________
Today is the tomorrow you worried about yesterday.

Top
#191937 - 2009-01-27 04:51 PM Re: Understanding COM errors [Re: Gargoyle]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Yeah but not sure if that "debugging" is correct as different COM objects work differently and some expect parameters and as we know Kix doesn't handle that. If it works on some but not others then maybe look into that system more and see if it has something set differently or if you can easily make those changes manually or not.
Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 581 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.056 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org