Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

CPU hogging (again!)
Hi..

I have an old clipper 5.2 app that I use only occasionally. It was
hogging CPU. So I put in some code like this:

ft_onIdle( { || ft_iamidle(30, .T.) } )

It worked like magic. NTVDM CPU utilisation dropped to around 25%.

Then, to deal with a non-clipper DOS app which was hogging the CPU, I
installed a trial of TameDOS, which would work for about 5 minutes and
then lock cmd.exe altogether. So I decided to live with that one and
remove TameDOS.

The problem is that, now, my clipper 5.2 app which was working prior
to the TameDOS eval, (with the help of ft_onIdle & ft_iamidle from
NFPAT1A), now hogs 100% of the CPU ... regardless of the intensity
parameter passed to ft_iamidle .. a range of values from 1 to 100 ..
the app now hogs the CPU.

I'm running XP SP2.

Has anyone encountered this before? Any suggestions appreciated!

Thanks

Richard


Report this thread to moderator Post Follow-up to this message
Old Post
rl
08-23-07 12:55 PM


Re: CPU hogging (again!)
Dear rl:

"rl" <rl@raluke.com> wrote in message
news:1187861276.492151.24830@r23g2000prd.googlegroups.com...
...
> Any suggestions appreciated!

www.xharbour.org, depending on what third party libs you are
using.

David A. Smith



Report this thread to moderator Post Follow-up to this message
Old Post
N:dlzc D:aol T:com \(dlzc\)
08-23-07 12:55 PM


Re: CPU hogging (again!)
On Aug 23, 12:27 pm, rl <r...@raluke.com> wrote:
> Hi..
>
> I have an old clipper 5.2 app that I use only occasionally. It was
> hogging CPU. So I put in some code like this:
>
>     ft_onIdle( { || ft_iamidle(30, .T.) } )
>
> It worked like magic. NTVDM CPU utilisation dropped to around 25%.
>
> Then, to deal with a non-clipper DOS app which was hogging the CPU, I
> installed a trial of TameDOS, which would work for about 5 minutes and
> then lock cmd.exe altogether. So I decided to live with that one and
> remove TameDOS.
>
> The problem is that, now, my clipper 5.2 app which was working prior
> to the TameDOS eval, (with the help of ft_onIdle & ft_iamidle from
> NFPAT1A), now hogs 100% of the CPU ... regardless of the intensity
> parameter passed to ft_iamidle .. a range of values from 1 to 100 ..
> the app now hogs the CPU.
>
> I'm running XP SP2.
>
> Has anyone encountered this before? Any suggestions appreciated!
>
> Thanks
>
> Richard

Hi,

Read the following url

http://support.citrix.com/article/CTX846521

Download clip2f.exe

I've been using it for years now, dropping the cpu-load to around
2-10% on all of my clipper 5.2e apps. Be warned I havn't tested on
Vista yet.

Lasse


Report this thread to moderator Post Follow-up to this message
Old Post
LHSoft@gmail.com
08-24-07 02:55 AM


Re: CPU hogging (again!)
Hi all.

Solution provided by David Thomas of TameDOS :

Tame changes the idle sensitivity in the _default.pif. When you
uninstall Tame it doesn't reset it. Changing the Idle sensitivity
slider in the Misc tab in the WINDOWS\_default.pif fixes the problem.

Thanks David and Lasse for your responses.

Richard

On Aug 23, 7:27 pm, rl <r...@raluke.com> wrote:
> Hi..
>
> I have an old clipper 5.2 app that I use only occasionally. It was
> hogging CPU. So I put in some code like this:
>
>     ft_onIdle( { || ft_iamidle(30, .T.) } )
>
> It worked like magic. NTVDM CPU utilisation dropped to around 25%.
>
> Then, to deal with a non-clipper DOS app which was hogging the CPU, I
> installed a trial of TameDOS, which would work for about 5 minutes and
> then lock cmd.exe altogether. So I decided to live with that one and
> remove TameDOS.
>
> The problem is that, now, my clipper 5.2 app which was working prior
> to the TameDOS eval, (with the help of ft_onIdle & ft_iamidle from
> NFPAT1A), now hogs 100% of the CPU ... regardless of the intensity
> parameter passed to ft_iamidle .. a range of values from 1 to 100 ..
> the app now hogs the CPU.
>
> I'm running XP SP2.
>
> Has anyone encountered this before? Any suggestions appreciated!
>
> Thanks
>
> Richard



Report this thread to moderator Post Follow-up to this message
Old Post
rl
09-04-07 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clipper archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:08 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.