C++ Builder IDE >> bug? debug? CPU thread
by Emmanuel » Fri, 09 Sep 2005 10:47:28 GMT
I found that when I am debug for my program
the C++builder 6 must stop in in a CPU Thread
>>> 77F9193D C3 ret
77F9193E 8BFF mov edi,edi
What is the meaning ??
I need to press F9 many times in order to run mt program.
it make all the program cannot debug.
How can I solve it?
C++ Builder IDE >> bug? debug? CPU thread
by Danzer » Fri, 16 Sep 2005 04:03:34 GMT
Goto Tools->Debugger Options->Language Exceptions and make sure Stop on
Delphi Exceptions is checked. You might be getting a Delphi exception
that the debugger is not handling. I have seen the CPU window pop up at
varying locations when a Delphi exeception was raised without this
option being checked.
Danzer
C++ Builder IDE >> bug? debug? CPU thread
by Emmanuel » Tue, 27 Sep 2005 07:33:15 GMT
I have check it, "Stop on Delphi Exceptions" is checked. but still have such
problem
bug? debug? CPU thread
by Emmanuel » Thu, 29 Sep 2005 23:42:24 GMT
No help???
"Emmanuel" < XXXX@XXXXX.COM > : XXXX@XXXXX.COM ...
Similar Threads
1. CPU Utilization for a thread and killing a thread - CSharp/C#
2. Debugging a program for CPU Usage
Hello,
I have created a program that sometimes is using 99% cpu usage. :S
Sometimes its after few mins, sometimes its after few hours.
Problem is that im using two 3rd party dll's is there anyway to find out if
its my code or the other dll's that are cause the problem?
Thanks.
/Jan
3. Can't debug DLL's with "Multi-threaded Debug DLL" under VS 2003
4. Debugging CPU usage
My service is showing a large difference in %CPU utilization. For the same
number of messages processed, sometimes it uses 20%CPU and other times it
uses 40%CPU. I tried to use VS profiler in sampling mode and it sowed the
same results in both cases. i.e. it showed the same number of samples for the
same functions in both cases. Type of data and the number of messages
processed are also the same in both cases. It is making me crazy... 20% vs
40%! that's a lot of difference. Anybody have any suggestion of how to figure
what's actually causing the service to use different %CPU.
Thanks.
5. Can't debug DLL's with "Multi-threaded Debug DLL" under VS C++ 2003 - Visual Studio
6. Multi-threaded Debug DLL works / not Multi-threaded DLL
Ok so I can release my app when using the following Runtime Library
-> Multi-threaded Debug DLL
and I get the app to crash right on execution when using any other
settings for The Runtime Library
"I do realize that its not alowed to release an application using
Multi-threaded Debug DLL"
when I run the release version using Runtime Library
-> Multi-threaded DLL
the application crashs when I try to use my COM port to connect to a
certain device...
So when I debug this error
I get pointed to this pice of code:
/* Output the data to the serial port */
--> CByteArray byteArray;
for ( k=0; k<uwIndex; k++ )
{
m_pResourceMgr->AddToMessageBuffer( ucMessage[k] );
byteArray.Add( (BYTE)ucMessage[k] );
}
I'm not sure that would help but if you know any tips I could use to
fix this problem would be greatly appressiated!
Thanks,
Jonathan
7. CPU usage max'd out in ".NET SystemEvents" thread - CSharp/C#
8. Quantity of CPU time used by a thread
Is there a way to measure or ask .NET to tell me what amount of time a
thread spent actually executing on the CPU?
For example, I may spawn a thread that spends 99.9% of its time
waiting for an event to be set, and then performs some action. If the
thread runs for 10 hours, how can I find out what amount of that time
was spent doing real execution.
For a simple example, I could measure this myself... For example, if I
just had a loop that waited for an event to be set I could put a high
performance timer everytime I got into the body of the loop and
increment a total time before going back into my wait mode.
However, if my code in turn calls lots of other functions which may
also block waiting on some asynchronous action this gets really
complicated and kinda infeasible if the other code is out of my
control.
Therefore, I was hoping for some magic API call that gives me this
info.
Any ideas?
Thanks,
-ken