BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tool needed to Trace out steps in program.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General)
View previous topic :: View next topic  
Author Message
Ed
Guest





PostPosted: Tue May 23, 2006 5:14 am    Post subject: Tool needed to Trace out steps in program. Reply with 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
Ed
Guest





PostPosted: Tue May 23, 2006 6:20 am    Post subject: Re: Tool needed to Trace out steps in program. Reply with quote



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





PostPosted: Tue May 23, 2006 6:20 am    Post subject: Re: Tool needed to Trace out steps in program. Reply with quote



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





PostPosted: Tue May 23, 2006 8:14 am    Post subject: Re: Tool needed to Trace out steps in program. Reply with quote

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





PostPosted: Tue May 23, 2006 9:15 am    Post subject: Re: Tool needed to Trace out steps in program. Reply with quote

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





PostPosted: Tue May 23, 2006 10:14 am    Post subject: Re: Tool needed to Trace out steps in program. Reply with quote

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





PostPosted: Tue May 23, 2006 4:15 pm    Post subject: Re: Tool needed to Trace out steps in program. Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.