cthulhugeek
New Member
Hello fellow Progress Talkers,
I have this weird problem. The following code runs fine on 13 out of 15 clients. On 2 machines I am getting the following error.
unable to set com-handle property (5677)
The code is the same as it is on the network, I can not find what makes the other two machines different. One thing that does make them the same is that only these two machines were getting the blue sceen of death while in progress, and it mentioned portcls.sys was the offending program. From what I have seen on the internet portcls.sys has to do with sound, so I shut off the sound card, seeing they dont use it and the blue screens went away. Any ideas?
The details:
progress 9.1D running on windows 2003 server
progress 9.1D character clients running on 15 identically configured dell precison 380's running windows xp SP 2.
Any ideas would be helpful.
Almost forget! Here is an exerpt from the code.
DEFINE VARIABLE ObjRecordSet AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ObjConnection AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ObjCommand AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ODBC-DSN AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-SERVER AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-USERID AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-PASSWD AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-QUERY AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-STATUS AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-NULL AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-CURSOR AS INTEGER NO-UNDO.
/* Create the connection object for the link to SQL */
CREATE "ADODB.Connection" ObjConnection.
/* Create a recordset object ready to return the data */
CREATE "ADODB.RecordSet" ObjRecordSet.
/* Create a command object for sending the SQL statement */
CREATE "ADODB.Command" ObjCommand.
ODBC-QUERY =
"SELECT * from plateinv where stocknumber = '" + ptag# +
"' and heatnumber = '" + pheat# +
"' and platetype = 2 ORDER BY createdate DESC".
ObjConnection:Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=P:\Database\P~
ronest7.mdb;Mode=Read;Persist Security Info=False",,,0).
/* Check for connection errors */
IF ( ERROR-STATUS:NUM-MESSAGES > 0 ) THEN
MESSAGE "ERROR".
ASSIGN ObjCommand:ActiveConnection = ObjConnection
ObjCommand:CommandText = ODBC-QUERY
ObjCommand:CommandType = 1 /* adCmdText */
ObjConnection:CursorLocation = 3 /* adUseClient */
ObjRecordSet:CursorType = 3 /* adOpenStatic */
ObjRecordSet =
ObjCommand:EXECUTE(OUTPUT ODBC-NULL, "", 32 )
ODBC-RECCOUNT = ObjRecordSet:RecordCount.
IF NOT ODBC-RECCOUNT > 0 THEN RETURN.
xlngth = ObjRecordSet:FIELDS ("platelength"):VALUE.
xwdth = ObjRecordSet:FIELDS ("platewidth"):VALUE.
xwgt = ObjRecordSet:FIELDS ("weight"):VALUE.
platepath = ObjRecordSet:FIELDS ("platepath"):VALUE.
I have this weird problem. The following code runs fine on 13 out of 15 clients. On 2 machines I am getting the following error.
unable to set com-handle property (5677)
The code is the same as it is on the network, I can not find what makes the other two machines different. One thing that does make them the same is that only these two machines were getting the blue sceen of death while in progress, and it mentioned portcls.sys was the offending program. From what I have seen on the internet portcls.sys has to do with sound, so I shut off the sound card, seeing they dont use it and the blue screens went away. Any ideas?
The details:
progress 9.1D running on windows 2003 server
progress 9.1D character clients running on 15 identically configured dell precison 380's running windows xp SP 2.
Any ideas would be helpful.
Almost forget! Here is an exerpt from the code.
DEFINE VARIABLE ObjRecordSet AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ObjConnection AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ObjCommand AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ODBC-DSN AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-SERVER AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-USERID AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-PASSWD AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-QUERY AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-STATUS AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-NULL AS CHARACTER NO-UNDO.
DEFINE VARIABLE ODBC-CURSOR AS INTEGER NO-UNDO.
/* Create the connection object for the link to SQL */
CREATE "ADODB.Connection" ObjConnection.
/* Create a recordset object ready to return the data */
CREATE "ADODB.RecordSet" ObjRecordSet.
/* Create a command object for sending the SQL statement */
CREATE "ADODB.Command" ObjCommand.
ODBC-QUERY =
"SELECT * from plateinv where stocknumber = '" + ptag# +
"' and heatnumber = '" + pheat# +
"' and platetype = 2 ORDER BY createdate DESC".
ObjConnection:Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=P:\Database\P~
ronest7.mdb;Mode=Read;Persist Security Info=False",,,0).
/* Check for connection errors */
IF ( ERROR-STATUS:NUM-MESSAGES > 0 ) THEN
MESSAGE "ERROR".
ASSIGN ObjCommand:ActiveConnection = ObjConnection
ObjCommand:CommandText = ODBC-QUERY
ObjCommand:CommandType = 1 /* adCmdText */
ObjConnection:CursorLocation = 3 /* adUseClient */
ObjRecordSet:CursorType = 3 /* adOpenStatic */
ObjRecordSet =
ObjCommand:EXECUTE(OUTPUT ODBC-NULL, "", 32 )
ODBC-RECCOUNT = ObjRecordSet:RecordCount.
IF NOT ODBC-RECCOUNT > 0 THEN RETURN.
xlngth = ObjRecordSet:FIELDS ("platelength"):VALUE.
xwdth = ObjRecordSet:FIELDS ("platewidth"):VALUE.
xwgt = ObjRecordSet:FIELDS ("weight"):VALUE.
platepath = ObjRecordSet:FIELDS ("platepath"):VALUE.