Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SP1 for vfp8 ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00786118
Message ID:
00787202
Views:
26
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
Map
View

Click here to load this message in the networking platform