471,310 Members | 985 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Problem accessing C# Array between different Threads

Hi All,

Sorry as I am not sure whether I can post this here.

I have an assembly in c# implementing COM interfaces - ISomeInterface and
IAnotherInterfaces. I registered the assembly using regasm/codebase. I have
VC++ (STA) component which creates that c# class and gives the reference to
ISomeInterface when called a method from VB6 ActiveX EXE project. I am able
to get reference to ISomeInterface and also able to make calls.

When I call a method thru ISomeInterface, it returns Array of
IAnotherInterfaces. By calling the method I am getting IAnotherInterfaces
Array in VB6 ActiveX EXE (MTA) project and Array count is also O.K. But
when I make a call thru IAnotherInterface I am getting the following error:

"Invaid procedure call argument"

If I do the above job in VB6 Standalone EXE(STA), then I am not getting any

Has anyone had the problem earlier?

Thanks in Advance.

Dec 13 '05 #1
0 947

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Chris Styles | last post: by
1 post views Thread by rir3760 | last post: by
5 posts views Thread by Yuliaan | last post: by
39 posts views Thread by Martin Jørgensen | last post: by
43 posts views Thread by John | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.