Hi Mike,
About the error I am getting
[Error Message OLE error code 0x80020006: Unknown Name.]
Can you try the following.
1.Create a new project
2.Create a prg with
DEFINE CLASS ComServer1 AS Session OLEPUBLIC
PROCEDURE ReturnHello1() AS String
RETURN "Hello1"
ENDDEFINE
3.Create a second prg with
DEFINE CLASS ComServer2 AS Session OLEPUBLIC
PROCEDURE ReturnHello2() AS String
RETURN "Hello2"
PROCEDURE ReturnHello3() AS String
RETURN "Hello3"
ENDDEFINE
4.Compile and install onto COM+
5.In antoher machine, create a prg with
FOR nIndex = 1 TO 1000
TRY
o = CREATEOBJECTEX([CLSID OF ComServer1], [ServerName])
o.ReturnHello1()
CATCH TO oErr
? "Error Message " + oErr.Message
FINALLY
o = NULL
ENDTRY
TRY
o = CREATEOBJECTEX([CLSID OF ComServer2], [ServerName])
o.ReturnHello2()
CATCH TO oErr
? "Error Message " + oErr.Message
FINALLY
o = NULL
ENDTRY
ENDFOR
- Run this prg in two or more different instance of vfp simultaneous, the error should appear randomaly [Error Message OLE error code 0x80020006: Unknown Name.]
PS. If the number of procedure is the same on both com (remove one of the procedure in comserver2) the error disappear...
I compile this com program in VFP7, it ran fine.
Can you confirm this error and hopefully fix it. By the way, I thought it only appear on a dual-cpu but this also happen on one cpu machine.
Thanks
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only