L
lightdoll
hello everyone.
i made a singleton com with sink.
then i use the com in C# with sink.
-- win32dll -> atl com -> event of atl(if i don't use this code, it's ok) ->
C#
so i wrote my sample code below.
1.the client call the function of com in thread.
2.the function in COM will fire to C#
then the cpu usage is increased.
how to solve this kind of problem.
i have to call the function of com continuely,
do you have any idea to solve this kind of problem.
please , teach me ...
-- Client Side -
i called a function of com from client in thread.
SetValue("AAA", "BBB", __Int, chBuffer);
SetValue("BBB", "CCC", __Int, chBuffer);
-- com side --
SetValue(BSTR A, BSTR B, int i, BSTR C)
{
Fire_Event();
}
-- C# Code
m_easyBridege.OnSetValue += new
_IEasyBridgeEvents_OnSet(easyBridege_OnSetEventId);
void easyBridege_OnSetEventId(string A, string B, int i , string C)
{
i made a singleton com with sink.
then i use the com in C# with sink.
-- win32dll -> atl com -> event of atl(if i don't use this code, it's ok) ->
C#
so i wrote my sample code below.
1.the client call the function of com in thread.
2.the function in COM will fire to C#
then the cpu usage is increased.
how to solve this kind of problem.
i have to call the function of com continuely,
do you have any idea to solve this kind of problem.
please , teach me ...
-- Client Side -
i called a function of com from client in thread.
SetValue("AAA", "BBB", __Int, chBuffer);
SetValue("BBB", "CCC", __Int, chBuffer);
-- com side --
SetValue(BSTR A, BSTR B, int i, BSTR C)
{
Fire_Event();
}
-- C# Code
m_easyBridege.OnSetValue += new
_IEasyBridgeEvents_OnSet(easyBridege_OnSetEventId);
void easyBridege_OnSetEventId(string A, string B, int i , string C)
{