473,386 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

The cpu usage is increased between com and atl

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)
{
----
}

best regards.
Mar 12 '08 #1
1 962
"lightdoll" <dj******@naver.comwrote in message
news:2C**********************************@microsof t.com...
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 ...
Not sure what problem you have with this.
You can't run code without consuming CPU resources, especially when you call
methods repeatedly, that do nothing else than calling you back .

Willy.

Mar 12 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JosR | last post by:
I have a memory problem when running a VB.Net application. The application uses a from frmMain from which another form can be opened: Private Sub OpenTheNewForm() dim frm as New frmSecondform...
3
by: Dan | last post by:
First, I'm sorry if this question has been asked too many times. I'm new to this news group. The question has to do with the use of popup windows in a web page. I have heard that popup windows...
15
by: Capstar | last post by:
Hi NG, I have a question about the usage of bitfileds in a structure. for instance: struct pcard { unsigned pips : 4; unsigned suit : 2; };
1
by: James | last post by:
After uppgrading from .NET v1.1 to .NET v2.0 we ca see massive usage of disc space(10 GB) in a subfolder in the following folder: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET...
0
by: Linda Chen | last post by:
Hi All, I have a couple web services developed in my machine. Starting from this morning, if I started any web service (no matter I did this from from VS .net IDE or from IE), my machine was...
8
by: Gawain Lavers | last post by:
I have a script which uses a lot of object augmentation (in order to extend the functionality of DOM elements), and I'm clearly stressing out my browser (I rapidly get to a point where Firefox is...
0
by: vangawk | last post by:
Hi, I am using Visual Studio2005 on a Windows XP SP2 English environment. Recently I have come across a problem where CPU shows 100% usage whenever I try to run an application which throws up an...
6
by: =?Utf-8?B?bGlnaHRkb2xs?= | last post by:
Hello everyone. i want to know how to decrease the cpu usage in my program. i have to update quickly many data on gui, so i tried to decrease the cpu usage on gui but i couldn't solve the...
8
by: jacek.dziedzic | last post by:
Hi! I need to be able to track memory usage in a medium-sized application I'm developing. The only significant (memory-wise) non- local objects are of two types -- std::vector<and of a custom...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.