Discussion:
Clipper applications in WinXP
(too old to reply)
Marco A. Cruz Quevedo
2009-06-06 18:56:54 UTC
Permalink
Hello everybody,

I am a Clipper programming since 18 years ago, since Summer '87
version.
The issue that today I have is the following:

I have several applications in Clipper 5.3b, that were running fine in
Win98 but when they are run in WinXP, the application gets most of the
processor time and makes execution of other applications, eitehr DOS
or Windows, very sluggish.
Example: I run A.exe and then run B.exe (both developed in CA-Clipper)
simultaneously each one in a DOS window . The B.exe takes too long to
start because A.exe is already running. Finally, after about 1
minute, B.exe runs but then both applications run slowly, taking time
to respond to keyboard strokes. This did not happen in Win98.
I even tried the following: (test.prg)
----
//-- TEST.PRG
?"Test application"
inkey(0)
return
---
This simple application makes the whole system slow down.

Somewhere I read that there is a way to make a Clipper application not
to take too much time from processor, do you know it?

Thanks in advance.

Regards,

Marco.

--------------------------------------
Freedom is not a permission for chaos.
N:dlzc D:aol T:com (dlzc)
2009-06-06 20:31:56 UTC
Permalink
Post by Marco A. Cruz Quevedo
Hello everybody,
I am a Clipper programming since 18 years ago,
since Summer '87 version.
I have several applications in Clipper 5.3b,
...
Post by Marco A. Cruz Quevedo
Somewhere I read that there is a way to make a
Clipper application not to take too much time
from processor, do you know it?
Thanks in advance.
Look in this newsgroup for the FAQ. It references solutions to
this exact problem. Like this one:
http://groups.google.com/group/comp.lang.clipper/msg/d7ef8ecc1b5bf691
... down to: "My application is hogging the CPU, what can I do?"
... which will lead you several places, one of which is:
http://www.engwall.com/clipper/nfpat1a.htm

David A. Smith
Marco A. Cruz Quevedo
2009-06-14 22:53:41 UTC
Permalink
Post by Marco A. Cruz Quevedo
Hello everybody,
I am a Clipper programming since 18 years ago,
since Summer '87 version.
I have several applications in Clipper 5.3b,
...
Post by Marco A. Cruz Quevedo
Somewhere I read that there is a way to make a
Clipper application not to take too much time
from processor, do you know it?
Thanks in advance.
Look in this newsgroup for the FAQ.  It references solutions to
this exact problem.  Like this one:http://groups.google.com/group/comp.lang.clipper/msg/d7ef8ecc1b5bf691
... down to: "My application is hogging the CPU, what can I do?"
... which will lead you several places, one of which is:http://www.engwall.com/clipper/nfpat1a.htm
David A. Smith
Thank you for your hints, and I found in www.davep.org the OSLib,
which applies something similar.
I am testing, and I will let you know the results.

Best regards,

Marco.

-------------------------------------
Freedom is not a permission for chaos.

otto
2009-06-07 18:53:28 UTC
Permalink
On Sat, 6 Jun 2009 11:56:54 -0700 (PDT), "Marco A. Cruz Quevedo" <***@myway.com> wrote:

Use Blinker 7.0 and include the following Function to you first prg.

BLICPUREL()

Purpose: Release idle time to the operating system.
Syntax: nuFreq = BLICPUREL(nuFreq)
Parameters: nuFreq ‘Aggressiveness’ factor for releasing time. Default 50.
Returns: Previous frequency setting.

Description: When running under 32 bit operating systems, CA-Clipper 5.x programs hog 100% of available CPU resources, slowing the entire operating system,
printing and negatively impacting network performance.

To use this function, simply call it ONCE at the beginning of your program, and subsequently time will be released to the operating system whenever your program
is idle, such as in a wait state, (inkey(), achoice(), tbrowse(), GET/READ or MENU TO etc).
The nuFreq parameter can be overridden at run time using the //CPU:nn setting in the CLIPPER environment variable, or may be specified as a parameter to the
program at runtime.
Myapp //CPU:25

Example: BLICPUREL() // Start releasing time, default setting
Post by Marco A. Cruz Quevedo
Hello everybody,
I am a Clipper programming since 18 years ago, since Summer '87
version.
I have several applications in Clipper 5.3b, that were running fine in
Win98 but when they are run in WinXP, the application gets most of the
processor time and makes execution of other applications, eitehr DOS
or Windows, very sluggish.
Example: I run A.exe and then run B.exe (both developed in CA-Clipper)
simultaneously each one in a DOS window . The B.exe takes too long to
start because A.exe is already running. Finally, after about 1
minute, B.exe runs but then both applications run slowly, taking time
to respond to keyboard strokes. This did not happen in Win98.
I even tried the following: (test.prg)
----
//-- TEST.PRG
?"Test application"
inkey(0)
return
---
This simple application makes the whole system slow down.
Somewhere I read that there is a way to make a Clipper application not
to take too much time from processor, do you know it?
Thanks in advance.
Regards,
Marco.
--------------------------------------
Freedom is not a permission for chaos.
Loading...