 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ed Guest
|
Posted: Tue May 23, 2006 5:14 am Post subject: Tool needed to Trace out steps in program. |
|
|
I have a app that runs on many (over 1000) pc just fine, but I have a
somewhere around 50 PCs where the app sends the CPU% up to 100 percent and I
can't find the problem.
Is there a plug in that will trace each line in the code so I can see where
the problem is. Also,
does anyone know who I can set a flag in my code, so when the processor on
my process goes over a certain level so I can hopefully see where the
problem is. I have EurekaLog, but I'm not getting any
type of error and my app is still working fine, it just pegs the processor
and it causes older PCs to
slow.........
Thanks for the help,
Ed |
|
| Back to top |
|
 |
Ed Guest
|
Posted: Tue May 23, 2006 6:20 am Post subject: Re: Tool needed to Trace out steps in program. |
|
|
The app doesn't hang, it keeps running and works fine just pegs the
processor.
"Liz" <liz_wants_no_spam (AT) xcalibur (DOT) nospam.co.uk> wrote in message
news:xn0emk8fi28p8xl004 (AT) newsgroups (DOT) borland.com...
| Quote: | Ed wrote:
I have a app that runs on many (over 1000) pc just fine, but I have a
somewhere around 50 PCs where the app sends the CPU% up to 100
percent and I can't find the problem.
Is there a plug in that will trace each line in the code so I can see
where the problem is. Also, does anyone know who I can set a flag in
my code, so when the processor on my process goes over a certain
level so I can hopefully see where the problem is. I have EurekaLog,
but I'm not getting any type of error and my app is still working
fine, it just pegs the processor and it causes older PCs to
slow.........
if it actually hangs, madexcept will notice and be able to deal with
it. It might help.
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
|
| Back to top |
|
 |
Liz Guest
|
Posted: Tue May 23, 2006 6:20 am Post subject: Re: Tool needed to Trace out steps in program. |
|
|
Ed wrote:
| Quote: | I have a app that runs on many (over 1000) pc just fine, but I have a
somewhere around 50 PCs where the app sends the CPU% up to 100
percent and I can't find the problem.
Is there a plug in that will trace each line in the code so I can see
where the problem is. Also, does anyone know who I can set a flag in
my code, so when the processor on my process goes over a certain
level so I can hopefully see where the problem is. I have EurekaLog,
but I'm not getting any type of error and my app is still working
fine, it just pegs the processor and it causes older PCs to
slow.........
|
if it actually hangs, madexcept will notice and be able to deal with
it. It might help.
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
| Back to top |
|
 |
Pete Fraser Guest
|
Posted: Tue May 23, 2006 8:14 am Post subject: Re: Tool needed to Trace out steps in program. |
|
|
Try pressing Pause and see where the processor is.
HTH Pete
"Ed" <ebrazell (AT) selectqu (DOT) com> wrote in message
news:4472a1eb$1 (AT) newsgroups (DOT) borland.com...
| Quote: | The app doesn't hang, it keeps running and works fine just pegs the
processor. |
|
|
| Back to top |
|
 |
Cristian Nicola Guest
|
Posted: Tue May 23, 2006 9:15 am Post subject: Re: Tool needed to Trace out steps in program. |
|
|
Download this:
http://www.sysinternals.com/Utilities/ProcessExplorer.html
As far as i remember it shows you the running threads and their stack
position .. that should give you a raw point on where the current execution
is at - then use the map file to find out the sources position...
Not a very easy/straight forward but should get you in the right
direction... other than this you can try to attach a remote debugger or so..
Kind regards,
Cristian Nicola
"Ed" <ebrazell (AT) selectqu (DOT) com> wrote in message
news:447295bb$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I have a app that runs on many (over 1000) pc just fine, but I have a
somewhere around 50 PCs where the app sends the CPU% up to 100 percent and
I
can't find the problem.
|
|
|
| Back to top |
|
 |
madshi (Mathias Rauen) Guest
|
Posted: Tue May 23, 2006 10:14 am Post subject: Re: Tool needed to Trace out steps in program. |
|
|
I'd suggest that you add a button to your app to
intentionally crash it. In the error report you
then get from EurekaLog you might be able to see
why the CPU is running at 100%.
--
www.madshi.net
high quality low level Delphi components
extended exception handling
API hooking, DLL injection |
|
| Back to top |
|
 |
Robert Cerny Guest
|
Posted: Tue May 23, 2006 4:15 pm Post subject: Re: Tool needed to Trace out steps in program. |
|
|
If you have Application.OnIdle, be sure to set Done := true;
If set to false, your app may go to 100% CPU usage, though you don't see a
difference on standard PC.
--
Robert Cerny
DelphiShaman
"Ed" <ebrazell (AT) selectqu (DOT) com> wrote in message
news:447295bb$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I have a app that runs on many (over 1000) pc just fine, but I have a
somewhere around 50 PCs where the app sends the CPU% up to 100 percent and
I
can't find the problem.
Is there a plug in that will trace each line in the code so I can see
where
the problem is. Also,
does anyone know who I can set a flag in my code, so when the processor on
my process goes over a certain level so I can hopefully see where the
problem is. I have EurekaLog, but I'm not getting any
type of error and my app is still working fine, it just pegs the processor
and it causes older PCs to
slow.........
Thanks for the help,
Ed
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|